cmux NEXT: quiet permission chip, like Claude's mode label

Merged
TE
19d ago
+125-12

Summary

In Full access, the composer's permission chip painted its shield and label in the warning color, so a yellow shield sat in the composer the whole time. Leo asked for it to be quiet like Claude Code's mode label, which is plain muted text.

The chip now draws in the model chip's color in every mode:

  • The shield's "!" mark still says the mode skips approvals.
  • The menu keeps the warning color on Full access's icon, where the mode is picked.
  • The acpmux-unrestricted class stays (the menu and access-chip-pending-warning.test.tsx use it); only the trigger's color rules are gone.

CSS only:

  • composerLocation.css: the composer bar's resting, hover and open color rules for the unrestricted trigger.
  • styles.css: the pill rail's matching rule.

Testing

  • New test test/quiet-access-chip.test.ts (Chromium and WebKit, gallery stage agent-pane.composer#access-menu), committed before the fix:
    • With Full access picked, the chip and its shield have the model chip's color.
    • The menu's Full access icon still differs from its row text.
  • Locally, a headless WebKit probe on the gallery: before, the chip was rgb(205, 172, 8) next to the model chip's rgb(170, 170, 170); after, both are rgb(170, 170, 170).
  • Not run locally: the browser suite. Its warm-up times out on cosmic-gray under load, so CI's webview shards are the first full run.

Changelog

Changed: The permission chip no longer turns warning-colored in Full access; it reads like the other composer chips

Proof

Before:

before

After:

after

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Quietens the Full access permission chip so it no longer sits in the composer as a warning-colored shield and label. The chip now draws in the model chip's color in every mode; the shield's "!" mark still signals the mode skips approvals, and the menu keeps the warning color on Full access's icon where the mode is picked. Keyboard focus now also steps Full access up like the other composer chips instead of keeping it muted. CSS-only change that removes the trigger's warning color rules while keeping the acpmux-unrestricted class.

Testing

  • Adds test/quiet-access-chip.test.ts (Chromium and WebKit on the gallery stage) asserting the chip and shield match the model chip's color in Full access, and that the menu's Full access icon still differs from its row text.