GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): Keep chip shows its own icon when the composer is narrow by juliusmarminge · Pull Request #30045 · pingdotgg/t3code Conversation
Member
ProblemWhen the composer is narrower than 480px (for example with a file open in a wide right panel), the Compact chip hides its Compact/Keep label and leaves only the icon and token count. The icon was Minimize2 in both states, so clicking the chip to switch to Keep left it looking the same. The only remaining cue was the faint pressed background, and the hover background covers it while the pointer is still on the chip. Reproduced on main at e2bb9e6 in the web dev server (1512×945 window, a stale Claude thread at 549k tokens). With the right panel closed, the composer was 736px and the chip read "Compact 549k". With Files open and a file shown, and the panel dragged to 896px, the composer was 264px and the chip showed only "549k". Clicking the chip changed ChangeThe chip's icon is now a Scope and approvalFixes #29974 Triaged via the automated issue flow; GitCafe issue https://git.cafe/pingdotgg/t3code/issues/29974. Verification
Evidence. Before is e2bb9e6 and After is a87b809, the fix commit. The later merge of main touches nothing the chip renders. Each side ran as the real web app from its own checkout, on a fresh database seeded by the same driver: one real Claude Haiku turn, then the server stopped and that turn's usage raised to 549k tokens with an expired cache. Every capture used a fresh browser context. Rendering environment for every capture: Linux, Playwright 1.60, headless Chromium 148, no device emulation, DPR 1, 100% zoom and font scaling, clock frozen at 2026-11-03T07:00Z. Composer widths: 736px with the label shown, 386px narrow, 366px at phone width.
Diff0 marks any nonzero channel delta, amplified ×255. DiffT marks a channel delta above 16/255. Both compare native PNGs at full viewport size. Changed pixels per pair (Diff0 / DiffT), with 0 outside the 14×14 icon area in every pair:
Phone width, light: F7 50 / 25, F8 86 / 76. Recordings (Before on the left, After on the right, step captions burned in):
What else changed, every visible difference:
Seed driver (synthetic data only)#!/usr/bin/env bash # Synthetic real-app capture seed. Server running for run; stopped for fixture. set -euo pipefail checkout="$1" project="$2" phase="${3:-run}" cd "$checkout" if [ "$phase" = fixture ]; then python3 /tmp/issue-lead-29974-r2b/capture/scripts/normalize-fixture.py "$checkout" exit fi mkdir -p "$project" git -C "$project" init -q printf '# Demo\n\nA small sample project.\n' > "$project/README.md" printf 'export const add = (a: number, b: number) => a + b;\n' > "$project/math.ts" git -C "$project" add README.md math.ts git -C "$project" -c [email protected] -c user.name=demo commit -qm init node apps/server/src/bin.ts project add --base-dir .t3 "$project" node apps/server/src/bin.ts thread start --base-dir .t3 --provider claudeAgent --model claude-haiku-5-5 --title 'Refactor math helpers' --wait --json "$project" 'Reply with one short sentence describing math.ts. Do not edit files.' #!/usr/bin/env python3 """Stopped-server, synthetic capture fixtures only. Run after lead's seed driver.""" import sqlite3,json,sys,pathlib checkout=pathlib.Path(sys.argv[1]); db=checkout/'.t3/userdata/statev2.sqlite' c=sqlite3.connect(db) project=c.execute("SELECT project_id FROM projection_projects WHERE workspace_root LIKE '%/capture/demo-%'").fetchone()[0] # Hide only the automatic, empty checkout project; the demo is the sole capture project. c.execute("UPDATE projection_projects SET deleted_at='2026-11-03T05:00:00.000Z' WHERE project_id!=?",(project,)) c.execute("UPDATE projection_projects SET title='Compact proof',created_at='2026-11-03T05:00:00.000Z',updated_at='2026-11-03T05:00:08.000Z' WHERE project_id=?",(project,)) def normalized(v): if isinstance(v,list): return [normalized(x) for x in v] if not isinstance(v,dict): return v out={} for k,x in v.items(): if k in ['createdAt','startedAt','lastVisitedAt'] and isinstance(x,str): out[k]='2026-11-03T05:00:00.000Z' elif k in ['updatedAt','completedAt','settledAt'] and isinstance(x,str): out[k]='2026-11-03T05:00:08.000Z' else: out[k]=normalized(x) return out for (t,) in c.execute("SELECT name FROM sqlite_schema WHERE type='table' AND name LIKE 'orchestration_v2_projection_%'").fetchall(): cols=[r[1] for r in c.execute(f'PRAGMA table_info({t})')] if 'payload_json' not in cols:continue for rowid,raw in c.execute(f'SELECT rowid,payload_json FROM {t}').fetchall(): p=normalized(json.loads(raw)) if t=='orchestration_v2_projection_provider_turns' and p.get('tokenUsage'): p['tokenUsage'].update(usedTokens=549000,inputTokens=549000,updatedAt='2026-11-03T05:00:00.000Z',promptCacheTtlMs=3600000,promptCacheExpiresAt='2026-11-03T06:00:00.000Z') if t=='orchestration_v2_projection_threads' and p.get('projectId')!=project:p['deletedAt']='2026-11-03T05:00:00.000Z' updates={'payload_json':json.dumps(p,separators=(',',':'))} for col in ['created_at','started_at','last_visited_at']: if col in cols:updates[col]='2026-11-03T05:00:00.000Z' for col in ['updated_at','completed_at']: if col in cols:updates[col]='2026-11-03T05:00:08.000Z' c.execute(f"UPDATE {t} SET "+','.join(k+'=?' for k in updates)+' WHERE rowid=?',(*updates.values(),rowid)) c.commit();c.close() print('Normalized synthetic data:',checkout.name) Not verified separately: the Electron desktop app. It renders this same web component. The mobile app has no Compact chip. Optional matrix rows (other token counts, neighbouring controls, the chip being absent, the cache-expiry boundary) were not captured; the diff does not change those. Model and harness: Claude Opus 5.5 (lead, implementation, review B) and GPT-6.1-sol (review A, proof audits, capture) via Claude Code and Codex in T3 Code. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsBelow 480px the Compact chip hides its label, so Compact and Keep both showed the same minimize icon. Keep now morphs to Maximize2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The history chip now uses distinct icons for keeping versus compacting history, making its state visible in narrow composers. This is presentation-only and leaves defaults and history-handling behavior unchanged. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
# Conflicts: # apps/web/src/components/chat/ComposerPrimaryActions.tsx
EvidenceBoth sides: real web dev app, Chromium, 1280×800 CSS pixels, DPR 2, light theme, identical synthetic completed Claude conversation with 250,001 context tokens and naturally expired five-minute cache. Compact idle threads: When you return. Open Files → example.txt, widen the panel to a 361px composer, hover the chip, click Keep while retaining the pointer, then click again to restore Compact. Close the panel and toggle again to confirm the visible labels. The same recording driver ran on both commits.
Stills were pixel-identical across paired screenshots taken more than 500ms apart. Recordings and stills were visually inspected before upload. Seed driver · Recording driver · Synthetic provider fixture · Environment instructions AI-assisted; verified with the tests and tools listed above. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Noticed the same thing here on the nightly build: on a thread whose prompt cache had expired, the Compact and Keep states of the chip show the same icon, so it's hard to tell which one is active. +1 for this fix. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dismissing prior approval to re-evaluate 99abfe6
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Compact chip looks the same after switching to Keep when the composer is narrow
There was an error while loading. Please reload this page.