Skip to content

improve(ui): remove the Usage conversation reader - #199170

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
review/usage-reader-removal-20261114
Nov 14, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
review/usage-reader-removal-20261114

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

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.logs is 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.
  • Removed code was UI-only: the reader component, its filter menu and row types. None of it was exported through the plugin SDK or a published package.

Evidence

  • 74 focused checks passed across the affected suites and corrected rerun. Cases cover interval counts, detail retention/recovery, correct agent navigation and no link for raw unknown or global outside global scope.
  • Actual source app with a synthetic Gateway: reader gone, context inspector retained, keyboard interval selection yields the expected two messages, and Open conversation opens the original Chat.
  • UI typecheck, focused lint, CSS lint, i18n verification, controller guard, formatting, diff checks and production UI build passed. The build emits advisory bundle-budget warnings; no limits were raised. The real-Gateway owner-attribution test was updated but not executed; no broad CI/live Gateway claim.
  • Simplification: remove the secondary reader and use the existing Chat destination, without a new cache/state owner. Production +93/−758; tests/fixtures +102/−217; docs +1/−2; test inventory +0/−1. Total +196/−978 against the pinned base.
  • Independent local autoreview (Codex, GPT-6.1 Sol, P0–P2) found no actionable findings in the full local diff against 427ebcc. Unchanged source was not supplied and the reviewer did not rerun tests.

Actual application with synthetic data, dark theme, 1440×1000. The context inspector shown below is preserved.

Before

Usage reader before

After

Usage reader 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

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Usage displays those messages with separate search, role, tool, and expansion controls.
  • After: Usage retains the analytics and system-prompt breakdown; Open conversation leads to Chat.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and source review found no actionable defect, but the visual evidence covers only part of the changed behavior.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Usage presents a second conversation-reading interface with controls separate from Chat.
Reason: The maintainer-authored direction explicitly chooses one reading experience, and the diff preserves Usage’s analytics responsibilities.

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
Reviewed head: 0939503ee3a5a571cdf1019c69ffe350cacc0668

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Show Open conversation navigating from a selected Usage session to that same agent-owned conversation in the actual Chat application.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Embedded conversation reader, filters, and formatting changes intended behavior with a stated reason (8a352c8: The original Usage dashboard deliberately included conversation logs and filters alongside per-session analytics; this PR explicitly replaces that experience with Chat navigation.)
  • Conversation virtualization and reader-specific styles changes intended behavior with a stated reason (26cb379: The reader used bounded grid sizing and virtualization to avoid long-conversation rendering stalls; those mechanisms become unnecessary when their renderer is removed.)
  • Usage detail requests and presentation state keeps the original intent (376ccd5: Scoped owners preserve request admission, cancellation, selection identity, recovery, and accepted data while presentation controls remain separate.)
  • Interval counts and context accounting keeps the original intent (b4167d2: Headers, timelines, and loaded-message counts share the selected interval while context estimates avoid counting embedded prompt sections twice.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and current-main boundary: The pinned introduced diff removes the reader, its components, presentation state, styles, and obsolete tests; the inspected current-main comparison leaves these Usage production paths unchanged from the merge base. (ui/src/pages/usage/view-details.tsx:181, 0939503ee3a5)
  • Retained log ownership: The existing detail request still loads at most 1,000 session-log entries for interval counters, preserving its target identity, error handling, cancellation, and recovery. (ui/src/pages/usage/usage-details.ts:177, 0939503ee3a5)
  • Shared navigation contract: The new destination uses the selected Usage row’s agent, shared addressability rules, configured main key, and exact-key session navigation; raw unknown and global outside global scope receive no link. (ui/src/pages/usage/usage-details.ts:234, 0939503ee3a5)
  • Inspected visual evidence: The downloaded before/after screenshots visibly establish reader removal and retention of the system-prompt breakdown; their crops exclude the new header link and its destination. (0939503ee3a5)
  • Maintainer direction and draft state: GitHub confirms the collaborator-authored PR remains a cleanly mergeable draft; its body explicitly requests removing the duplicate reader and credits @vyctorbrzezowski. (0939503ee3a5)
  • Feature history: History identifies the original Usage dashboard contribution, subsequent Solid and request-owner refactors, interval-accounting repairs, and phone detail-navigation work rather than relying solely on latest-line blame. (ui/src/pages/usage/detail-controller.ts, bb905f76e55d)

Likely related people:

  • Peter Steinberger: Raw commit ccdf8af adds ui/src/pages/usage/helpers.ts:70 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ccdf8afd8ae5; files: ui/src/pages/usage/helpers.ts)
  • Vyctor H. Brzezowski: Raw commit 11d0746 adds ui/src/pages/usage/page-shell.tsx:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 11d0746f524a; files: ui/src/pages/usage/page-shell.tsx)
  • Tak Hoffman: Raw commit 8a352c8 adds ui/src/ui/usage-helpers.ts:294 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8a352c8f9dfd; files: ui/src/ui/usage-helpers.ts)

PR surface

Source -666, Tests -115, Docs -1. Total -782 across 20 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 93 759 -666
Tests 8 102 217 -115
Docs 1 1 2 -1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 196 978 -782

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is an owner-directed UI simplification without an established urgent runtime or data defect.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is an owner-directed UI simplification without an established urgent runtime or data defect.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 3:30 PM ET / 20:30 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 14, 2026 20:51
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 14, 2026 22:06
@vyctorbrzezowski
vyctorbrzezowski merged commit 0fa728b into main Nov 14, 2026
96 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the review/usage-reader-removal-20261114 branch November 14, 2026 22:09
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants