Repository navigation
fix(native): transcript review fixes, history control, output on expand - #22
Merged
Merged
Conversation
…e cases Provider-native subagent threads now work through their runless root turn, so a running child keeps its working and live rows instead of folding. A reply that finished before a steer superseded its attempt stays visible (attempts carry completedAt). A /compact turn shows one live status with no extra Working or Thinking rows, with T3 Code's idle compaction labels and titles. Thinking stops once the open run's provider turn has ended. Cached entries re-resolve their attempt when a new node arrives. Each fix has a failing test ported from MessagesTimeline.logic.test.ts first.
Rows are shared Arcs that keep their identity across derives (computeStableMessagesTimelineRows); a streamed token swaps the one row that changed instead of cloning every row, and entries patch changed items in place without rebuilding their map. Plans stay cached until their status changes. Adds the getTurnItem request and decode helpers for withheld output.
The transcript shows the web's Load earlier turns control with its loading label and error line (clicking again retries); rows prepend below it with the scroll anchored. Open work groups render their members in their own virtualized list, so a group of a thousand tools builds only the rows in view. Opening a command or tool with withheld output fetches it with orchestration.getTurnItem, once while it runs and again when it settles, with loading, missing and error states. Copy, disclosure, fold and link controls are keyboard tab stops with a focus ring. The working timer is its own view that ticks only while painted, and markdown states for rows the list no longer draws are dropped past a small bound.
This was referenced Nov 2, 2026
Open
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.
Problem
The Sol 6.1 review of #17 found four logic bugs, an accessibility gap and four performance risks in the transcript. Three pieces of follow-up work were also still open: the history control, bounded markdown states and command output on expand.
Fixes
Each logic fix started with a failing test ported from the TS test the review cited.
derive_activitynow followsderiveRunlessWorkStartedAt: a provider-native subagent thread with an active runless root turn is working, and runless entries form the live response (runIdIsActiveResponse, the active-tool tail, the live runless fold guard). Port of "folds each run of a provider-native subagent thread like a normal turn": running yields[…, user:resume, working, work-live].complete_superseded_reply_idsportscompleteSupersededReplyEntryIds. Attempts now carrycompletedAt, and a reply finished before its attempt was superseded is exempt from both folds. Port of "a steer that supersedes an attempt" (both run states, plus the cut-off case)./compactgrew extra Working/Thinking rows. Newcompaction.rsports the compaction bookkeeping: theappendWorkingRowguards,compactionOnlyRunFinished, compact-on-return using the Working row,IDLE_COMPACTING_LABELS/IDLE_COMPACTION_TITLES. Port of "shows each compaction trigger as one live status" (all three reasons, running and finishing).LatestRun.turn_endedcomes from the run's active attempt's latest provider turn (summarizeThreadRun), and the Thinking row honours it. Port of "does not show Thinking once the open run's provider turn has ended", plus an activity-level test.tab_index) with the 2pxringon keyboard focus (§4.2). GPUI delivers Enter and Space as a click.list(Infer sizing, capped atmin(288, 50% of window)plus room for opened members; 384 for a reasoning trace), so only rows in view are built. A group of thoughts creates markdown states only for the thoughts on screen.Arc<TimelineRow>and keep their identity across derives (computeStableMessagesTimelineRows). A streamed token swaps only the changed row in place, and the view diffs by pointer. Entries patch items changed in place without rebuilding the map (canRederiveInPlace), and plan entries stay cached until their status changes. Measured on real data: warm derive per update is 6.6 µs for 221 items.WorkingTimeris its own view. It ticks itself and notifies only if it was painted since the last tick, so it stops while scrolled out of the list's render window or while the window is hidden. The ThreadView ticker is gone.TimelineHistoryControl: "Load earlier turns" between hairlines, "Loading earlier turns…" while loading, and the error line. Clicking again retries throughAppState::load_older_history. It updates onAppEvent::Historywithout touching rows. Prepended rows splice below the control; GPUI'ssplicekeeps the logical scroll top. I removed the scroll-position auto-load, because the web only loads on the explicit control.outputOmittedcallsorchestration.getTurnItemthrough the mergedClientHandle::request/AppState::rpc. It fetches once while the item runs (revision: "live") and again when it settles. States: Loading output…, Couldn't load output, Output is no longer available, No output. Claude's{stdout,stderr}envelope is unwrapped. Cached per item, bounded at 64.Wire fields added with
serde(default):AppThread.creationSource,Run.activeAttemptId,RunAttempt.completedAt. The conformance harness passes.Verification
cargo test -p t3-core -p t3-client: 82 core tests, including the new ports and a test that a streamed token replaces only its own row. Workspace clippy with-D warnings,gen-theme --checkandparity/sync.test.tspass.timeline_sweepagainst the real-data server (read-only, counts only): 59 threads, 4,439 visible items in bounded snapshots, 1,133 rows, 0 empty labels. Warm derive is 6.6 µs.getTurnItem.Known gaps