Repository navigation
feat(native): side chats, subagent lineage, child approvals, provider subagent bar - #45
Merged
Merged
Conversation
…p, side chats section
…an show a side chat
…tions and child approvals
This was referenced Nov 2, 2026
Open
rynfar
added a commit
that referenced
this pull request
Nov 2, 2026
* fix(native): Stop targets the displayed thread and works for subagents on older servers A side chat's background Stop stopped the open thread instead of the side chat. App-owned subagent Stop always sent thread.stop for the child, which older servers reject; it now falls back to run.interrupt on the child's active run. A finished task whose child thread runs again keeps its Stop, as the web's currentSubagent reads the child's live run. * fix(native): subagent effort shows the explicit choice and never guesses a default The label read the provider's report before the selection, took reports for a different model, and normalized an unknown value to the catalog default. It now follows formatModelSelectionEffort. * fix(native): side chat shortcuts act on the side chat Composer chords (model picker, permissions) went to the open thread's composer. Each composer now handles its own, and the open thread's chat shortcuts ignore keys from a side chat pane, as the web's isInSideChatPane does. * fix(native): provider subagent bar sizes by its column, not the window A docked right panel narrows the chat column on a wide window. The bar now measures itself and uses ProviderSubagentBar's composer-surface breakpoints. * fix(native): side chats let go of deleted threads, closed panes and other environments A deleted side chat whose tab stayed saved kept its stream; a closed tab kept its pane with caches and subscriptions; switching environments kept side subscriptions and a pending start. Right panel tabs are now saved per environment, as the web keys them by scopedThreadKey.
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.
The native client showed subagent rows but had no side chats, no child-thread approvals on the parent, no bar for provider-native subagents, and a Lineage section that only listed shell parents and children. This ports TV-SIDECHAT and most of TV-LINEAGE.
What changed
Core (pure, tested)
crates/core/src/lineage.rsportsthreadRelationships.ts:resolveLatestMergeBackRun;relationshipLabelandthreadRelationshipStatusLabel;thread.merge_back,subagent.stopandorchestration.stopWorkflowpayloads.crates/core/src/lineage/subagents.rscovers:deriveThreadTurnSubagentsand its pill;subagentRuntime.ts;formatSubagentDisplayTitle;deriveProviderSubagentStatusandformatProviderSubagentStatus;formatModelSelectionEffortwith the reported selection;canStopandcanStopWorkflow;getNativeChildWorkdecoding.crates/core/src/side_chat.rs: the fork, first-message and delete commands fromuseSideChat.ts,sideChatsOfferedandsideChatDisabledReason, Bring back's blocked reason, and the tab dot state.SurfaceKind::SideChat(side-chat:<thread>) persists like the web. Reopening a closed tab skips a side chat the server deleted.forkedFromon shells and threads,workspacePreparationon runs, and thesideChatscapability.App
crates/app/src/side_chat/):infowhen it needs approval or input,muted_foregroundwhile running.confirmThreadDeleteis on. Close closes the tab.ThreadViewandComposergain an embedded mode pinned to one thread. Rewind and the sync line read that thread.AppStatekeeps side subscriptions next to the open thread's: the visible side chat tab, and children that ask for an approval. Selecting such a thread adopts its live state.thread.deletewithonlyIfUnused.AppState::open_side_chat(Some(prompt))is the hook W2c's/sideand/btwcall.crates/app/src/lineage/):ChildThreadApprovalssits above the composer, with every approval option, the not-live warning, and inline errors.ProviderSubagentBarreplaces the composer on provider-native subagent threads. It has the model, effort and status (ticking at 1 Hz only while working), "Runs on its own", Open parent, and Antigravity's "Subagent work" dialog (NativeChildWorkDialog).projectedSubagentsToRuntimedoes.sideChatsdetails item) opens each side chat in its tab.--right-panel side-chat:<thread>shows an existing side chat of--thread. It never starts one, so it stays read-only.Not in this PR (both ledger rows stay
partial)/sideand/btw(W2c owns triggers).Skey. Today the launcher only shows key labels.SideChatParentPanel).Evidence
cargo test --workspace,cargo clippy --workspace --all-targets -D warnings,gen-theme --check,vendor-icons --check,parity/sync.test.tsand conformance--checkall pass. 22 new core tests cover lineage, side chats and right-panel persistence./private/tmp/claude-501/-Volumes-DevSSD-t3code/7a9093f7-05bd-4183-ab15-c4265aa48126/scratchpad/shots/w11-side-chat.png(smoke server). It shows:/private/tmp/claude-501/-Volumes-DevSSD-t3code/7a9093f7-05bd-4183-ab15-c4265aa48126/scratchpad/shots/w11-lineage-real.pngandw11-lineage-real-crop.png(real-data server, read only): Lineage rows for a thread's subagents with Done and Stopped statuses, titled from their prompts.devReplay): a headless probe ran the full side chat lifecycle against the unmodified server:sequence:2035, and the chat is hidden from lists (sideChat=true,listed=false).sequence:2085).onlyIfUnuseddelete kept the used chat, and a plain delete removed it.Model and harness: Claude Opus 5.5 via Claude Code (native-client factory worker W11).