Repository navigation
Create worktree, Create folder and continuation pickers offer each agent as a chat or its CLI, like the "+" menu - #31189
Conversation
…CLI per agent, like the "+" menu The Create worktree, Create folder and session-continuation agent pickers now list the same rows as the tab bar "+" menu: chat agents first, each with a terminal button that picks the agent's CLI instead, then the agents that only run in a terminal, labelled "(CLI)". A terminal pick shows as "Claude (CLI)" and starts the agent in a terminal even when chats are the default. A continuation into a subfolder shows chat as unavailable there.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d0ae91e6-17fc-455c-8e08-6b097631d005
📒 Files selected for processing: 31
src/renderer/src/components/NewWorkspaceComposerModal.agent-surface.test.tsxsrc/renderer/src/components/NewWorkspaceComposerModal.tsxsrc/renderer/src/components/agent-session-continuation/AgentSessionContinuationDialog.test.tsxsrc/renderer/src/components/agent-session-continuation/AgentSessionContinuationDialog.tsxsrc/renderer/src/components/agent/AgentCombobox.surface.test.tsxsrc/renderer/src/components/agent/AgentCombobox.tsxsrc/renderer/src/components/agent/AgentTerminalLaunchButton.tsxsrc/renderer/src/components/agent/agent-combobox-items.tsxsrc/renderer/src/components/agent/agent-combobox-surface-items.tsxsrc/renderer/src/components/new-workspace/NewWorkspaceComposerAgentSection.tsxsrc/renderer/src/components/new-workspace/new-workspace-composer-card-props.tssrc/renderer/src/components/sidebar/folder-workspace-composer-submit-surface.test.tssrc/renderer/src/components/sidebar/folder-workspace-composer-submit.tssrc/renderer/src/components/tab-bar/QuickLaunchButton.tsxsrc/renderer/src/components/tab-bar/tab-agent-row-presentation.tssrc/renderer/src/components/tab-bar/use-new-tab-agent-menu-rows.tssrc/renderer/src/hooks/composer-state/composer-agent-rows-target.tssrc/renderer/src/hooks/composer-state/composer-card-contract.tssrc/renderer/src/hooks/composer-state/composer-card-props.tssrc/renderer/src/hooks/composer-state/composer-submit-model.tssrc/renderer/src/hooks/composer-state/folder-submit-orchestration.tssrc/renderer/src/hooks/composer-state/quick-creation-execution.test.tssrc/renderer/src/hooks/composer-state/quick-creation-execution.tssrc/renderer/src/hooks/composer-state/quick-creation-request.tssrc/renderer/src/hooks/composer-state/quick-submit-action.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/agent-menu-selection.tssrc/renderer/src/lib/agent-session-launch-plan.tssrc/renderer/src/lib/launch-agent-session-continuation.test.tssrc/renderer/src/lib/launch-agent-session-continuation.tssrc/renderer/src/lib/new-tab-agent-menu-rows.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
|
Create worktree, Create folder and continuation previously left the chat/terminal choice to global settings. This PR gives them the plus menu's chat row and terminal button, and carries the displayed choice through launch preparation. The full review loop is complete on The exact-head full PR workflow passed, including the aggregate gate, static analysis/typecheck, five test shards, relay integration and Linux/Windows packaging. Targeted merge checks passed 10 files / 43 tests; the test-only repair passed 3 files / 16 tests with commit hooks. Final independent readiness, dedicated performance coverage and whole-mechanism comparison found no new proven defect; counsel was skipped as requested. The PR is out of draft, conflict-free, and review threads are resolved. Real Electron QA compared exact branch Create worktree, Create folder and root continuation each completed chat and terminal launches with real replies on both heads. Continuations carried the original context and retained the source/group; the untouched default also delivered context and replied. Worktree setup/default tabs ran and all six setup markers completed. The branch exercised the terminal button, Two existing bugs reproduced on both exact heads: Setup can take selection/focus from the new chat (STA-10869), and subfolder continuation starts the destination agent at the workspace root (STA-8416). The bounded focus order was branch Setup then Chat, main Chat then Setup; it establishes baseline occurrence, not relative failure frequency. Actual first destination Bash Intended differences from the common pattern: the approved combined row/terminal-button UI, plain-list exclusions, supported-host restrictions, and Create/default fallback versus explicit-continuation refusal. Temporary difference: renderer creation materialization remains assigned to launch-unification and #31191. No new saved setting, wire operation or user default is introduced. Deferred/limits: no natural live provider decline; asynchronous route stability and refusal policy are source/test coverage. Remote/SSH/WSL, mobile, Windows/Linux and assistive behavior were not rendered in this macOS lane. Folder YAML setup/default tabs were absent on both heads. No speculative concern earned a new review round. For Brennan's review: current-head comparisons below. The three judgment points are selected readiness and effective route, unresolved-owner empty settlement and hydration recovery, and continuation captures the choice before detection.
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
54798748-4f7d-439e-ae74-1079a6e8c973
📒 Files selected for processing: 2
src/renderer/src/components/NewWorkspaceComposerModal.tsxsrc/renderer/src/i18n/locales/en.json
🚧 Files skipped from review as they are similar to previous changes: 1
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.



















ELI5
The "+" menu in the tab bar already lets you start an agent either as a chat (click its row) or in a terminal (hover the row and click its terminal button). The agent picker in Create worktree, Create folder and the "continue this session" dialog couldn't do that: it showed a flat list, and after you clicked Create your settings decided chat or terminal. Now those pickers show the same rows and the same terminal button.
What Changed
Before: the Create worktree "Agent" picker listed every agent flat (Claude, Codex, … Cursor). Whether the new workspace opened Claude as a chat or in a terminal came only from Settings, so starting Claude in a terminal for one new worktree meant changing a global setting first.
After:
Mechanism:
useNewTabAgentMenuRows). That hook now accepts a workspace that doesn't exist yet (repo and host), and an optional start directory for continuations.Why
Why reuse the "+" menu's rows. It is the common pattern to keep one agent picker across new-tab and create-workspace flows, with the chat/terminal choice carried on the launch request. Reusing the menu's rows means the picker and the menu can't disagree about which agents can chat on a host.
What the reviewers considered. Two alternatives were weighed:
agent.launchrequest now;Moving onto
agent.launchis already planned and sequenced in the launch-unification work, so this PR does not duplicate it. The separate toggle doesn't match the "+" menu, and the design of this one was approved beforehand.Follow-up #31191 adds the same choice to the
agent.launchrequest and a--surface chat|terminaloption onorca agent launchandorca worktree create.Linked Issue
Internal (maintainer).
Visual Proof
Real Electron QA compared exact branch
98c7fca1628f302f9b3ea9831885f6aa07d10e25with main582efa79897f8bcd47581a270dabbace51122f39on M4Air, using hidden Chrome DevTools Protocol (CDP) control. Codex drove the app throughqa-drive; real Claude Code 2.1.306 and Codex 0.163.0 ran under isolated homes through the load balancers. Both agent connectivity checks and real replies passed. Ticket #1084 is released and all owned test processes are stopped.Create worktree, Create folder and root continuation each completed chat and terminal launches with real replies on both heads. Continuations carried the original context and retained the source/group; the untouched default also delivered context and replied. Worktree setup/default tabs ran and all six setup markers completed. The branch exercised the terminal button,
(CLI)label, ArrowRight then Enter, selected-button reopening, cancellation/dismissal reset, and plain mode. A real unresolved-owner dialog settled with no runnable agents and recovered when its owner was restored, without borrowing another host's inventory.Two existing bugs reproduced on both exact heads: Setup can take selection/focus from the new chat (STA-10869), and subfolder continuation starts the destination agent at the workspace root (STA-8416). The bounded focus order was branch Setup then Chat, main Chat then Setup; it establishes baseline occurrence, not relative failure frequency. Actual first destination Bash
pwdconfirmed the cwd failure on both heads. Evidence was added to the existing tickets; neither is labelled intended behavior or fixed here. No PR-exclusive defect was established.Testing
The exact-head full PR Checks workflow 39574162962 is green, including aggregate PR checks passed, static analysis/typecheck, all five unit-test shards, relay integration, and Linux/Windows packaging. The final main merge passed 10 named files / 43 tests. A test-only ownership-fixture correction then passed 3 named files / 16 tests and commit hooks; production code is identical to the independently checked merge.
The real-hook unresolved-owner regression covers ambiguous/missing restored owners, no unrelated inventory/probes, disabled readiness, and recovery on hydration. The independent final readiness and whole-mechanism comparison found no new proven defect; counsel was skipped as requested. All review threads are resolved.
Existing regression tests pin the edges that were not fault-injected live. Paths below are relative to
src/renderer/src/; assertions use controlled asynchronous seams and mocked launch boundaries, so they do not prove rendered focus or a real provider refusal:components/NewWorkspaceComposerModal.agent-surface.test.tsx, “gates the selected chat at click/keyboard, preserves terminal and blank exceptions, and repairs host changes”.hooks/composer-state/quick-creation-execution.test.ts, “carries the accepted route across preparation and retains CLI startup/prompt under chat defaults”.components/sidebar/folder-workspace-composer-submit-surface.test.ts, “starts the CLI in a terminal for a terminal pick even when chats are the default”.components/NewWorkspaceComposerModal.agent-surface.test.tsx, “submits the untouched refusal-aware OpenCode CLI instead of the registered catalog chat”.lib/worktree-creation-structured-session-host-decline.test.ts, “opens the request's agent terminal without pulling the user onto the new workspace” and “opens the request's agent terminal in place, with no chat, leaving the user where they are”.components/agent-session-continuation/AgentSessionContinuationDialog.test.tsx, “clears failed detection, gates unresolved Start, and submits the displayed root/subfolder choice”.lib/launch-agent-session-continuation.test.ts, “retains the accepted route across detection, and explicit chat declines without the preference fallback”.components/agent/AgentCombobox.surface.test.tsx.Limits: no natural live provider decline occurred; refusal/fallback and route stability across asynchronous changes are supported by source/regression tests. SSH/WSL/paired-host, mobile, Windows/Linux and assistive behavior were not exercised in this macOS QA lane. Folder creation ignored YAML setup/default tabs on both heads. The focus sample is bounded; unproven console warnings and terminal replay errors remain in the private report, with no observed terminal failure. These limits do not replace the completed normal launch/reply paths.
Review
Agent skill upstream boundary
Notes
Intended differences from the common pattern: the approved combined row/terminal-button interaction, plain-list exclusions, supported-host restrictions, and Create/default fallback policy remain. No new saved setting or wire operation is added.
Temporary boundary: creation still materializes through renderer adapters rather than one host launch request; the launch-unification work and A launch can name chat or terminal: agent.launch gets a surface pick and the CLI gets --surface chat|terminal #31191 own that convergence.
SSH and paired servers: the rows are answered by the host the new workspace will run on (SSH, paired server, WSL), the same way the "+" menu answers for an existing workspace. Nothing new is sent over the wire.
Ephemeral VM creates: these keep today's plain list, because that host isn't known until creation.
Platforms: no platform-specific code.
Checklist