Skip to content

fix(native-chat): lift the approval card off the dark chat pane - #52420

Merged
orca-remote-automation[bot] merged 2 commits into
mainfrom
orca-remote-automation/approval-card-bg
Nov 29, 2026
Merged

orca-remote-automation[bot] merged 2 commits into
mainfrom
orca-remote-automation/approval-card-bg

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

In dark mode the approval card painted --card (#171717) on the chat pane (#161616), about 1.01:1, with a 7% edge (tool prompts) or a 15% edge (plan, sign-in, terminal prompts). It blended into the pane. This PR changes only the card's surface and edge, in dark mode, and uses the same values for both card kinds:

  • Surface: color-mix(in srgb, var(--foreground) 4.5%, var(--card)), which renders as #212121. Card vs pane is now 1.12:1.
  • Edge: foreground/10, which renders as #353535. Edge vs pane is 1.48:1.

Light mode is pixel-identical to main. Its full card moves from border-input to border-border, and both tokens are #e5e5e5 inside .plugin-security-chrome. Titles, copy, buttons, options, layout, spacing and behavior are unchanged.

Worker dock (joined cards, e.g. a worker's "Allow Bash?"). The dock draws the frame for its joined cards, so NativeChatWorkerApprovalStack gets the same dark surface and 10% edge (APPROVAL_DOCK_DARK_FRAME). The edge is an inset outline, so nothing moves. The dock sits outside the cards' SecuritySurface, so these classes name the host-owned --orca-security-* tokens directly. Light mode keeps the flat dock. The joined card itself still has no frame, so nothing is double-bordered.

Every other path already goes through approvalCardFrameClasses: the composer slot, stacked cards (paired-server asks), the subagent sheet, PTY-read prompts (parsedFromTerminal) and the bot group dock (composer placement).

Both colors come from --foreground and --card. The card renders inside SecuritySurface, which remaps those to host-owned --orca-security-* tokens, so a plugin theme cannot restyle the consent card. Checked against how comparable products handle this.

Evidence

Component fixtures with real renderer components (no Electron, no real profile). The new NativeChatApprovalCard:inChatWide and NativeChatApprovalCard:inChatNarrow fixtures show the transcript rows, a quiet tool card with the longest command, a full terminal prompt with the longest title, and the composer, at 720 and 360 px. The dock-joined case uses NativeChatWorkerApprovals:openWithOwnPrompt.

  • Alignment: red dashed guides on the before/after shots below. Edge positions are unchanged; the dark edge colour is intentionally 10% for both cards (the tool-approval card was 7%, the other prompt cards 15%). Measured border x positions of the quiet card, the full card and the composer are identical to main at both widths and in both themes. The dark pixel diff is limited to the two card boxes. The light diff is empty.
  • The Allow primary, the Deny chip (bg-chat-foreground/5) and the focus ring all still read on the lifted surface. I checked the focus ring with a keyboard-focus capture.

Screenshots are attached below.

Tests

APPROVAL_DOCK_DARK_FRAME is dark-only and names only --orca-security-* tokens (this fails on the previous head).
native-chat-approval-card-frame.test.ts checks that the quiet and full cards share one surface and edge, built only from the host tokens. It fails on main.

Performance

This is a class-string change on one element per open approval card, with a static color-mix and no new renders, listeners or layout. I expect no measurable effect.

List scale

N/A: no lists are involved.

Screenshots (before | after; red dashed guides at card/composer edges)

cmp-720-dark.png cmp-360-dark.png
cmp-720-dark.png cmp-360-dark.png
cmp-dock-dark.png cmp-720-light.png
cmp-dock-dark.png cmp-720-light.png
cmp-360-light.png cmp-dock-light.png
cmp-360-light.png cmp-dock-light.png
Uploaded:
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-720-dark.png?raw=true
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-360-dark.png?raw=true
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-dock-dark.png?raw=true
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-720-light.png?raw=true
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-360-light.png?raw=true
https://github.com/stablyai/orca/blob/6fbe07754c7ea6c37407ab9a5eb163b1f06af92f/cmp-dock-light.png?raw=true

Worker dock (before = previous head, after = this head; guides at the composer edges and the icon column)

The dock edges are at the same x as the composer (64/1456 at 2x for 720 px, 64/656 for 360 px). Text and icon positions are unchanged: zero offset gives the best match, and the only mismatches are anti-aliasing. Light mode and the non-dock cards are pixel-identical to the previous head.

dock-720-dark.png dock-360-dark.png
dock-720-dark.png dock-360-dark.png
dock-720-light.png dock-360-light.png
dock-720-light.png dock-360-light.png
Uploaded:
https://github.com/stablyai/orca/blob/306fba041b883efdf3b0ac711a114b179b6bef92/dock-720-dark.png?raw=true
https://github.com/stablyai/orca/blob/306fba041b883efdf3b0ac711a114b179b6bef92/dock-360-dark.png?raw=true
https://github.com/stablyai/orca/blob/306fba041b883efdf3b0ac711a114b179b6bef92/dock-720-light.png?raw=true
https://github.com/stablyai/orca/blob/306fba041b883efdf3b0ac711a114b179b6bef92/dock-360-light.png?raw=true

Dark mode only: the quiet and full approval cards share one surface mixed 4.5% toward the
foreground over --card, with a 10% foreground edge, both from host-owned tokens so plugin
themes cannot restyle consent. Light mode, layout and the dock-joined card are unchanged.
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no actionable defects were found.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects were found.

Summary

The PR lifts approval cards off the dark chat pane and gives worker approvals a matching dock surface.

  • Dark approval cards and their worker dock stand apart from the chat pane.

Reviews (2) · Last reviewed commit: "fix(native-chat): give the worker dock's..." · Reviewed by Greptile

…dark surface

The dock draws the frame for its joined cards, so it now gets the same dark surface and 10%
edge (outline, no layout change), from the host-owned security tokens by name since the dock
sits outside the cards' SecuritySurface. Light mode is unchanged.
@orca-remote-automation
orca-remote-automation Bot merged commit e09235f into main Nov 29, 2026
57 checks passed
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.

0 participants