Skip to content

fix(ui): show Gateway uptime in the Debug overlay - #146960

Merged
steipete merged 1 commit into
mainfrom
codex/qa-debug-overlay-uptime-20260913
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-debug-overlay-uptime-20260913

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Debug overlay hides Gateway uptime even though its existing system.info request 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 uptimeMs from status, which does not publish it. It now reads the existing authoritative system.info response 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 show Uptime 1m and Uptime 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.

Before: uptime missing despite successful system information

After: Gateway uptime is visible in the overlay

@clawsweeper

clawsweeper Bot commented Sep 13, 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 app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 7:14 AM ET / 11:14 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 59e99fa82f67699d5b0707509a409ecb9aa9eb8f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level correction with meaningful regression assertions and directly relevant visual proof.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
Evidence reviewed 8 items Introduced change: The verified merge-base-to-head patch changes only the uptime source and associated mounted-test assertions; unrelated endpoint drift is excluded from this review.
Current main still needs the fix: Fetched main still reads value.uptimeMs from status despite already requesting system.info.
Authoritative uptime producer: system.info publishes Math.round(process.uptime() * 1000); its protocol schema declares uptimeMs as an integer. The inspected status handler and status-summary return object do not publish uptime.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +11. Total +11 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 12 1 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 13 2 +11

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P3: This repairs a low-risk diagnostic display omission without affecting Gateway operation or user configuration.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.

Label justifications:

  • P3: This repairs a low-risk diagnostic display omission without affecting Gateway operation or user configuration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Chromium captures of the production Control UI with synthetic Gateway fixtures directly show the overlay footer changing from absent to Uptime 1m; the mounted regression supplements this with zero and unavailable-value coverage.

Evidence

What I checked:

  • Introduced change: The verified merge-base-to-head patch changes only the uptime source and associated mounted-test assertions; unrelated endpoint drift is excluded from this review. (ui/src/pages/debug/debug-overlay-sections.ts:181, 59e99fa82f67)
  • Current main still needs the fix: Fetched main still reads value.uptimeMs from status despite already requesting system.info. (ui/src/pages/debug/debug-overlay-sections.ts:181, e96f62c64330)
  • Authoritative uptime producer: system.info publishes Math.round(process.uptime() * 1000); its protocol schema declares uptimeMs as an integer. The inspected status handler and status-summary return object do not publish uptime. (src/gateway/server-methods/system.ts:99, 59e99fa82f67)
  • Regression coverage: The existing mounted overlay test now checks Uptime 1m, Uptime 0ms, and footer omission for missing or rejected system information while retaining three activity graphs. Tests were inspected, not executed during this read-only review. (ui/src/pages/debug/view.test.ts:471, 59e99fa82f67)
  • Inspected browser proof: Both downloaded PR images were inspected. The before capture lacks the footer; the after capture visibly displays Uptime 1m with the other diagnostic tiles retained. The supplied body describes Chromium running the production bundle with synthetic Gateway fixtures; zero and rejection scenarios are reported there and covered in the inspected test, but are not pictured in these two attachments. (59e99fa82f67)
  • Latest release comparison: The file at the supplied latest release v2026.9.4 also reads uptime from status at line 272, so that release does not contain this repair. (ui/src/pages/debug/debug-overlay-sections.ts:272, 3a9d69db306c)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 6f27bf1 into main Sep 13, 2026
141 checks passed
@steipete
steipete deleted the codex/qa-debug-overlay-uptime-20260913 branch September 13, 2026 11:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to zachisfine/openclaw that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

1 participant