Repository navigation
fix(ui): show Usage detail request failures - #108689
Conversation
1fd9fe6 to
2e0ae5b
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 3:11 AM ET / 07:11 UTC. Summary PR surface: Source +125, Tests +173. Total +298 across 9 files. Reproducibility: yes. from source inspection: current main suppresses both Usage detail request failures without recording an error, matching the linked report. This review did not execute a live browser reproduction. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the independent panel-owned failure states and retries, then provide redacted real-browser evidence showing a rejected request rendered as an error and the affected panel recovering after Retry. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: current main suppresses both Usage detail request failures without recording an error, matching the linked report. This review did not execute a live browser reproduction. Is this the best way to solve the issue? Yes, subject to real behavior proof: keeping independent error state and retry callbacks at the owning Usage-page boundary is a focused solution, and no existing supported UI path surfaces these two failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a7189d228e8c. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +125, Tests +173. Total +298 across 9 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
e0a0e76 to
5cac993
Compare
|
Merged via squash.
|
* fix(ui): show Usage detail request failures * fix(ui): surface stale panel refresh failures Co-authored-by: destire-mio <[email protected]> * ci: pick up periphery workflow fix * chore(ui): regenerate panel status locales * refactor(ui): split usage page helpers * fix(ci): format drift + unused export * style: format full changed set * fix(ui): translate panel refresh errors --------- Co-authored-by: destire-mio <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* fix(ui): show Usage detail request failures * fix(ui): surface stale panel refresh failures Co-authored-by: destire-mio <[email protected]> * ci: pick up periphery workflow fix * chore(ui): regenerate panel status locales * refactor(ui): split usage page helpers * fix(ci): format drift + unused export * style: format full changed set * fix(ui): translate panel refresh errors --------- Co-authored-by: destire-mio <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Closes #107856
What Problem This Solves
The Usage session detail view silently treated rejected
sessions.usage.timeseriesandsessions.usage.logsrequests as empty data. Operators could not distinguish a Gateway failure from a session with no timeline or conversation data.Why This Change Was Made
The issue's original Overview log path no longer exists on current
main: log viewing is now handled by the Logs page, which already captureslogs.tailfailures and renders a retryable error. This PR therefore changes only the two remaining silent failure paths.User Impact
Operators can now tell when either Usage detail request failed and retry only the affected panel.
Evidence
node scripts/run-vitest.mjs ui/src/pages/usage/usage-page.test.ts ui/src/pages/usage/view-details.test.ts ui/src/pages/usage/view.test.ts— 3 files, 17 tests passedgit diff --checkpassedThe full changed-file gate attempted to delegate to Blacksmith Testbox but stopped before execution because the local Crabbox binary failed its own sanity check. GitHub CI will run the repository matrix.
AI-assisted: Yes, Codex was used. I reviewed and understand the implementation.