Repository navigation
Add chat appearance settings: text size, code size, width - #25657
Conversation
7f2ba8e to
ddb25ae
Compare
11c97b6 to
4f3a07a
Compare
ddb25ae to
3003c53
Compare
4f3a07a to
d2c9dc5
Compare
fa517e4 to
da2da9d
Compare
|
Chat was hard to read, and temporary zoom enlarged its controls along with the text. This PR adds persistent Appearance settings for message text, independent code text, and shared message/composer width; focused keyboard and View zoom use the same saved text preference. The review fixes preserve rapid appearance edits and future preference fields during Reset, respect configured browser shortcuts, scale native chat headings, and skip redundant saves at the text-size limit. Deferred: the P2 scroll-measurement concern still needs rendered reproduction; the P3 disabled-shortcut hint and heading inline-code sizing remain accepted edges. Current pushed head: The PR body now includes personally inspected M4Air screenshots explicitly labeled as earlier-head evidence from 696c88. That QA captured dark/light Chat settings, defaults, text 17 / code 13 / Wide, focused Cmd+ zoom (saved and computed text size 14→15px), a narrow pane, and Reset. App-own userData logging proved isolation, the real Codex hooks hash remained unchanged, and owned app processes and ports were confirmed stopped. The extremely narrow capture has no same-fixture main comparison; its clipping is not classified as inherited or PR-caused. Final-head QA remains incomplete. Two isolated M4Air startup attempts at 334a91 failed before screenshots: the wrapper never exposed the debugger, and standalone Electron timed out waiting for the renderer store. Windows high spec is unavailable because its update prompt must not be answered; Windows low-spec fallback was blocked by an agent update prompt, which was left unanswered; both saved Linux endpoints are unreachable. The standalone failure log is retained; the wrapper attempt left no durable stdout/stderr log. All five recorded final-head app/driver PIDs were later confirmed absent, and the debugger port had no listener. The occupied renderer port belongs to another PR and was left untouched. The older diagnostic app PID 72425 remains untouched. The owned M4Air QA terminal was released with an archived transcript, and its fresh child was removed after images and reports were copied locally. Windows cleanup remains unresolved: the startup-failed dispatch reports an identity mismatch and no owned resource, so its update-prompt terminal and child were preserved for supported recovery. Native menu/focus, restart persistence, actual scrolling, final-head visual behavior, WSL, SSH, mobile runtime, and release packaging remain unverified. The PR remains draft with no auto-merge and an unchanged base. Completion still requires final-head visual proof and verified resource cleanup. |
d2c9dc5 to
40947d8
Compare
da2da9d to
7265cbc
Compare
40947d8 to
696c88e
Compare
…jected-command test Main's chat appearance settings (#25657) replaced the message list's fontScale prop.
ELI5
Chat text zoom was temporary and enlarged transcript controls along with messages. Code size and message width had no settings. Settings → Appearance now has a Chat card with persistent text size, independent code size, and width. Keyboard and View-menu zoom change the same text preference while chat has focus; controls and metadata retain their existing sizes.
What Changed
One optional preference stores only choices that differ from the defaults. The card and zoom read the latest saved settings before each change, preventing quick changes from overwriting one another. Unknown fields survive both updates and Reset. Browser shortcuts honor configured bindings and full modifiers. Native chat headings grow with message text. Actions at the text-size limit skip redundant saves.
Why
Text styling replaces whole-transcript scaling so text can grow without enlarging icons, spacing, and buttons. Separate code styling makes both sizes independent. Local interface settings apply to remote chats and folder workspaces without changing the remote protocol; mobile retains its existing sizing behavior. The ranges, defaults, and shared message/composer text preference are intended choices for this feature.
Linked Issue
N/A (maintainer).
Visual Proof
M4Air screenshots below were captured at
696c88e3a87b4f0a7a2ac87fc00b8f0d7e9f9eef. Current headeba4c8d6c786c4271dc8782f0a21a6e7984b2e13resolves conflicts against main and preserves both the newer chat styling and these appearance preferences; these screenshots remain earlier-head evidence. Two final-head M4Air startup attempts failed before captures, and Windows low-spec fallback was blocked by an agent update prompt, which was left unanswered; both saved Linux endpoints are unreachable.Chat settings, dark — earlier head 696c88
Chat settings, light — earlier head 696c88
Default text and code sizes — earlier head 696c88
Text 17, code 13, Wide — earlier head 696c88
Focused chat keyboard zoom — earlier head 696c88
Narrow pane — earlier head 696c88
Testing
Conflict resolution at
eba4c8d6c786c4271dc8782f0a21a6e7984b2e13: merged current main, retained newer chat colors and command accessibility, kept appearance sizing and transcript measurement, and aligned code sizing with the current command classification. Moved the existing visibility-defaults type beside its related types and retained its old export to stay within the file-size limit. Renderer and node typechecks, localization verification, changed-code quality, and 294 focused tests passed; the final command-classification adjustment passed its 60-test rerun. Final-head rendered screenshots remain unverified.At 696c88e on repaired parent 7265cbc and main 08a970a:
At final head
334a91b8f259e56d9709969a50e772c93e27c397, localization verification, renderer typecheck, five focused files / 53 tests, changed-code quality, and diff checks passed after removing the unused translation. The preceding 307-test and node-typecheck results remain from 696c88.Earlier-head M4Air QA proved isolated app userData, unchanged real Codex hooks, focused keyboard zoom saved and computed 14→15px, real settings changes, and Reset. Its owned app processes and ports were confirmed stopped. Final-head screenshots remain pending after two startup failures; Windows low-spec fallback was blocked by an agent update prompt, which was left unanswered; both saved Linux endpoints are unreachable. Native menu/focus, restart persistence, actual scrolling, WSL, SSH, mobile runtime, and release packaging remain unverified. The inherited diagnostic app PID 72425 was left untouched; all five recorded final-head app/driver PIDs were later confirmed absent. Port 9342 had no listener; port 5175 belongs to another PR and was left untouched.
The owned M4Air QA terminal was released with an archived transcript, and its fresh child was removed after images and reports were copied locally. Windows cleanup remains unresolved: the startup-failed dispatch reports an identity mismatch and no owned resource, so its update-prompt terminal and child were preserved for supported recovery.
Review
Whole-change adversarial review, independent architecture review, fresh review of fixes, and readiness checklist without counsel. A fresh narrow review of the final rebase completed without a new P0/P1/P2 source finding. Deferred: a source-proven virtualizer measurement-cache concern awaits rendered evidence; disabled shortcut hints and heading inline-code scaling are P3 edges.
Agent skill upstream boundary
Notes
Maintainer: @BrennanKB5. This PR now targets main, and the maintainer authorized a squash merge after conflict resolution.
Checklist