Repository navigation
refactor(tui): persist group expansion and exact scroll anchors - #48489
Conversation
b087728 to
9bd5c63
Compare
|
Rebased onto latest Deterministic pixel comparison:
|
| Profile | Frames | Identical |
|---|---|---|
| Grouped, thinking hidden — 3 widths × top/bottom + sequential disclosure clicks | 88 | 88 |
| Ungrouped, thinking shown — 3 widths × top/bottom | 54 | 54 |
142/142 pixel-identical. Full RGBA comparison, no masks or tolerances.
Two earlier runs showed divergent frames in the two longest sessions; investigating each showed same content at a different scroll offset — the harness's "settled" check was passing mid-backfill after ctrl+g. Tightened the harness to pin the session title to the top before every click. No code change was needed; the divergence did not reproduce once the harness was deterministic.
Added session-backfill-disclosure.test.tsx to lock in the one scenario the earlier matrix never combined: clicking a thought group that was mounted by backfill.
Full TUI suite on the rebased branch: 1367 pass, 2 skip, 0 fail. Typecheck passes.
Summary
Refactored to the agreed exact-target model:
Fetching and boundary completion are explicitly deferred to the next PR. A change to the first member changes the group ID; unavailable targets use the existing missing-anchor fallback.
Verification
Updated implementation:
b087728684. Local work log:/tmp/opencode/grouped-timeline-work-log.md. Final demo captures:/tmp/opencode/anchor-state-fixed/run-6c96b6e1-b9da-45fd-a3c0-a64f74ebc586/generation-0/(copying to /mnt/mail currently hangs).