fix(app): stale show by neriousy · Pull Request #16236 · anomalyco/opencode
Issue for this PR
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Fixes the error Stale read from show
The timeline staging loop in MessageTimeline used startTransition to increment the staged message count during requestAnimationFrame, which can cause Solid’s to read a stale accessor while a transition is in progress
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
- Open a session with a long history (or load earlier messages so turnStart > 0).
- Click Load earlier so the timeline starts staging.
- While staging is happening, do rapid UI actions:
- Scroll up/down quickly while the load is in progress.
- Trigger message arrival (send a new prompt) so new messages append during staging.
- Switch between sessions quickly (sidebar) while the staging banner is visible.
Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
If you do not follow this template your PR will be automatically rejected.