Repository navigation
fix(native): side chat and subagent review fixes from #45 - #48
Merged
Merged
Conversation
…s 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.
…ses 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.
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.
A docked right panel narrows the chat column on a wide window. The bar now measures itself and uses ProviderSubagentBar's composer-surface breakpoints.
…ther 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.
A review of #45 (side chats and lineage) found Stop, shortcut and cleanup paths that acted on the open thread instead of the side chat or subagent being shown, plus state that outlived its tab or environment. This fixes each finding against the web behavior it ports.
Fixes
useThreadLifecycle.tsx). The other status-line and banner actions were checked and already use the displayed thread.thread.stopfor the child, which older servers reject. It now goes through the same capability check as every other Stop and falls back torun.interrupton the child's active run (interruptThreadTurn).isInSideChatPanedoes.Subagent::currentportscurrentSubagent, so a finished task whose child runs again uses that run.formatModelSelectionEffort).scopedThreadKey). Diff layout and the file tree stay shared.ProviderSubagentBar's 560/640/320px breakpoints.Evidence
stop_targetshell fallback,Subagent::current/can_stop(child), effort label precedence (crates/core).cargo test --workspace,cargo clippy --workspace --all-targets -- -D warnings,gen-theme --check,parity/sync.test.tsall pass.devReplay):workflows: handoff=true compacting=false stop=Thread stop_without_thread_stop=Nothing.Not verified at runtime
The smoke server has no subagents and no live side chats, so the provider bar breakpoints, subagent Stop and side chat pane cleanup are covered only by unit tests and review. Panel state saved by earlier builds under the shared key is not migrated, so saved tabs reset once.
Ledger rows TV-SIDECHAT and TV-LINEAGE stay
partial.Claude Opus 5.5, Claude Code (W11b, resumed by W11b-resume)