Repository navigation
fix(timeline,shell): close memo, fade, multi-window, and tab-close cache gaps - #2427
Merged
Merged
Conversation
…che gaps - Unify timeline row memo keys via RowMemoContext so find highlights, forced palette mode, open-group auxiliary stamps, async Markdown/math bypasses, and script change placement stay consistent across row kinds. - Advance TurnTail fade state before memo lookup and retain reply footer metadata/sources while fading out; scope Working::transitions bumps to active-session transitions. - Move turn retry countdown and shell followable caches from process-wide thread-locals onto per-window state. - Keep TranscriptEdits::base_epoch stable across single-tab closes via a separate absent_epoch, guard shown_transcript_stamp against absent session entries, and cover all sidebar inputs in NavState::cached_view.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closing a tab, running multiple windows, or searching and folding timeline rows no longer stales caches or drops row memoization.
Timeline rows, turn status tails, per-session transcript stamps, and the navigation sidebar now track their exact visual and multi-window inputs without invalidating unrelated open tabs. Visual layout and behavior stay the same aside from fixing stale highlights, clipped footer fades, and multi-window redraw loops.
❌ Before
shown_transcript_stamphashed evicted unrelated transcripts whose session metadata was gone, and the sidebar cache missed server-source, unread-mark, hidden-server, and draft attachment/quote changes.✅ After
shown_transcript_stamphashes only confirmed descendants, and the sidebar cache tracks and stamps everyTracked,Slot, and store generation read bycollect_input.📊 Cases
RowMemoContextbase_epochfor all loaded tabsabsent_epochonly; sibling tabs stay warm👀 Read:
TranscriptEditsinapps/desktop/src/session/events/edits.rs(absent_epochkeeps removed sessions monotonic without tombstones while leavingbase_epochuntouched for open tabs) andsync_fadesincrates/session-view/src/timeline/tail.rs(running fade transitions ahead ofTurnTailmemo lookup). The rest is routine.🔍 Found in a code audit · no user reports
Checks run
cargo check --bin opencode-desktop: passcargo check -p session-view --examples: passcargo check -p session-view --examples --features open-bench: passbash scripts/guardrails.sh: 11/11 passedbun scripts/web-clock.ts: pass