Compact chip looks the same after switching to Keep when the composer is narrow#29974
What happened
With a file open in a wide right panel, clicking the Compact chip to keep the full history didn't visibly change the chip. After I closed the right panel, it showed Keep.
Diagnosis
The click works: the next send switches to Keep, and the send button's label changes from "Compact and send" to "Submit message". The chip doesn't show it.
Since #27033, the chip hides its Compact or Keep label when the composer is narrower than 480px, leaving the icon and the token count. The icon is the same in both states. The only other cue is a faint pressed background, which the hover background covers, and the tooltip closes on click. On a 1512px-wide window with a 242px sidebar, a right panel wider than about 700px puts the composer under 480px.
Before the redesign in #24865, the two states also differed in color: Compact used the warning color for its border, text and icon, and Full used a gray border and muted text. The redesign gave both the same styling, which left the label as the only clear difference.
The chip is in apps/web/src/components/chat/ComposerPrimaryActions.tsx. A separate icon for Keep would fix it, for example arrows pointing out, the pair the right panel's Maximize panel button already uses. Web and desktop share this code. The mobile app has no Compact chip.
Separately, docs/user/providers-claude.md says the chip switches to Full. The chip says Keep.
Steps to reproduce
- Open a Claude thread with more than 200,000 tokens of context after its prompt cache has expired, with Compact idle threads at its default, When you return. The composer shows "Compact 549k" next to the send button.
- Open the right panel, choose Files, and open a file.
- Widen the right panel until the chip shows only its icon and token count. On a 1512px-wide window with a 242px sidebar, that's past about 700px.
- Click the chip. It looks the same.
- Close the right panel. The chip reads "Keep 549k".
https://github.com/user-attachments/assets/55c9cddc-c20e-46cf-8fc0-a2afcdd82dce
Version
v0.1.7-nightly.20261031.3991 (commit 15fe283), desktop app, and a web dev build of the same commit. Same code on main as of 2026-11-03 (61c3794).
Environment
macOS 26.6.2 (Darwin 25.6.0, arm64), 1512x982 display, window maximized, 242px sidebar; desktop app, and the web client in headless Chromium
Evidence
| 1 | Web dev build of 15fe283, copy of a stale Claude thread (549k tokens), 1512x945 window, 242px sidebar |
| 2 | |
| 3 | right panel composer chip shows |
| 4 | closed 736px Compact 549k |
| 5 | 688px 486px Compact 549k |
| 6 | 700px 474px 549k |
| 7 | 788px 386px 549k |
| 8 | |
| 9 | clicking the chip with the right panel at 788px |
| 10 | chip shows aria-pressed send button label |
| 11 | before the click 549k true Compact and send |
| 12 | after the click 549k false Submit message |
| 13 | panel closed Keep 549k false Submit message |
| 14 | |
| 15 | chip screenshots before and after the click (228x64 px) |
| 16 | pointer on the chip: no pixel differs by more than 2% |
| 17 | pointer moved away: background rgb(248,248,249) -> rgb(254,254,254) |
Related issues
#27033 (merged 2026-10-30) added the narrow-composer layout for the chip. No existing issue covers this.
Fix applied or workaround
Close or narrow the right panel before clicking the chip.
Filed by
Claude Code (Opus 5.5) running the T3 Code triage playbook