Repository navigation
Put Chat UI in the existing Chat settings section - #22934
brennanb2025 wants to merge 18 commits into
Conversation
Chat UI leaves Settings > Experimental for a Chat UI pane under AI Capabilities, after Agents. It stays off by default and keeps the persisted experimentalNativeChat key, so existing choices carry over. Each row (Chat UI, Default view, resume after restart, shell environment) is its own searchable setting. The resume and shell rows show whenever the default view is Chat UI, and are hidden on paired web clients, where they would only write browser storage the host never reads. Copy drops the experimental/preview wording under new keys; unchanged strings move with their translations.
There was a problem hiding this comment.
ℹ️ No critical issues — minor suggestions inline.
Reviewed changes
- New Chat UI pane:
ChatPane.tsxreplacesNativeChatExperimentalSetting.tsx, rendering the on/off switch plus the Default view, resume, and shell-environment child rows under a newchatsettings section. - New search index:
chat-search.tsexposes one searchable entry per row and filters the two host-owned rows for web clients; the Experimental search entry and ExperimentalPane row are removed. - Navigation + routing:
chatadded to thecapabilitiesgroup andSETTINGS_NAV_TARGETS;renderChatSettingsSectionwired intosettings-page-renderer.tsx. - i18n:
ChatPane/chat.searchnamespaces replace the Experimental ones across en/es/fr/ja/ko/zh, plus the resume-dialog hint rename todontAskAgainSettingsHint. - Docs: Chat UI moved out of Experimental in
settings.mdxandnative-chat.mdx.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| "defaultCopy": "Elige cómo se abren las nuevas pestañas de terminal de agentes compatibles.", | ||
| "defaultViewLabel": "Vista predeterminada de Chat UI", | ||
| "defaultViewTerminal": "Chat en terminal", | ||
| "defaultViewNative": "Chat UI", |
There was a problem hiding this comment.
es is the only locale missing these four ChatPane keys — structuredScopeLocalOnly, resumeTitle, resumeCopy, and resumeToggleLabel. fr, ja, ko, and zh all carry them under ChatPane, so Spanish falls back to English for the resume row and the local-only note. They were also absent from the old es ExperimentalPane.nativeChat, so this is not a regression — but since the namespace is being renamed here anyway, it's worth closing the gap and reusing the fr wording.
… rows it reveals Searching "resume" or "variables" with Default view set to Terminal chat left only the already-on Chat UI switch visible, with no way to reveal the matching row without clearing the search.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — re-reviewed the one commit since pullfrog's prior review (381b5799b3 → c0e6eb0c41); it touches only ChatPane.tsx and ChatPane.test.tsx.
- Search-gated Default view:
ChatPanenow subscribes tosettingsSearchQueryand passesforceVisibleto the Default view row when the query matches either host-owned structured entry, so a search for "resume" or "variables" no longer lands on a section whose only matching row is hidden behind a non-matching Default view. - Web gate reuse: extracted
hostOwnedRowsAvailablefrom the web-client check and reused it for bothshowStructuredRowsand the new search-match condition, keeping paired web clients from forcing the row. - Test correction and coverage: the existing structured-row search case now expects Default view visible, plus two added cases for the Terminal-chat default and a non-matching query.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Both settings apply to every chat open in Chat UI, and the resume dialog points users here to undo "Don't ask again". Hiding them under Terminal chat left that switch unreachable, and needed a search special case to keep Default view visible; neither is needed now.
There was a problem hiding this comment.
ℹ️ No critical issues — no new actionable findings in this commit.
Reviewed changes — re-reviewed the one commit since the prior pullfrog review (c0e6eb0c41 → 9516a45e25); it touches ChatPane.tsx, ChatPane.test.tsx, and the settings docs.
- Resume and shell rows decoupled from Default view:
ChatPanenow renders both whenever Chat UI is on and the window is not a paired web client, so a Terminal-chat default no longer hides settings that still apply to open Chat UI tabs. - Gating simplified: the
structuredRowSearchMatchhelper and theforceVisibleprop on the Default view row were removed now that the host-owned rows are unconditionally visible;SearchableSettingmatches each row on its own search entry, andchat-uikeepsforceVisible. - Tests and docs aligned: the shell/resume visibility matrix and the search cases were updated to the new behavior, and
settings.mdxnow says those rows are shown "while Chat UI is on".
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
The Chat page decided which Chat UI rows to show in one place and what Settings search indexed in another, and the two had drifted: a paired web client showed a Chat UI switch that cannot open chats there, and Queue follow-ups was searchable on hosts where the row never renders. getChatUiSearchEntries now takes the live conditions (web client, chats in use on this machine, host queues follow-ups) and the page renders exactly the rows that index lists. The web client gets no Chat UI rows; Queue follow-ups appears, in the page and in search, only once this machine's runtime says it queues follow-ups.
Moving the Chat UI rows to the Chat page dropped the Spanish resume-row copy and Chat search keywords, so Spanish users saw English there, and it dropped grok and omp as search words, so searching an agent's name no longer found Chat UI. The Spanish strings and the agent names (plus opencode, also a chat agent) are back, and a locale test checks every language keeps them.
NativeChatSupportedAgents lost its last caller when Chat UI moved to the Chat page; only its own test imported it. The component, its test, and its strings in every locale are gone.
The shell environment row said only Codex and Claude chats inherit the login shell's variables, but every chat agent starts with them. It now says "Chats start with every variable...", in every language. Also drops a duplicate 'chat' from the Settings navigation target list.
The Chat settings page now always shows, but the sidebar test still expected it hidden with Chat UI off.
|
Held as a draft for later. #22933 can ship today with the on/off switch still in Experimental. This PR’s regular-settings move is deferred. Review and QA summary (final head 6c9e1d4)Problem: Settings → Interface → Chat (where chat appearance and naming live) was hidden until you had opted in to Chat UI, and the switch to opt in sat under Experimental, so the place you'd look for "turn on chat" didn't exist yet. What changes for you:
Review. Two adversarial rounds plus an architecture challenger, all with fresh read-only reviewers. No release blocker (nothing at P0 or P1). Fixed in this PR:
Deferred (minor, not fixed here):
How this differs from the common pattern, all intended:
Verified:
Not verified:
Release:
|
|
Closing as superseded: a merged PR already covers this change. Merged #28050 (edd8084, 10-12) moved the Chat UI settings from Experimental to the Chat page (ChatBehaviorSetting/ChatSettingsSection), and #29071 (251516d) added the per-agent chat list; base #22933 merged. The PR's deleted files are already gone on (Stale-PR cleanup 2026-10-20, approved by Brennan. Reopen if something here is still missing on main.) |

ELI5
Held as a draft for the later regular-settings rollout. Today only #22933 ships: Chat UI remains under Experimental while supported new chats default to structured.
The switch that turns on Chat UI (agents opening as a chat view instead of a terminal) was hidden under Settings → Experimental. The Chat section, where the chat appearance and chat naming controls already live, was hidden entirely until you had opted in. So the one place a user would look for "turn on chat" didn't exist yet. Now Settings → Interface → Chat is always there, and it holds a single Chat UI switch next to the existing chat controls.
What Changed
Before: With Chat UI off, Settings had no Chat section at all, so appearance and naming were unreachable. The Chat UI switch sat under Experimental, alongside a separate default-view choice that suggested there were two decisions to make.
After:
Mechanism: One list of Chat UI rows drives both the rendered rows and their search entries (
getChatUiSearchEntries). A small hook,useChatUiRowConditions, supplies the conditions that list needs. The Settings page and the search index both read that list, so the two can't drift apart. The "Chat UI on, or chats held on this machine" rule reuses the existinguseLocalStructuredChatsInUseinstead of a second copy of the same check.Why
The existing Chat section already owns appearance, naming, its search targets, and the unsaved-changes guard, so extending it keeps all of that. A second Chat page would give users two destinations. A default-view selector would suggest a second choice after the Chat UI switch, but the launch policy in #22933 has only one choice.
How this differs from the common pattern, each intended:
Linked Issue
Direct product request; no issue. Depends on #22933 (merge it first; this PR is based on it).
This PR and #26540 must first ship together in the future graduation update. #22933 can ship earlier on its own while Chat UI remains Experimental. At the later graduation, #26540 permanently records which profiles have the Experimental setting on before regular opt-ins become possible, then limits the upgrade tip to that audience. Shipping this regular-settings move before the snapshot would lose that distinction. The current Chat UI setting remains user-controlled. #26336, already merged, supplies the sidebar action described by the tip.
Visual Proof
Screenshots of the hidden test app, taken over its debugging connection on macOS (M4Air). A non-Claude test agent (Codex gpt-5.6-terra) drove the UI; it never used the desktop. Every image is labelled with the commit it was taken on.
Final app code, 6f24254. The final head 6c9e1d4 only adds two parent test-file changes.
Ordinary agent launch, 6f24254. The launch used New tab → Claude, with a stand-in script in place of the real CLI.
The chat tab's "stopped before it finished starting" notice is expected: the stand-in is not a real agent.
First full pass on d7aa079 (same settings code as the final head)
Also passed on this pass:
The resume-on-restart tip dialog was not exercised because the fixture had no working chats.
Testing
I manually tested these changes locally (rendered app on macOS, test agent driving the UI over its debugging connection)
Automated tests added/updated, or explained why not below
macOS rendered app, M4Air: the screenshots above. Windows and Linux were not run as rendered apps. The change is renderer-only, with no paths, shells or shortcuts.
Final head 6c9e1d4 (merges the parent's test-only 1b24297):
terminal-pane-store-subscription-budget.test.tsxandterminal-chat-ownership-lifecycle.test.tsxpassed 11/11. The budget file is the only file that changed since b7deff8.pnpm tc:webpassed.orca-ci-checks --no-typecheckpassed 22/22.b7deff8:
pnpm tc:webpassed.agent-launch-caller-permissions.test.tspassed 60/60. This is the only file that changed since 6f24254.orca-ci-checks --no-typecheckpassed 22/22.6f24254 (the merge of the parent's final code):
tc:webandtc:nodepassed.orca-ci-checkspassed 23/23, including the typecheck.orca-runtime.test.tsdid not load on this machine because its Bun is older than the repo's pinned version. The parent coordinator reports it passes on the pinned Bun and under Node.The last observed CI snapshot on the final head is 20 successful checks and 18 skipped, with no failures; CI was not waited on.
AI Disclosure
Review
Adversarial review in two rounds by fresh read-only reviewers, plus an architecture challenger who sketched a solution from the request alone. No release-blocking findings. The fixes are summarised in the PR comment.
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Author: @BrennanKB5
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)