Repository navigation
Add a Chat settings page for structured native chat - #25685
Conversation
9304a4e to
39e161b
Compare
13503c9 to
454017b
Compare
f17cba8 to
ef21e3f
Compare
454017b to
6ff0ea6
Compare
ef21e3f to
354c3ef
Compare
6ff0ea6 to
98580e9
Compare
354c3ef to
37f4353
Compare
98580e9 to
33dec17
Compare
37f4353 to
c261b0b
Compare
33dec17 to
9aab015
Compare
|
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 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.
|
9aab015 to
e288bc1
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (23)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughChat appearance controls move from the Appearance pane into a Chat settings section. The section and its navigation entry appear only when Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |



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
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 base1de3aa405f71ea693b7138c40dac62e76883a10fand shows the old Appearance Chat card fully in view. These replace the earlier screenshots from the stacked version.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
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:webpassed through the machine-wide queue on the final rebased head.verify:localization-catalogs(locale and runtime catalogs),check:code-quality:changed, scopedoxfmt --checkandgit diff --checkalso 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
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