Skip to content

Soften native chat colors and code surfaces - #25651

Merged
brennanb2025 merged 5 commits into
mainfrom
brennanb2025/native-chat-soft-colors
Oct 6, 2026
Merged

brennanb2025 merged 5 commits into
mainfrom
brennanb2025/native-chat-soft-colors

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​82 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​75
Prod 29 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​173 $\color{#cf222e}{\Huge{\mathbf{−}}}$​73 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​100

ELI5

Native chat showed near-white messages on a near-black background, bright gray code blocks, and very long lines. That combination made conversations hard on the eyes. Messages now use softer text, quieter code surfaces, and a narrower reading column. Links have softer underlines and wrap at word boundaries before splitting an oversized token, and code blocks show a plain language label without the extra icon or dividing line.

What Changed

The reading column and message box shrink from 56rem to 46rem. User messages have rounded corners, a subtle border, and an 80% maximum width. The message box has rounder corners, a quieter placeholder and toolbar, and the same background around it as the conversation. Thinking and small system messages use upright, faint text, with matching bold text, links, headings, and code. Quoted reasoning retains the existing slightly brighter muted text color.

Chat colors derive from the existing light and dark themes. Dark body contrast changes from 18.968:1 to 10.798:1, with approximately #c8c8c8 text on #161616; light body contrast changes from 19.798:1 to 12.066:1. Headings and user messages retain a brighter tier. Code gets a subtle fill, thin border, rounded corners, and its own softer text color. Code headers are 30px tall, with tighter spacing above their contents.

A chat-only markdown wrapper applies these styles while retaining the shared markdown renderer. The existing card borders distinguish approvals, questions, queued messages, plans, and task lists from the conversation background. Tests identify the reading column by a dedicated attribute rather than a width class.

Why

Deriving a small set of chat colors from the current theme keeps light and dark appearances consistent. Separate text tiers preserve hierarchy while reducing glare. Keeping markdown styling scoped to chat prevents these appearance changes from affecting sidebar comments.

Linked Issue

N/A (maintainer)

Visual Proof

Current remote M4Air proof at pushed head 7265cbca0f26fe25a3d64f72ac2e193e87340778, using a seeded transcript in hidden Electron with isolated app data and home directories. These are uncropped full-app screenshots; the uploaded files were downloaded again and checked byte for byte.

Dark: activity folded and expanded

First Second
app-dark-folded.png app-dark-expanded.png

Open tools: dark and light

First Second
app-dark-tools-open.png app-light-tools-open.png

Composer typing/copy feedback and narrow-window limitation

First Second
app-wide-composer-focus.png app-dark-narrow-retry.png

The narrow screenshot is light theme despite its filename. At a 680px app width, the open sidebar and inspector leave roughly 50px for chat, and the transcript exceeds its visible width by 75px. Code still scrolls within its own block. The no-overflow assertion failed; a current-main comparison could not complete, so this is an unresolved observation, not an established regression from this PR.

Earlier local before/after evidence from the same seeded transcript on main and the appearance branch:

Dark theme

Before After
Before: Dark theme After: Dark theme

Light theme

Before After
Before: Light theme After: Light theme

Tool activity expanded (dark)

Before After
Before: Tool activity expanded (dark) After: Tool activity expanded (dark)

Testing

  • I manually tested these changes locally
  • Automated tests added/updated

At pushed head 7265cbca0f26fe25a3d64f72ac2e193e87340778, rebased onto main 08a970a3f1176e2de1450acedb706200ef5191fb:

Current-head M4Air checks completed dark/light rendering, folded/expanded activity, open tools, code scrolling, composer typing with focus through Chrome DevTools Protocol, and intercepted code-copy feedback. The app reported disposable user data and home/provider paths; hooks hashes remained unchanged. Shared Codex config hashes are observations only under the revised QA rules. No real agent or managed account was seeded, and no desktop input or window reveal was used. The native clipboard was not tested.

Narrow-window no-overflow failed as described above. Both Windows comparison agents were blocked at startup by an update prompt before any test app launched; both paired Linux runtimes were unreachable. Windows/Linux/SSH/mobile rendered behavior, full release validation, and the narrow issue's attribution remain unverified.

Review

Reviewed color inheritance, shared-markdown isolation, code spacing, and stable reading-column selectors. New tests cover markdown isolation, the chat-only link wrapping scope, upright thinking and system rows, and the plain code header.

Agent skill upstream boundary

  • Not applicable; no agent skill sources changed.

Notes

These presentation changes apply to local and remote chat views. Expanded tool/diff payloads retain their existing stronger fills; separate tool appearance work is tracked in #25654. Quoted reasoning remains slightly brighter than other reasoning text. The PR stays draft. Current-head remote screenshots are attached; narrow-layout attribution and full downstream CI remain outstanding.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@brennanb2025
brennanb2025 marked this pull request as ready for review October 5, 2026 20:29
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 67149988-3614-4514-9417-04bc9f202234
📥 Commits

Reviewing files that changed from the base of the PR and between 7f2ba8e and 7265cbc.

⛔ Files ignored due to path filters (1)
  • src/renderer/src/components/sidebar/__snapshots__/subagent-child-row-fallback-pixels.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (35)
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/native-chat/NativeChatApprovalCard.tsx
  • src/renderer/src/components/native-chat/NativeChatBackgroundTasksStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatCodeBlock.test.tsx
  • src/renderer/src/components/native-chat/NativeChatCodeBlock.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatCopyButton.tsx
  • src/renderer/src/components/native-chat/NativeChatImageAttachmentPreview.tsx
  • src/renderer/src/components/native-chat/NativeChatLaunchRetry.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.rail-history-jump.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing-test-support.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageTimestamp.tsx
  • src/renderer/src/components/native-chat/NativeChatNoticeRow.tsx
  • src/renderer/src/components/native-chat/NativeChatPaneFileDropSurface.tsx
  • src/renderer/src/components/native-chat/NativeChatPromptEditor.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSessionStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatThreadGoalBanner.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/NativeChatWorkingStatus.tsx
  • src/renderer/src/components/native-chat/native-chat-markdown.css
  • src/renderer/src/components/native-chat/native-chat-windowing-test-harness.tsx
  • src/renderer/src/components/terminal-pane/NativeChatPaneCover.tsx

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: b43780d5-2935-4560-a1b6-f9b4c876e3a7
📥 Commits

Reviewing files that changed from the base of the PR and between 57fedee and b781110.

📒 Files selected for processing (35)
  • src/renderer/src/assets/main.css
  • src/renderer/src/components/native-chat/NativeChatApprovalCard.tsx
  • src/renderer/src/components/native-chat/NativeChatBackgroundTasksStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatCodeBlock.test.tsx
  • src/renderer/src/components/native-chat/NativeChatCodeBlock.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerActions.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatCopyButton.tsx
  • src/renderer/src/components/native-chat/NativeChatImageAttachmentPreview.tsx
  • src/renderer/src/components/native-chat/NativeChatLaunchRetry.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMarkdown.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.rail-history-jump.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing-test-support.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageTimestamp.tsx
  • src/renderer/src/components/native-chat/NativeChatNoticeRow.tsx
  • src/renderer/src/components/native-chat/NativeChatPaneFileDropSurface.tsx
  • src/renderer/src/components/native-chat/NativeChatPromptEditor.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx
  • src/renderer/src/components/native-chat/NativeChatQueuedMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatResolvedView.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx
  • src/renderer/src/components/native-chat/NativeChatStructuredSessionStatus.tsx
  • src/renderer/src/components/native-chat/NativeChatThreadGoalBanner.tsx
  • src/renderer/src/components/native-chat/NativeChatTranscriptChrome.tsx
  • src/renderer/src/components/native-chat/NativeChatWorkingStatus.tsx
  • src/renderer/src/components/native-chat/native-chat-markdown.css
  • src/renderer/src/components/native-chat/native-chat-windowing-test-harness.tsx
  • src/renderer/src/components/terminal-pane/NativeChatPaneCover.tsx

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


📝 Walkthrough

Walkthrough

The change adds chat-specific theme colors and a shared content-width token. Chat message and plan content use a markdown wrapper with scoped styling. Code blocks, composer controls, transcript surfaces, and status elements adopt chat-specific styles. Transcript layout tests and harnesses locate the transcript column through a data attribute.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to b7811

No actionable issue remains in the reviewed chat styling changes; the PR is mergeable after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 45.16% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 33 files. (2 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 summarizes the main change: softer native chat colors and code surfaces.
Description check ✅ Passed The description covers the required sections, explains the user-facing changes and rationale, includes visual proof and testing details, and addresses the linked-issue exception for maintainers. It al…
Full details: Docstring Coverage

Explanation

Docstring coverage is 45.16% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 31 functions across 33 files. (2 skipped: 2 unsupported.)

✨ 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.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

The NativeChatBackgroundTasksStatus class changes weren't reflected in a sidebar snapshot, so subagent-child-row-fallback-pixels.test.tsx currently fails. There's also a small code-block header truncation regression worth a look.

Reviewed changes

  • Chat color tokens — main.css gains --color-chat-* theme entries plus light/dark --chat-* derivations (canvas, three foreground tiers, user/code/inline-code/composer surfaces and borders) and --chat-content-max-width: 46rem.
  • Scoped markdown styling — new NativeChatMarkdown wraps CommentMarkdown with a native-chat-markdown class, backed by native-chat-markdown.css (heading/link/inline-code/pre styling plus a [data-native-chat-message-tone='faint'] override). Sidebar comments are untouched.
  • Migration + token swaps — CommentMarkdown → NativeChatMarkdown across the chat components (NoticeRow also now passes renderCodeBlock); bg-background/text-muted-foreground swapped for the chat tokens.
  • Narrower reading column — max-w-4xl → max-w-(--chat-content-max-width) (46rem), with tests/tooling switched to a data-native-chat-transcript-column selector.
  • Code block + message row restyle — code header loses its icon and divider and shrinks to h-7.5; the user bubble gets a border/rounder corners at max-w-[80%]; reasoning drops italic and rows expose data-native-chat-message-tone.

No data, IPC, or behavioral contracts change — this is presentation only.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

<span
data-code-language={language}
className="flex min-w-0 items-center gap-1.5 font-mono text-[11px] text-muted-foreground"
className="min-w-0 font-sans text-xs text-chat-foreground-faint"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropping flex from this wrapper makes the inner <span className="truncate"> (line 25) an inline child, where overflow/text-overflow don't apply — so the language label no longer ellipsizes. An unknown or long fence language can now overflow the header instead of truncating (the sibling copy button is shrink-0). Keep this a block/flex container: move truncate onto this span, or restore flex/add block.

@brennanb2025
brennanb2025 marked this pull request as draft October 5, 2026 23:08
@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-soft-colors branch 4 times, most recently from fa517e4 to da2da9d Compare October 6, 2026 00:31
@brennanb2025

brennanb2025 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Native chat used bright text and code surfaces with long reading lines, making conversations hard on the eyes. This PR derives softer chat colors from the existing themes and shares a 46rem reading column between messages and the composer, while retaining the shared Markdown renderer and existing interactions.

Rebasing onto current main preserved its draft attachment handling and message rail behavior. No critical or high severity issue was established by the source reviews; the five reviewed appearance patches are unchanged. Deferred: expanded tool/diff payloads retain stronger fills (P2, related #25654), and quoted reasoning remains slightly brighter (P3).

At pushed head 7265cbca0f26fe25a3d64f72ac2e193e87340778, scoped web and Node typechecks passed through the queue, 12 named files/129 tests passed, and changed-code quality and whitespace checks passed. The earlier missing-import and Windows prompt assertions were repaired upstream in #25722 and #25734 and their named regressions now pass. Current CI passed static analysis/typecheck and repository guards; downstream tests are queued and packaging is running, with some draft checks skipped. Full CI remains pending.

Final-head remote M4Air screenshots are now attached in the PR body's Visual Proof. I verified and personally inspected all six full-app files, then checked the uploaded bytes. Hidden Electron with a seeded transcript exercised dark/light themes, folded/expanded activity, open tools, code scrolling, composer typing/focus, and intercepted copy feedback. The app reported isolated user data/home/provider directories and hooks hashes stayed unchanged; shared config hashes were recorded as observations. No real agent/account or desktop input was used. Native clipboard behavior was not verified.

Narrow layout (resolved as pre-existing): at a 680px app width with both sidebars open, the chat pane is only 49px wide and the existing timestamp/actions row (111px) sticks out of it, giving 83px of horizontal overflow. I measured the same build setup on main (08a970a) and on this PR (7265cbc): the overflow is identical (83px on both, same element), and neither overflows at 320px or 480px chat widths. So it is not caused by this PR; noted as a pre-existing P3. Windows/Linux/SSH/mobile rendering and full release validation were not verified (both Windows agents were blocked by an update prompt and the Linux machines were unreachable).

All review items are fixed or deferred with evidence; marking ready for review so the full CI runs.

@brennanb2025
brennanb2025 force-pushed the brennanb2025/native-chat-soft-colors branch from da2da9d to 7265cbc Compare October 6, 2026 02:10
@brennanb2025
brennanb2025 marked this pull request as ready for review October 6, 2026 04:06
@brennanb2025
brennanb2025 merged commit b58f819 into main Oct 6, 2026
75 of 77 checks passed
DennisHaijma pushed a commit to DennisHaijma/orca that referenced this pull request Oct 11, 2026
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root,
so clearing --background no longer made them transparent and the chat lost its glass.

(cherry picked from commit 26fba21b8e21f389ab9db29e67f2d96b9da92658)
pawel-kotowski added a commit to pawel-kotowski/orca that referenced this pull request Oct 19, 2026
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root,
so clearing --background no longer made them transparent and the chat lost its glass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
pawel-kotowski added a commit to pawel-kotowski/orca that referenced this pull request Oct 22, 2026
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root,
so clearing --background no longer made them transparent and the chat lost its glass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
pawel-kotowski added a commit to pawel-kotowski/orca that referenced this pull request Oct 26, 2026
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root,
so clearing --background no longer made them transparent and the chat lost its glass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
pawel-kotowski added a commit to pawel-kotowski/orca that referenced this pull request Oct 26, 2026
Native chat surfaces moved to bg-chat-canvas (stablyai#25651), a token resolved on :root,
so clearing --background no longer made them transparent and the chat lost its glass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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