Skip to content

feat(settings): move Chat UI's chat settings from Experimental to the Chat page - #28050

Merged
brennanb2025 merged 6 commits into
mainfrom
brennanb2025/native-chat-settings-move
Oct 12, 2026
Merged

brennanb2025 merged 6 commits into
mainfrom
brennanb2025/native-chat-settings-move

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​181 $\color{#cf222e}{\Huge{\mathbf{−}}}$​78 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​103
Prod 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​228 $\color{#cf222e}{\Huge{\mathbf{−}}}$​139 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89

ELI5

Turning on Chat UI (Settings > Experimental) already adds a "Chat" page to Settings. But three settings that only matter for chats were still tucked under the Chat UI switch on the Experimental page. This moves them to the Chat page, next to the other chat settings.

What Changed

Before: with Chat UI on, Settings > Experimental showed the Chat UI switch plus three indented settings under it: "Resume working chats automatically after a restart", "Queue follow-ups", and "Use your shell environment" (with its variable list). The Chat page held only Appearance, Inline visuals and Chat names, so chat settings were split across two pages.

After: Experimental shows only the Chat UI switch. The Chat page has a new Behavior group (its own heading and card, between Inline visuals and Chat names) holding those three settings. Settings search and the Cmd+J palette find them on the Chat page ("resume", "queue", "environment variables", "proxy"…) and jump straight to the row.

Mechanism:

  • New ChatBehaviorSetting renders the three rows inside the Chat page, using the same SearchableSetting + SettingsSwitchRow pattern as the Appearance card.
  • New chat-behavior-search.ts holds their search entries (each with its own deep-link target). The Chat page's navigation entry now includes them. The queue keyword is removed from the Experimental Chat UI entry.
  • NativeChatExperimentalSetting keeps only the Chat UI switch.
  • The Queue follow-ups row is still shown only when this machine's runtime supports queueing. That check now lives in the Behavior group, and settings search and the command palette use that same capability, so they do not offer a queue setting that cannot render.
  • The separate NativeChatQueueFollowUpsSetting component is folded into the Behavior group, since it is now a plain switch row. The setting keys and stored values are unchanged.

Why

The Chat page already exists for exactly these settings, and it appears exactly when Chat UI is on. Splitting chat settings between it and Experimental made them hard to find. Moving the rows reuses the existing page, search and deep-link mechanism; nothing new is added.

Temporary behavior difference (deferred by Brennan): before, these controls stayed visible on Experimental with Chat UI off if this machine still held chats. They now live on Chat, which keeps its existing visibility rule and appears only while Chat UI is on. Existing chats can still resume automatically with Chat UI off; in that state the restart dialog's “Change in Settings” link cannot reach the hidden Chat page. Turn Chat UI on to reach the controls. Brennan explicitly chose to keep page visibility unchanged: the planned move of Chat UI out of Experimental will make Chat always visible and remove this edge case.

Visual Proof

Before (main): Experimental, Chat UI on After: Experimental, Chat UI on
before after experimental

After: the Chat page with the new Behavior group:

after chat page

After: "Use your shell environment" turned off on the Chat page, with a variable added:

after shell env

(Queue follow-ups doesn't appear in these shots because this dev build's runtime doesn't support queueing. That matches the old behavior on Experimental.)

Testing

  • Two independent review rounds, an architecture challenge, the readiness checklist, and performance source reviews completed. Review fixed lost existing translations, search results pointing to an unsupported queue control, and missing Behavior-heading search coverage.

  • Reviewed commit: 8112c7065b23c116a749e82209c264cd6639d77d. One final main integration included the repository check repair; it left the reviewed settings and resume-link code unchanged.

  • Settings, navigation, and restart-dialog tests: 406 files, 2,779 tests passed. Standard full typecheck and tc:web passed. orca-ci-checks passed 23/24; the local Bun wrapper fails before code checking with Script not found "check". GitHub's static analysis/typecheck, all five test jobs, relay integration, both package builds, and final verification passed: CI run.

  • Remote M4Air Electron checks on that exact commit, driven by OpenCode through the Chrome DevTools Protocol with a disposable profile and hidden app: Experimental retains the switch; Chat Behavior renders the moved controls; shell inheritance and variable add/remove persist; automatic resume saves both on and off; Settings search and rendered palette selection reach Chat; unsupported queue controls/results are absent; existing moved French strings render in French. Own test processes were stopped and ports released.

  • Limits: the native Cmd+J keyboard accelerator was not exercised in the hidden app; the palette was opened with its rendered sidebar button, and search/selection were tested through the UI. The queue-supported branch has automated coverage but was not exercised live because this runtime lacks the capability. Windows, Linux, browser, and mobile screens were not exercised; processor and memory costs were reviewed in source, not measured. The new Behavior heading still falls back to English in French; existing translations are preserved.

  • Manual Electron checks completed

  • Automated tests added/updated

Notes

  • Settings layout and discovery only: no saved preference names, data exchanged with other devices, or chat execution behavior changed.
  • The browser client connected to an Orca server uses the same moved rows; they retain their existing visibility rules.
  • Existing translation keys are retained, so moving the controls preserves their non-English labels and descriptions.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Chat settings were split between Experimental and Chat. The controls now live in Chat → Behavior, while Experimental keeps the Chat UI switch.

Review repairs preserve the existing translations, omit queue search results when the runtime cannot show that control, and make the Behavior heading searchable. Two review rounds, the architecture challenge, readiness, and dedicated performance source reviews are complete.

Verified commit: 8112c7065b23c116a749e82209c264cd6639d77d. The 2,779 targeted tests and both typechecks passed; CI is green. Remote M4Air checks, driven by OpenCode in a hidden app with a disposable profile, passed relocation, preference persistence in both directions, variable add/remove, Settings and palette navigation, unsupported queue absence, and existing French labels. No renderer errors; test processes were cleaned up.

Deferred, temporary: with Chat UI off and old chats still held, the restart dialog’s “Change in Settings” link targets a hidden Chat page. Brennan explicitly chose to preserve visibility until the planned change makes Chat always visible; enabling Chat UI is the current workaround.

Limits: the native Cmd+J accelerator and a queue-supported runtime were not exercised live. The palette was opened through its rendered sidebar button and its search/selection passed; supported queue behavior has automated coverage. The new Behavior heading/search keywords still fall back to English in French. Windows/Linux/browser/mobile screens and processor/memory timing were not tested. The local Bun wrapper error is documented; standard typechecks and CI passed.

Remote proof: Chat Behavior, then the existing French labels.

Chat Behavior

French Chat Behavior

@brennanb2025
brennanb2025 marked this pull request as ready for review October 12, 2026 21:38
@brennanb2025
brennanb2025 merged commit edd8084 into main Oct 12, 2026
54 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/native-chat-settings-move branch October 12, 2026 21:44
@smwbev

smwbev commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

One leftover from the move: the restart dialog still points at the old place.

Under "Don't ask again (resume automatically)", NativeChatResumeOnRestartModal.tsx:375 (auto.components.NativeChatResumeOnRestartModal.dontAskAgainHint) reads "You can turn this off in Settings → Experimental → Chat UI." The switch it means, nativeChatResumeWorkOnRestart, is now rendered only by ChatBehaviorSetting.tsx under Settings → Chat → Behavior, and Experimental keeps just the Chat UI switch. The link in NativeChatResumeAutoNote already opens the right row, so only this sentence and its five translations are stale. Checked on main at a1f8e6482b.

Happy to send the one-string PR if that is easier.

smwbev added a commit to smwbev/orca that referenced this pull request Oct 12, 2026
…one key

main moved 42 commits since the last refresh (b0e73d9 to
a1f8e64), eight of them touching en.json, and the branch conflicted
again only in the generated en-runtime-required.json. The six locale
files merged cleanly, so the earlier prune carries over.

One key is added to it:
auto.components.settings.experimental.search.nativeChat.queue. stablyai#28050
moved the queue search keyword to the Chat page and stopped reading
this one, but left it in all six catalogs.

Each catalog now differs from main by the same 1,477 keys and nothing
else, and the detector finds no unreferenced key on the merged tree.
en.json goes from 15,860 entries to 14,383. en-runtime-required.json
is regenerated at 538 of 14,383.

The merge comes through the detector branch so the two stay in step.
registered2nd pushed a commit to registered2nd/orca that referenced this pull request Oct 14, 2026
… Chat page (stablyai#28050)

* feat(settings): move Chat UI's chat settings from Experimental to the Chat page

* chore(i18n): sync catalogs for the moved chat settings

* fix(settings): hide the Behavior group when search matches only a switch the host lacks

* Keep Chat behavior search aligned with translations and host support

(cherry picked from commit edd8084)
brennanb2025 added a commit that referenced this pull request Oct 15, 2026
… Chat page (#28050)

* feat(settings): move Chat UI's chat settings from Experimental to the Chat page

* chore(i18n): sync catalogs for the moved chat settings

* fix(settings): hide the Behavior group when search matches only a switch the host lacks

* Keep Chat behavior search aligned with translations and host support

(cherry picked from commit edd8084)

Backport to 1.4.224: ChatBehaviorSetting imports RuntimeClientTarget from @/runtime/runtime-client-target (1.4.224's location); NativeChatQueueFollowUpsSetting is deleted as on main (its only 1.4.224 difference was that import path).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants