Skip to content

fix(timeline,files,panels): unify TurnTail rhythm, stop animation clobbering, and animate final panel close - #2272

Open
kitlangton wants to merge 1 commit into
devfrom
fix-timeline-rhythm-and-perf
Open

kitlangton wants to merge 1 commit into
devfrom
fix-timeline-rhythm-and-perf

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Fixes four timeline rhythm, animation-snap, and right-panel close-spring issues.
Gives Thinking / Working / Waiting the exact same vertical rhythm as every other assistant row (0 pt vertical jump when a tool row replaces Thinking), stops background file polls from clobbering concurrent streaming animations, stops Adaptive Drip from invalidating the timeline region when idle, and animates the right side panel shut when closing its final tab.

💡 Why

  • rhythm::tail_extra returned 0.0 (under a stale comment assuming User bubbles still reserved 28 pt meta-room) and after_active_tail zeroed the gap below TurnTail, leaving Thinking / Working only 11 pt below User bubbles/prose and 9 pt above a Pending steer — causing a 56 pt layout jump the instant Used 1 tool landed.
  • features/files/src/poll.rs called transaction-wide tx.instant() when background file reads or searches finished, overriding tx.animated() from Adaptive Drip and snapping live row-growth springs mid-stream.
  • line_reveal::poll unconditionally called std::mem::take(s.line_hold_mut()) on every live poll even when zero bytes were pending, bumping Tracked::DerefMut and busting timeline region reuse on every tick.
  • Dismissing the final New tab called tx.instant() before closing the empty side panel, and closing the final ordinary tab didn't restore tx.animated() after provider.close(..., tx), snapping the side panel shut instead of animating its width spring.

🆕 Now you can

  • See Thinking, Working, and Waiting for subagents sit at the exact timeline rhythm (L 32 pt below user prompts and above pending steers, M 20 pt below prose/bullets/tools) with zero vertical jump when the first tool or prose row arrives.
  • Stream smoothly without random frame snaps from background file reads/searches or idle line_hold cache invalidations.
  • Close the final tab (content or New tab) in the right panel and watch the panel slide shut smoothly on its spring.
- rhythm::tail_extra: 0.0 (11 pt below User/prose, 9 pt above Pending steer)
+ rhythm::tail_extra: shared gap(prev, tail) (32 pt below User, 20 pt below prose, 32 pt above Pending)
- features/files/src/poll.rs: tx.instant() on background read/search completion
+ features/files/src/poll.rs: no transaction-wide instant() clobbering Drip/timeline springs
- line_reveal::poll: unconditional line_hold_mut() every live poll
+ line_reveal::poll: read-only fast-path skip when all live parts are caught up
- features/panels: tx.instant() before dismissing final New tab / unguarded provider.close()
+ features/panels: tx.animated() when the last tab shuts the side panel

👀 Read: crates/session-view/src/timeline/rhythm.rs, crates/session-view/src/line_reveal.rs, features/files/src/poll.rs, and features/panels/src/{view/strip,keys,state/actions}.rs.

Checks run
  • cargo check --bin opencode-desktop: PASS
  • cargo check -p session-view --examples: PASS
  • bash scripts/guardrails.sh: PASS

…bbering, avoid idle line_hold invalidation, and animate final panel close

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant