Repository navigation
fix(session-view): smooth execute sheet, pin code actions, and fix composer/send timeline motion - #2476
Open
kitlangton wants to merge 3 commits into
Open
fix(session-view): smooth execute sheet, pin code actions, and fix composer/send timeline motion#2476kitlangton wants to merge 3 commits into
kitlangton wants to merge 3 commits into
Conversation
kitlangton
added a commit
that referenced
this pull request
Dec 5, 2026
- Gate `tx.animated()` on `smooth_timeline()` (and `!reduced_motion()`) in `composer::land`, `composer::land_in_place`, and `send.rs` queue launches so disabled smooth motion preserves `tx.instant()` from open popovers and unprompted commits. - Keep already-active current-turn drips alive across appended `Idle` notices and `live` flips in `line_reveal::poll` (passing `part_live` relative to `last_idle`) so buffered text drains smoothly over 80 ms instead of snapping at turn end. - Ignore trailing notices and skips after `Entry::Idle` when computing `trailing_live` (`TurnBuild::has_step_since_idle`) so background wake-up notices do not reopen a finished run's turn before a new assistant step arrives. - Split consecutive grouped `Read` and `Skill` runs (and `Calls::Reads` blocks) at `sourceCallID` boundaries so Code Mode read/skill groups retain their `</>` action when adjacent to direct calls or other scripts.
…mposer/send timeline motion - Animate ExecuteDetails scrim and dialog open/shut (scale+fade, opacity-only under Reduce Motion), wire Escape in overlay.tool_details, offset the horizontal scrollbar past the line-number gutter, and stretch code rows full-width so sticky_left keeps line numbers anchored. - Pin the Code Mode `</>` action button to the trailing right edge across all tool trigger, MCP, catalog search, error, and grouped Read/Skill rows. - Call `tx.follow_edge()` across composer height-change paths (typing/pasting, prompt history step/apply/restore, attachment/context/quote/comment chips, dropzone, and dictation) so pinned timelines track 1:1 while scrolled-up timelines stay put. - Prevent send hard-jumps by clearing prior `tx.instant()` and opting poll sends into `SLIDE` via `tx.animated()`, dropping window-wide `tx.instant()` on composer hover transitions, keeping `Ends` in sync in `anchor_grow`, and routing busy/queued waiting outbox items to `inboxes`. - Prevent settled assistant replies from re-dripping or re-fading after submitting a follow-up prompt.
- Gate `tx.animated()` on `smooth_timeline()` (and `!reduced_motion()`) in `composer::land`, `composer::land_in_place`, and `send.rs` queue launches so disabled smooth motion preserves `tx.instant()` from open popovers and unprompted commits. - Keep already-active current-turn drips alive across appended `Idle` notices and `live` flips in `line_reveal::poll` (passing `part_live` relative to `last_idle`) so buffered text drains smoothly over 80 ms instead of snapping at turn end. - Ignore trailing notices and skips after `Entry::Idle` when computing `trailing_live` (`TurnBuild::has_step_since_idle`) so background wake-up notices do not reopen a finished run's turn before a new assistant step arrives. - Split consecutive grouped `Read` and `Skill` runs (and `Calls::Reads` blocks) at `sourceCallID` boundaries so Code Mode read/skill groups retain their `</>` action when adjacent to direct calls or other scripts.
…witch - Start text already present on the first poll of a newly entered session (`prior_len.is_none()`), already-completed assistant steps (`a.completed.is_some()`), and non-trailing parts at full `text.len()` in `line_reveal::poll`, while keeping `Poll::Current` populated on idle and freshly started sessions so new replies arriving while watching still drip from 0. - Treat `a.completed.is_some()` as non-live in `line_reveal::poll`, `turns::fold_with_flags`, and grouped `Step::Text` rows so completed assistant steps drain and settle immediately even while child subagents keep `subtree_busy` true, and avoid marking inactive-session drip pruning as `changed` on tab switch. - Propagate `tx.follow_edge()` to the `type_to_compose` and Windows `CF_DIB` clipboard image paste paths added on `dev`.
kitlangton
force-pushed
the
execute-sheet-and-codemode-align
branch
from
December 6, 2026 05:53
5ee3b44 to
20dfe43
Compare
This branch has not been deployed
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.
Opening the Code Mode script sheet, resizing the composer, sending follow-up prompts, and switching session tabs now animate smoothly without timeline jumps or replayed assistant replies.
Code Mode's
</>button also stays pinned to the right edge of every tool row, and the script sheet's horizontal scrollbar and line numbers stay anchored inside their lanes. Scrolled-up timelines remain untouched when the composer grows or shrinks.🔍 Origin: seen in daily use
❌ Before
</>script sheet snapped instantly, its horizontal scrollbar ran under the line-number gutter, and scrolling wide lines let the gutter drift.</>button floating right after short labels instead of at the row's right edge.✅ After
×(fading only under Reduce Motion), with its horizontal scrollbar offset past the gutter and line numbers anchored on the left.</>to the trailing right edge while keeping label truncation fades and hover/focus states intact.instantcommits cancelling the flight.📊 Cases
ExecuteDetailsopen / Escape / backdrop /×ExecuteDetailswide code horizontal scroll</>button alignmentfollow_edge)instant/ unprompted commit)SLIDElaunch👀 Read:
crates/session-view/src/line_reveal.rsandcrates/session-view/src/composer/mod.rs, where tab switches (prior_len.is_none()), completed assistant steps under active subagent subtrees, and follow-up turns sitting ininboxesbefore transcript delivery could re-drip settled text, and where composer hover-leave called window-widetx.instant()mid-flight. The rest is routine.🔍 Verified with workspace guardrails and desktop, standalone
session-view, andwasm32compile checksChecks run
cargo check --bin opencode-desktop: passcargo check -p session-view --examples: passcargo check -p opencode-web --target wasm32-unknown-unknown: passbash scripts/guardrails.sh: 12/12 pass