Repository navigation
fix(ui): show Gateway uptime in the Debug overlay - #146960
Conversation
|
🦞👀 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. Reviewed September 13, 2026, 7:14 AM ET / 11:14 UTC. ClawSweeper reviewWhat this changesThe Debug overlay reads Gateway uptime from the existing system-information response and extends its mounted regression test to cover positive, zero, and unavailable uptime. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused fix for a source mismatch present on current main. No actionable correctness or security findings were identified. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI Debug overlay polls Gateway diagnostics and presents process activity graphs. It combines status measurements with system information to display disk capacity and process uptime. flowchart TD
A[Open Debug overlay] --> B[Poll Gateway diagnostics]
B --> C[Status measurements]
B --> D[System information]
C --> E[Combine display snapshot]
D --> E
E --> F[Activity and disk graphs]
E --> G[Show uptime when available]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +11. Total +11 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing system-information owner for uptime while preserving independent activity graphs and hiding unavailable values. Do we have a high-confidence way to reproduce the issue? Yes: current main requests system.info but reads uptime from status, which does not provide it, so opening the overlay omits the footer. This review verified the source path and supplied captures without executing the application. Is this the best way to solve the issue? Yes: changing the projection to consume the already-requested authoritative value is the narrowest repair; it adds no request, protocol field, compatibility layer, or configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e96f62c64330. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* temp/pr-146799: (70 commits) test: reuse explicit fallback config fixtures (openclaw#146948) fix(computer): return fresh window observations after actions (openclaw#146822) refactor(feishu): remove unreachable requester topic selection (openclaw#146904) improve(gateway): reduce CPU spent listing agent-owned sessions (openclaw#137745) fix(ui): avoid recapturing chat drafts during UI updates (openclaw#146884) fix(ui): show system uptime in the debug overlay (openclaw#146960) fix(retry): honor waits beyond the native timer limit (openclaw#145718) fix(ui): keep chat history idle when run status changes (openclaw#146802) fix(ui): reuse persisted text during chat streaming (openclaw#146831) refactor(qa): share harness drift result construction (openclaw#146903) test(agents): coordinate settings lock contention (openclaw#146949) fix(worker): avoid repeatedly serializing screenshot history (openclaw#146907) fix(secrets): stop buffered upload writes after cancellation (openclaw#146840) perf(doctor): avoid unnecessary state runtime imports (openclaw#146926) improve: reduce compaction request estimation work (openclaw#146961) fix(ci): wait for forwarded avatar imports before assertions (openclaw#146729) perf(workers): skip configured Git author lookups (openclaw#146833) fix: admit borrowed memory writes through the agent database owner (openclaw#146760) fix(discord): prevent voice playback gaps and stale turn controls (openclaw#146798) improve: reduce worktree filesystem stalls and archive syncs (openclaw#146906) ...
* commit 'ccfd2377cd07d1ad3a583ba64d08e29a065f7061': (1587 commits) fix(ui): avoid recapturing chat drafts during UI updates (#146884) fix(ui): show system uptime in the debug overlay (#146960) fix(retry): honor waits beyond the native timer limit (#145718) fix(ui): keep chat history idle when run status changes (#146802) fix(ui): reuse persisted text during chat streaming (#146831) refactor(qa): share harness drift result construction (#146903) test(agents): coordinate settings lock contention (#146949) fix(worker): avoid repeatedly serializing screenshot history (#146907) fix(secrets): stop buffered upload writes after cancellation (#146840) perf(doctor): avoid unnecessary state runtime imports (#146926) improve: reduce compaction request estimation work (#146961) fix(ci): wait for forwarded avatar imports before assertions (#146729) perf(workers): skip configured Git author lookups (#146833) fix: admit borrowed memory writes through the agent database owner (#146760) fix(discord): prevent voice playback gaps and stale turn controls (#146798) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) ... # Conflicts: # test/tsconfig/tsconfig.core.test.agents-other.json # test/tsconfig/tsconfig.core.test.agents-root.json
What Problem This Solves
The Debug overlay hides Gateway uptime even though its existing
system.inforequest returns that value.User Impact
The overlay now displays process uptime, including a valid zero value. It still omits unavailable uptime while keeping the other status graphs usable.
Why This Change Was Made
The overlay read
uptimeMsfromstatus, which does not publish it. It now reads the existing authoritativesystem.inforesponse alongside disk data. This adds no request, option, or protocol field. Production is +1/−1 (net zero); the existing mounted regression gains 11 net test lines.Evidence
On base
ce6718fd82a492b7c1f2b068e1c68477fd9a8b7f, the mounted regression fails because the footer is missing. The normal production-bundle browser flow reproduces missing positive and zero uptime. With the fix, inspected Chromium captures showUptime 1mandUptime 0ms; rejected system information still leaves three usable status graphs and no uptime footer.All 165 Debug, formatter, Connection, and Devices tests pass, along with the full explicit-base changed gate and a fresh managed P0–P2 review. The successful browser phases use the same driver and synthetic fixtures. An earlier standalone-driver setup failure is retained and excluded from proof. No operator Gateway, real provider, or channel was used.