Repository navigation
improve(ui): remove the Usage conversation reader - #199170
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes Usage’s embedded conversation reader and adds a link to Chat while retaining analytics, interval counts, context inspection, and exports. Example: Inspect the release-review session with three messages.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the removal is coherent, current main still contains the reader, and source review found no concrete correctness defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Usage page consumes Gateway usage summaries, timelines, bounded logs, and context reports; its detail owner supplies analytics to Solid components and resolves navigation through the shared session router. flowchart TD
A[Gateway usage APIs] --> B[Usage detail owner]
B --> C[Totals and timeline]
B --> D[Interval counters]
B --> E[Context inspector]
B --> F[Shared session router]
F --> G[Chat]
Technical reviewBest possible solution: Keep Usage focused on analytics and use the existing Chat owner for conversation reading. Do we have a high-confidence way to reproduce the issue? This is a deliberate product simplification rather than a bug report; source confirms current main still mounts the embedded reader. Is this the best way to solve the issue? The smallest complete cutover removes the duplicate renderer and its presentation machinery while retaining the existing counter requests and shared navigation contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bb905f76e55d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -666, Tests -115, Docs -1. Total -782 across 20 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 14, 2026, 3:30 PM ET / 20:30 UTC. |
|
Merged via squash auto-merge.
|
* improve(ui): remove the Usage conversation reader Co-authored-by: vyctorbrzezowski <[email protected]> * style(ui): reconcile removed Usage surfaces before integration --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>
What Problem This Solves
Usage embeds a second conversation reader with its own role/tool/search filters and expansion controls. Chat already shows the same conversation in full, with the real message and tool rendering, so the copy in Usage duplicates Chat without adding any data.
User Impact
Remove the embedded reader. Use Open conversation in the session header for the original Chat. Keep usage totals, timeline selection, interval message/tool counts, context/system-prompt inspection and exports.
Why This Change Was Made
Remove the reader, its filter/expansion state, formatting, styles, copy and obsolete tests. The bounded sessions.usage.logs read remains because the retained interval counters still use it; its errors are shown in the interval-count status instead of being hidden with the removed reader. This does not remove the public logs API or stop all history reads. Navigation reuses shared routing contracts from the Usage detail owner, including agent-owned global sessions and unaddressable reserved keys.
What stays available to plugins and integrations
sessions.usage.logsis unchanged and still returns the same bounded, parsed session log. The UI still calls it for interval message/tool counts.sessions.usage, usage exports and conversation history reads through Chat are unchanged.Evidence
Actual application with synthetic data, dark theme, 1440×1000. The context inspector shown below is preserved.
Before
After
Requested by @vyctorbrzezowski.
Maintainer verification
Integrated current main changes while preserving the already-merged removal of Activity by time and Recently viewed. The four stylesheet conflicts retain the remaining Usage layout and remove only selectors for retired surfaces.
On integrated head
08a094390f00, all 74 focused Usage tests passed. All four browser scenarios passed, including isolated real-Gateway cases that keep same-ID sessions from different agents distinct and open the correct conversation. The session-recreation cases still reset obsolete selected ranges. Matching Gateway and Control UI builds completed successfully. Current-head CI is running.Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by