Repository navigation
Fix extra terminal during background native-chat setup - #29810
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
Main now always runs Setup in its own tab (#29819) and lets background agent creates leave the first surface to the caller (#29810). Keep both: the creation owner still suppresses the starter shell, and background attribution-only creates follow main's narrower rule. With no split Setup mode left, owned navigation queues Setup directly and the "Setup could not run" fallback is gone.
ELI5
Creating a native-chat workspace on a connected host with automated setup no longer adds an unwanted plain terminal beside Setup.
What Changed
The host already leaves the first surface to the caller for background agent creates without setup. Setup provisioning now uses that same rule. Activated requests still receive a primary terminal, and both setup split modes retain the shell they need as an anchor.
Regression tests follow the production renderer payload through RPC validation and host creation, and check the actual terminal commands created. They cover Claude, Codex, blank selection, activation, run-hooks, defaults, startup, and both split directions.
Why
The two host branches disagreed about the same existing request. Reusing their background policy fixes older clients too, without adding a wire field or changing setup modes. This is PR 1; removing setup split modes remains a separate change.
Linked Issue
No linked issue; internal maintainer fix.
Visual Proof
The same isolated paired desktop request with an agent selected and no terminal startup, captured through Playwright CDP. Original host: plain terminal + Setup (2 tabs). Fixed host: Setup alone (1 tab). Both runs asserted every native window stayed hidden and unfocused. The probe verifies provisioning and the rendered terminal strip; it does not launch a structured agent session.
Testing
Review
Independent Codex gpt-6-astra high design and final code review found no unresolved P0/P1. Design and review notes are in
docs/native-chat-setup-provisioning-design.mdanddocs/native-chat-setup-provisioning-review.md.Agent skill upstream boundary
Notes
No RPC shape, process command, execution-host ownership, setup sequencing, UI style, or focus-policy change. Existing conditional issue-only delivery and asynchronous setup failure reporting remain outside this fix.
Checklist