Skip to content

fix: keep update chat messages short and helpful - #163318

Merged
vincentkoc merged 3 commits into
mainfrom
fix/concise-update-messages-20261002
Oct 2, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/concise-update-messages-20261002

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: update notifications overwhelm chats with internal diagnostics, paths, warnings, and recovery history.

User Impact

Update messages now give a brief, plain-language outcome and point to Settings → Updates in the Control UI or openclaw update status for details. Supplied manual update commands remain intact.

Why This Change Was Made

Normal progress, completion, restart recovery, and /update replies now use the same concise wording. Detailed CLI reports and saved recovery facts remain available for troubleshooting.

Evidence

  • Dependency-free rendering checks cover success, failure, rollback, skipped updates, milestone gating, and exact manual commands.
  • An isolated command-reply regression reproduces raw error leakage before the fix and verifies friendly guidance afterward.
  • Changed TypeScript parses and git diff --check passes.
  • All 316 focused tests pass across update messages, delivery, restart recovery, command replies, handoff failures, and permission checks (273 in isolated Testbox; 43 locally). Formatting passes for all changed files.
  • The Testbox run used source tree 90ea0b14243a9de2f027080c920570fe293b5ce0; the final revision only additionally updates the permission-notice expectation, whose 24 tests pass locally.
  • GitHub checks and the completed review are required before merge.
    Measured test-case time from the retained runner output (summed within each file; excludes setup/import/build):
File Test-case time
src/gateway/update-run-notice.test.ts 1.801 s
src/gateway/server-restart-sentinel-notice.test.ts 24.801 s
src/gateway/server-restart-sentinel.test.ts 17.390 s
src/gateway/server-methods/update.test.ts 10.933 s
src/infra/update-run-report.test.ts 0.229 s
src/cli/update-cli/update-command-post-update-recovery.test.ts 14.737 s
src/auto-reply/reply/commands-update.test.ts 0.078 s

The local owner suite took 90.20 s including setup and imports. Per-file timings for the notice renderer and handoff suite were not retained; their passing results are recorded above. The Testbox gateway shard took 77.56 s, report shard 1.78 s, post-update recovery shard 22.42 s, and command shard 1.49 s. At 06:59 UTC, completed successful jobs in current-head CI accounted for 7263 job-seconds; remaining checks were still running. These are elapsed job seconds, not billed compute seconds.

@vincentkoc vincentkoc self-assigned this Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 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 gateway Gateway runtime cli CLI command changes size: M labels Oct 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 2, 2026 06:32
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review current head 2d83480a73d14f36ef811db6fe59f3d1471b59cf. The linked prior run reviewed a superseded head and published no completed review. The two subsequent commits only update existing notice expectations; all 316 focused tests pass.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 3:02 AM ET / 07:02 UTC (Revision 2).

ClawSweeper review

What this changes

The PR gives update progress, completion, restart recovery, and command replies concise wording while retaining detailed diagnostics in update status views.

Merge readiness

✅ Ready for maintainer review

No actionable introduced defect found. Current main still sends detailed reports to chat, so this PR remains useful; the prior timing follow-up is addressed with available measurements and disclosed gaps.

Likely related people: vincentkoc and steipete, both medium-confidence routing candidates from merged update work.

Priority: P3
Reviewed head: 2d83480a73d14f36ef811db6fe59f3d1471b59cf

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable patch with relevant reported validation and no blocking correctness findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported command, notifier, and restart tests cover the changed message paths as supplemental validation; no reviewer live run is claimed. The patch changes no stored-data contract or update admission behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported command, notifier, and restart tests cover the changed message paths as supplemental validation; no reviewer live run is claimed. The patch changes no stored-data contract or update admission behavior.
Evidence reviewed 7 items Pinned introduction reviewed: Reviewed the complete introduced delta from the verified merge base to the exact PR head. Base-only changes and the stale test merge were not treated as PR edits.
Current main still needs the change: At the fetched main revision, finished notices still return the detailed report markdown. Missing local history blobs caused Git hydration failures; the pinned main source was successfully inspected through GitHub's read-only contents API.
One conversation renderer: The new renderer preserves milestone gating and distinguishes successful, failed, rolled-back, running, and skipped outcomes. All production notice callers move to it; the detailed report implementation remains available.
Findings None None.
Security None None.

How this fits together

OpenClaw's update notification subsystem receives update outcomes and restart recovery records, then delivers messages to the requesting conversation. Detailed status views separately expose saved diagnostics and recovery guidance.

flowchart TD
 A[Update request] --> B[Update outcome record]
 B --> C[Conversation notice renderer]
 C --> D[Existing delivery owner]
 D --> E[Chat or session transcript]
 B --> F[Detailed status report]
 F --> G[Settings Updates or CLI status]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +100, Docs +3. Total +103 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 6 82 82 0
Tests 10 216 116 +100
Docs 1 7 4 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 305 202 +103

Review metrics

Metric Value Why it matters
Production versus test growth production net 0 lines; tests net +100 lines The shared conversation renderer replaces existing production rendering rather than increasing its total size.

Technical review

Best possible solution:

Use one concise conversation renderer while keeping diagnostic and recovery details accessible through the existing update status surfaces.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a wording cleanup; pinned current-main source confirms that chat completion notices currently include the detailed diagnostic report.

Is this the best way to solve the issue?

Yes. A shared conversation renderer is a focused solution, and the patch preserves detailed status reports, supplied manual commands, and existing delivery contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against b7cf8fa5a69f.

Labels

Label changes:

  • add P3: This is bounded notification wording and usability cleanup without a demonstrated runtime or delivery regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported command, notifier, and restart tests cover the changed message paths as supplemental validation; no reviewer live run is claimed. The patch changes no stored-data contract or update admission behavior.
  • add proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The shared renderer changes visible Telegram update notices and command replies, which the Test Server userbot can demonstrate.

Label justifications:

  • P3: This is bounded notification wording and usability cleanup without a demonstrated runtime or delivery regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported command, notifier, and restart tests cover the changed message paths as supplemental validation; no reviewer live run is claimed. The patch changes no stored-data contract or update admission behavior.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The shared renderer changes visible Telegram update notices and command replies, which the Test Server userbot can demonstrate.

Evidence

What I checked:

  • Pinned introduction reviewed: Reviewed the complete introduced delta from the verified merge base to the exact PR head. Base-only changes and the stale test merge were not treated as PR edits. (2d83480a73d1)
  • Current main still needs the change: At the fetched main revision, finished notices still return the detailed report markdown. Missing local history blobs caused Git hydration failures; the pinned main source was successfully inspected through GitHub's read-only contents API. (src/infra/update-run-report.ts:166, b7cf8fa5a69f)
  • One conversation renderer: The new renderer preserves milestone gating and distinguishes successful, failed, rolled-back, running, and skipped outcomes. All production notice callers move to it; the detailed report implementation remains available. (src/infra/update-run-notice.ts:44, 2d83480a73d1)
  • Manual commands and delivery custody preserved: Command replies preserve exact supplied handoff commands and suppress duplicate replies when acknowledgement delivery is already owned. Notification and restart paths retain their existing authorization, idempotency, transcript, and delivery owners. (src/auto-reply/reply/commands-update.ts:67, 2d83480a73d1)
  • Prior review follow-up addressed: The captured PR body now records seven per-file test-case timings, local and Testbox suite/shard elapsed times, and 7263 completed CI job-seconds as of 06:59 UTC. It explicitly discloses missing retained timings and separates test-case time from setup/import/build time. The prior completed review had no correctness findings. (2d83480a73d1)
  • Validation scope: The body reports 316 passing focused tests, including isolated Testbox coverage and final-head permission expectations. These are author-reported results, not reviewer executions. The reviewer independently checked the introduced diff for whitespace errors; the checkout remains clean. (2d83480a73d1)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-02T06:53:42.265Z sha 2d83480 :: needs changes before merge. :: none

@vincentkoc
vincentkoc enabled auto-merge (squash) October 2, 2026 06:59
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. 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 Oct 2, 2026
@vincentkoc
vincentkoc merged commit 03766af into main Oct 2, 2026
142 checks passed
@vincentkoc
vincentkoc deleted the fix/concise-update-messages-20261002 branch October 2, 2026 07:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
* fix: keep update chat messages short and helpful

* test: expect concise update handoff failure notices

* test: expect concise update permission notices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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