Skip to content

Add a Chat settings page for structured native chat - #25685

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

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

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​381 $\color{#cf222e}{\Huge{\mathbf{−}}}$​49 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​332
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​157 $\color{#cf222e}{\Huge{\mathbf{−}}}$​87 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​70

ELI5

Chat appearance controls are mixed into the app-wide Appearance page, including when “Use updated structured native chat” is disabled. This gives the existing controls one home under Settings → Chat → Appearance, visible only while that option is on.

What Changed

  • Put Chat in the Interface group immediately after Appearance.
  • Move main’s existing text size, code text size, width and reset controls to Chat under an Appearance heading.
  • Gate the page, sidebar navigation, Settings search and command-palette results on the same existing preference. Search links open the matching control.
  • Reuse the existing settings writes, reset behavior and platform-aware shortcuts, and add the page description to all six locale catalogs.

This PR now sits directly on main and contains only its six Chat-page commits. Preview, Contrast and Match terminal interface controls belong to separate unmerged changes and are excluded here, along with their search entries, anchors and dependent assertions.

Turning the option off preserves saved appearance choices. If Chat settings are open, Settings uses its existing fallback to the first visible page, currently Agents.

Why

A single Chat page makes these controls easier to find without duplicating their state or behavior. Moving main’s existing controls preserves how changes are saved, instead of adding another implementation.

The requested trade-off is explicit: when “Use updated structured native chat” is off, chat appearance controls are unreachable through Settings and search. The separate Chat page and whole-page opt-in gate are intentional product choices.

Linked Issue

N/A (maintainer request).

Visual Proof

Fresh hidden Electron validation on head e288bc1866f63f4e1b5c1d3235c5aa3c2a05e576, using an isolated profile on macOS. The before image runs the exact base 1de3aa405f71ea693b7138c40dac62e76883a10f and shows the old Appearance Chat card fully in view. These replace the earlier screenshots from the stacked version.

Before: Chat card in Appearance After: separate Chat page
Existing Chat controls in Appearance Chat page immediately after Appearance in Interface
Light theme Short window after scrolling
Chat appearance controls in light theme Width and Reset accessible at 420-pixel height

Agents fallback after the Chat page is hidden

The real Experimental switches enabled structured chat. Real controls changed text/code sizes to 18/16 and Width to Wide; the choices survived off/on and a fresh app restart. Reset restored 14/12/Comfortable. Settings search and the ordinary command palette exposed the moved controls only while enabled, and Appearance had no duplicate controls in either state. Light, dark and a short window rendered without clipping.

The switch lives on Experimental, so testing disabling it while Chat remained selected invoked the switch's settings action directly; Agents appeared and values were retained. The palette was opened through its real sidebar button because its keyboard accelerator did not fire in the hidden window. No real agent was launched.

Testing

  • I manually tested these changes locally (real hidden Electron UI via CDP)
  • Automated tests added/updated

On macOS, the final rebased head passed 157 tests across 14 explicit files using ORCA_BACKGROUND_LAUNCH=1 pnpm exec vitest run --config config/vitest.config.ts <files>. These cover the opt-in gate, sidebar placement, Settings search, command-palette links, row targets, hidden-page fallback, translated navigation, queued appearance writes, reset, shortcuts and shared chat styles.

A fresh ORCA_BACKGROUND_LAUNCH=1 pnpm tc:web passed through the machine-wide queue on the final rebased head. verify:localization-catalogs (locale and runtime catalogs), check:code-quality:changed, scoped oxfmt --check and git diff --check also passed. No main-process files changed in this PR.

Exact-head CI run 37426685035 completed successfully: static checks and typechecks, five unit-test shards, relay integration, macOS/Windows packages and final verification ran and passed. Eleven additional jobs, including rendered end-to-end, real input-method and WSL checks, were skipped; those skips are not runtime coverage. Windows, Linux, SSH and mobile runtime checks were not performed; rendered checks here cover macOS Settings. No source changed during the fresh visual review.

Review

Replayed only this PR’s six commits onto current origin/main, resolved conflicts to move the Chat controls already on main, and removed dependencies on the unmerged preview and contrast changes. The opt-in gate, navigation placement, settings search, row links and translated page description retain their reviewed behavior.

One previously reviewed P3 remains deferred: an internally supplied Chat deep link received while the page is hidden can remain pending and activate after the option is enabled, even if another settings page was selected meanwhile. This is source-traced without a rendered reproduction; ordinary command-palette Chat links are hidden while the option is off.

Agent skill upstream boundary

  • Not applicable; no upstream skill source copied or translated.

Notes

Head e288bc1, rebased directly onto main at 1de3aa4. Maintainer: @BrennanKB5.

This changes renderer settings navigation. It adds no persisted field or remote message, changes no execution-host behavior, and makes no assumption about git worktrees versus folder workspaces. Mobile is unchanged.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Comparable before/after screenshots complete on the current head and exact base
  • Self-reviewed for correctness, security and performance
  • Cross-platform, SSH/remote and path/shortcut impact considered
  • CI completed successfully on the rebased head (actual jobs and skipped platform checks described above)

@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-appearance-preview branch from 9304a4e to 39e161b Compare October 5, 2026 22:39
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch 2 times, most recently from 13503c9 to 454017b Compare October 5, 2026 23:47
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-appearance-preview branch 2 times, most recently from f17cba8 to ef21e3f Compare October 6, 2026 00:06
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch from 454017b to 6ff0ea6 Compare October 6, 2026 00:27
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-appearance-preview branch from ef21e3f to 354c3ef Compare October 6, 2026 00:49
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch from 6ff0ea6 to 98580e9 Compare October 6, 2026 01:13
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-appearance-preview branch from 354c3ef to 37f4353 Compare October 6, 2026 03:06
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch from 98580e9 to 33dec17 Compare October 6, 2026 03:37
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-appearance-preview branch from 37f4353 to c261b0b Compare October 6, 2026 03:54
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch from 33dec17 to 9aab015 Compare October 6, 2026 04:17
@brennanb2025

brennanb2025 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Chat appearance controls were mixed into the app-wide Appearance page even when the updated structured chat interface was disabled. This moves the existing preview and controls to Settings → Chat → Appearance, immediately after Appearance in the sidebar, with the page and its search results visible only while “Use updated structured native chat” is on. Turning the option off keeps saved settings and uses the existing fallback page when Chat was open.

At 9aab0155c9ea3ac86ed602f341776772a3b6f4c8, the review has no open critical or high-severity finding (P0/P1). The branch was restacked onto the current preview base, preserving its preview and queued-write behavior; the page test was adapted to that writer and an unused translation alias removed. One P3 is deferred: an internally supplied Chat deep link received while the page is hidden can remain pending and activate after enabling the option, even if another settings page was selected meanwhile. That is a source trace without a rendered reproduction; ordinary command-palette links are already gated.

300 tests across 24 explicit files, a queued scoped web typecheck, both locale checks and changed-code quality/React Doctor/scoped lint/format passed before the final base update; a full-tree comparison confirmed the final source is unchanged. The final source review covered all eight readiness areas. Current-head CI passed actual typecheck, guards, macOS/Windows packages, relay integration and all five unit shards; final verification and selection evidence also passed, and the run completed successfully. Skipped jobs do not establish coverage.

Remote macOS Electron proof used isolated profiles and real Settings navigation. I downloaded, hash-matched and inspected the light-theme Chat page, the hidden-Chat/Agents state after a seeded settings update, and Width/Reset after scrolling at 620-pixel height. The before frame selected Appearance but did not include the old Chat card in its viewport. Comparable before-card proof, real Settings search/anchor navigation, a value-changing control interaction and dark-theme checks remain incomplete and require completion before readiness can be established. Windows, Linux, SSH, mobile, actual-chat and native shortcut runtime checks were not performed. No real agent was used.

Chat page Chat hidden (seeded gate update)
Chat settings Agents fallback

Width and Reset at 620-pixel height

@brennanb2025
brennanb2025 changed the base branch from brennanb2025/native-chat-appearance-preview to main October 6, 2026 06:06
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-settings-page branch from 9aab015 to e288bc1 Compare October 6, 2026 06:57
@brennanb2025
brennanb2025 marked this pull request as ready for review October 6, 2026 09:12
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b7ef9796-0db3-479b-9031-094ee56ce3db
📥 Commits

Reviewing files that changed from the base of the PR and between 1de3aa4 and e288bc1.

📒 Files selected for processing (23)
  • src/renderer/src/components/settings/AppearanceChatSection.test.tsx
  • src/renderer/src/components/settings/AppearanceChatSection.tsx
  • src/renderer/src/components/settings/AppearancePane.test.tsx
  • src/renderer/src/components/settings/AppearancePane.tsx
  • src/renderer/src/components/settings/ChatSettingsSection.navigation.test.tsx
  • src/renderer/src/components/settings/ChatSettingsSection.test.tsx
  • src/renderer/src/components/settings/ChatSettingsSection.tsx
  • src/renderer/src/components/settings/SettingsSidebar.test.tsx
  • src/renderer/src/components/settings/appearance-search.ts
  • src/renderer/src/components/settings/chat-appearance-search.ts
  • src/renderer/src/components/settings/settings-interface-secondary-section-renderers.tsx
  • src/renderer/src/components/settings/settings-page-renderer.tsx
  • src/renderer/src/hooks/settings-navigation-build-options.ts
  • src/renderer/src/hooks/settings-navigation-interface-sections.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.test.ts
  • src/renderer/src/hooks/useSettingsNavigationMetadata.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/settings-navigation-types.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/settings/appearance-search.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

Chat appearance controls move from the Appearance pane into a Chat settings section. The section and its navigation entry appear only when experimentalStructuredNativeChat is enabled. Search entries now target the controls in Chat, and localized Chat descriptions are added. Tests cover visibility, navigation, search, deep links, and settings updates.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to e288b

The Chat settings relocation is mergeable after normal checks; no material user-facing failure is established.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 5.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 16 files. (6 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: adding a Chat settings page for structured native chat.
Description check ✅ Passed The description covers the purpose, user-facing changes, implementation, visual proof, testing, linked-issue exception for a maintainer, and known limitations. It follows the required template and pro…
Full details: Docstring Coverage

Explanation

Docstring coverage is 5.56% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 16 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant