Repository navigation
Retire the terminal-backed chat view outside WSL - #35886
brennanb2025 wants to merge 26 commits into
Conversation
[Medium impact] The PR appears safe to merge; no blocking code issues were found. SummaryThis PR limits new terminal-backed chat entry to WSL projects and removes OpenClaude and ZCode from desktop and mobile chat eligibility.
No new actionable issues were found. Both earlier findings are addressed in the current code. This review checked source and tests; it did not run the app or capture visual proof.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
84ddbfc1-0af6-48ad-a0e8-444d7cc27085
Files selected for processing: 33-
docs/site/content/docs/agents/native-chat.mdxmobile/src/session/native-chat/mobile-native-chat-eligibility.test.tssrc/renderer/src/components/native-chat/native-chat-leaf-routing.test.tssrc/renderer/src/components/native-chat/native-chat-leaf-routing.tssrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.keybindings.test.tssrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.tssrc/renderer/src/components/tab-bar/tab-agent-launch-options.test.tssrc/renderer/src/components/tab-bar/tab-agent-row-presentation.tssrc/renderer/src/components/tab-bar/tab-bar-item-surface.tsxsrc/renderer/src/components/terminal-pane/terminal-chat-ownership-lifecycle.test.tsxsrc/renderer/src/components/terminal-pane/terminal-pane-host-state.test.tssrc/renderer/src/components/terminal-pane/terminal-pane-host-state.tssrc/renderer/src/components/terminal-pane/use-terminal-pane-chat-state.tssrc/renderer/src/components/terminal-pane/use-terminal-pane-foundation.tssrc/renderer/src/components/terminal-pane/use-terminal-pane-projection.tssrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/structured-agent-session-launch-failure-wsl.test.tssrc/renderer/src/lib/structured-agent-session-launch-failure.tssrc/shared/native-chat-agent-support.test.tssrc/shared/native-chat-agent-support.tssrc/shared/native-chat-availability.test.tssrc/shared/native-chat-availability.tssrc/shared/structured-native-chat-launch-route.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.
-
There was a problem hiding this comment.
Actionable comments posted: 2

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
18719c0c-1d4d-4837-9e17-123c8fea39e0
Files selected for processing: 11-
docs/site/content/docs/agents/native-chat.mdxsrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.keybindings.test.tssrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.tssrc/renderer/src/components/tab-bar/TabBarItemRow.test.tsxsrc/renderer/src/components/tab-bar/tab-bar-item-surface.tsxsrc/renderer/src/components/tab-bar/use-tab-bar-runtime-model.tssrc/renderer/src/components/terminal-pane/terminal-chat-ownership-lifecycle.test.tsxsrc/renderer/src/components/terminal-pane/terminal-pane-host-state.test.tssrc/renderer/src/components/terminal-pane/terminal-pane-host-state.tssrc/renderer/src/components/terminal-pane/use-terminal-pane-chat-state.tssrc/renderer/src/lib/execution-host-facts.ts
Files skipped from review as they are similar to previous changes: 1-
- src/renderer/src/components/tab-bar/tab-bar-item-surface.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a9141ace-0d75-46c1-85ed-3f92d8c6e71d
Files selected for processing: 5-
src/renderer/src/components/native-chat/native-chat-pane-resolution.test.tssrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.keybindings.test.tssrc/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.tssrc/renderer/src/components/tab-bar/use-tab-bar-runtime-model.tssrc/renderer/src/components/terminal-pane/terminal-pane-host-state.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
Review loop statusThe problem. Orca's old "chat view" draws a chat-looking screen over a running terminal agent. Now that real chats exist it duplicates them with weaker behavior, so Brennan ruled it retired everywhere except WSL projects, which still need it. OpenClaude and ZCode lose it entirely. Before this PR, users outside WSL could still open the old view from the pane menu, the tab menu or its keyboard shortcut, and tabs saved in it reopened in it. What changes for users. Outside WSL there's no way into the old view, and tabs saved in it open as their terminal with the same running agent and scrollback. WSL projects keep the old view. When Orca doesn't yet know whether a project is WSL, it keeps a saved view and offers no new entry. OpenClaude and ZCode lose it on desktop and phone. The SSH wording now says the host isn't on Orca's server yet, instead of claiming chat never works over SSH. Review. Full path: four correctness rounds, an architecture challenger, two design-panel rulings (ruling-check OK), and a performance pass. Fixes made in review: saved views kept while the runtime is still being resolved at startup; repository-free WSL folders and group-inherited hosts recognised as WSL; a per-worktree scan that repeated on unrelated updates removed and covered by an N/10N operation and render test. All 7 review threads are resolved. QA (Windows, Claude and Codex, builds of this branch):
Not verified, and why:
Main bugs found, outside this PR: STA-13039, STA-13050 (above), and STA-13084: Reveal for a nested SSH workspace on a WSL hub can open the local WSL path. Heads. Real-run QA ran on ba1c4f6 and f46e224. The prior main merges and test-only correction were already reviewed. Main e4d07cf is now merged by 33d9fc7. Conflict resolution preserves the WSL-only entry policy and saved-tab fallback, main's runtime-owner cache and terminal readback, and main's test pruning. Required regression cases moved into surviving suites; no deleted suite was revived. Main's shortcut is now Ctrl+Shift+F11 by default, with Ctrl+Shift+J as the fallback when function keys are unavailable. Subsequent corrections db999f7, 18327d0 and 16e8d67 adapt migrated tests to current contracts and isolate their call history. Commit 76d1550 updates a main-added language-change test to expect this PR's SSH wording; its English-to-Spanish checks remain intact. Commit 714e1ea fixes the hook's lint limit by returning the same existing memoized action functions through their object; it changes no user flow. An independent Claude Opus-medium reviewer checked the merge conflict resolution and every correction through 76d1550 with no blocking findings. The original completed review and real-run QA carry forward; no run flow changed. Full CI is green on 76d1550: all 12 unit shards, static analysis and typecheck, layout/e2e, WSL distro tests, mobile, packaging, persistence and cross-version checks passed (41 successful checks; 26 skipped). The Windows packaging job passed after one failed-job retry for a browser-renderer attachment timeout in unchanged code. Merge state is CLEAN. Local validation: the focused mobile suite passed all 3 tests. The explicit desktop test command was queued through the shared resource gate, then declined before execution after 30 minutes of sustained memory pressure. No local desktop test pass is claimed; desktop validation uses the current-head CI run. The changed-file formatting/lint check and all commit hooks passed. For Brennan's reviewSaved non-WSL old-view tab after upgrade and reload, branch (Codex):
The baseline build showed these tabs in the old view; the run recorded that in its saved state, but no unobscured screenshot of it was captured. WSL tab open in the old view, after its project switches to Windows:
WSL keeps the old view after a restart and reload, branch (the missing Codex reply is STA-13050):
Phone and SSH-wording screenshots are in the PR description. Where judgment matters:
|




ELI5
Orca used to have an "old chat view": a chat-looking screen drawn on top of a running terminal agent. It wasn't a real chat session, and now that real chats exist it only confuses people. This PR retires that old view everywhere except WSL projects, which still need it until real chat works there. Tabs that were saved in the old view now simply show their terminal: the same running agent, same scrollback, nothing restarted or cleared. OpenClaude and ZCode lose the old chat view entirely, on desktop and phone, WSL included.
What Changed
\\wsl.localhost\...). A paired Windows host with an ordinary Windows path stays "unknown" for now (see below).Why
The old view overlays a terminal rather than running a real chat, so it duplicates the real Chat UI with weaker behavior. Retiring it through the one existing entry check and the existing per-pane view owner removes it without adding a second routing path or restarting anyone's agent.
Intended: WSL projects keep the old view because real chat isn't available in WSL yet (confirmed by Brennan). Temporary: the old view's internals stay until WSL gets real chat, and the phone keeps its other transcript views until the follow-up that switches conversations automatically. Temporary: a paired Windows host with a non-WSL path keeps any saved old-view tab and offers no new entry, because Orca can't yet tell whether that host runs the project in WSL; tracked in #28977.
Out of scope: the desktop Chat UI default, the real "Continue in Chat UI" pane button, and the chat⇄terminal switch in #31595 are unchanged.
Linked Issue
Internal maintainer request; no linked issue.
Visual Proof
A saved old-view tab outside WSL now opens as its terminal (Windows, real Codex). The tab was saved in the old view by the previous build. After upgrading to this branch and reloading, it shows its terminal with the original conversation, and the agent answered a new message after the reload.
A WSL tab open in the old view, after its project is switched to run on Windows (real agents, same running process kept on both builds):
WSL keeps the old view across a restart and reload on this branch (the Codex tab is still in the old view). The missing reply in this capture also happens on main and is tracked in STA-13050.
Phone (iOS, fixture data, no live agent): an OpenClaude tab stays in its terminal and its menu has no transcript action.
Desktop SSH wording (shipped components, fixture data, narrow width):
Testing
Real runs on Windows with Claude and Codex, on builds of this branch:
Not proven, and why:
Full CI passed on the current head 76d1550 (static analysis and typecheck, all 12 unit shards, layout and e2e checks, WSL distro tests, mobile, packaging and persistence). The Windows packaging job passed after one failed-job retry for a browser-renderer attachment timeout in an unchanged test. CI is the desktop validation gate: the explicit local desktop test command was declined before execution by the shared resource gate after 30 minutes of memory pressure; the focused mobile suite passed all 3 tests.
Review
Full review path, because this rewrites a saved tab setting on load, changes phone eligibility and covers paired hosts. Four correctness rounds, an architecture challenger and design panel rulings, and a performance pass (the WSL check is cached per project and tested at 10× scale) are complete. Review fixes kept saved views while the runtime is still unknown, made repository-free WSL folders and group-inherited hosts count as WSL, and removed a repeated per-worktree scan.
Main was merged in 33d9fc7. An independent Claude Opus-medium reviewer checked its conflict resolution and subsequent test/lint corrections through the current head without blocking findings. The original real-run QA still applies; these corrections changed no user flow.
Agent skill upstream boundary
Notes
No new saved fields or wire operations, and no minimum server version. Retiring a view never restarts or clears a terminal. An unrelated existing issue found during review, where Reveal for a nested SSH workspace on a WSL hub can open the local WSL path, is tracked in STA-13084.
Checklist