fix(ui): align the context popover usage rows in one table (#201122) ## What Problem This Solves Fixes: the context popover's "Latest run" and "Session total" rows wrap onto two lines and show different stats (In/Out/Cache on one, Cache/Cost on the other) when a run has no cost but the session does. ## User Impact Both rows now sit in one small table with the same columns: a header row (`Cache`, `Cost`) and right-aligned values, one line each. Missing values show `—`. Token counts move to each row label's tooltip (the session's are lifetime totals, marked `≥` while still being computed). When there is neither a cache rate nor a cost (plan-billed sessions on providers without cache data), both rows show `In` and `Out` columns instead. ## Why This Change Was Made The rows were independent flex lines with their own stat lists, so their contents differed and wrapped at the popover's 300 px width. One grid owns the columns for both rows; the session total now also carries its lifetime input and output tokens from the `sessions.usage` read the popover already makes. ## Evidence | Before (`main`) | After | | --- | --- | |  |  | Priced run and session:  - New `session-context-breakdown` e2e case reproduces the screenshot state (unpriced run, ≥ $3,585.73 session): it fails on `main` and passes here, and checks every row's cells share one line with value columns aligned. - Popover suites pass (`session-context-breakdown`, `chat-quota-pill-93041`, `chat-flow.navigation-presentation`: 20/20), plus `chat-composer-context`, `session-context-report` and the retention test. `tsgo:ui` and `check:test-types` clean. Merge danger: two-way door, UI rendering only. Blast radius: the composer context popover. Co-authored-by: Ayaan Zaidi <hi@obviy.us>
fix(ui): align the context popover usage rows in one table (#201122)
Find Your Interest
- Everyone Hates AI. Half of Them Use It.
- The Roundup by ByteByteGo
- Who Checks the Boring Layer
- Developers, Your Next Customer Is an AI Agent
- The Guardrail Is Now Part of the Attack
- Debunking AI agent accessibility claims and solving AI alignment for accessibility
- Don’t Bet Against the Web
- How Meta Built Forum With AI-Native Engineering
- The First AI Model That Scared Me Can’t Write a Sentence
- When your AI agent publishes internal data





