Skip to content

Use app notifications for background issues - #753

Merged
shanselman merged 4 commits into
openclaw:mainfrom
RBrid:user/rbrid/UseNotificationsPage
Jun 25, 2026
Merged

shanselman merged 4 commits into
openclaw:mainfrom
RBrid:user/rbrid/UseNotificationsPage

Conversation

@RBrid

@RBrid RBrid commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • promote background connection, pairing, channel, sandbox, and cron issues into app-level notifications
  • keep active-page-only feedback local to avoid duplicate UI
  • localize new notification/status strings across supported locales

Validation

  • .\build.ps1
  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore
  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore

Screenshots of newly implemented notifications

image image

@clawsweeper

clawsweeper Bot commented Jun 13, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed June 25, 2026, 6:19 PM ET / 22:19 UTC.

Summary
The PR routes selected connection, pairing, channel, sandbox, and cron background failures into WinUI app notifications, adds a publisher helper, localizes strings, and adds tray notification/localization tests.

Reproducibility: not applicable. as a bug reproduction: this PR adds selected app-notification routing rather than reporting a failing current-main contract. Source inspection and screenshots support the changed behavior.

Review metrics: 3 noteworthy metrics.

  • Changed surface: 17 files, +3044/-125. The PR spans app lifecycle code, page code-behind, localization resources, a helper, and tests, so UI behavior and resource coverage should be reviewed together.
  • Localized resources: 5 RESW files changed. The new user-visible notification and status strings are added across the supported tray locales.
  • Visible proof: 2 screenshots inspected. The screenshots directly show the new app-level notification banners for two affected background states.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Let the latest Build and Test jobs finish on head 976aac8 before merge.

Mantis proof suggestion
A short desktop proof would add useful live confirmation that the new notification action buttons navigate correctly beyond the static screenshots. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: verify background connection and sandbox issues appear in OpenClaw app notifications and their action buttons navigate correctly.

Risk before merge

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused background app-notification routing after maintainer review, while keeping Notifications tab never shows notifications despite Windows Notification Center having them #820 open for the broader toast-to-notifications policy.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair lane is needed; the remaining action is maintainer landing review with the broader notification-mirroring issue kept open.

Security
Cleared: No concrete security or supply-chain concern was found; the diff is WinUI notification, localization, and test code with no dependency, workflow, secret, or external execution changes.

Review details

Best possible solution:

Land the focused background app-notification routing after maintainer review, while keeping #820 open for the broader toast-to-notifications policy.

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

Not applicable as a bug reproduction: this PR adds selected app-notification routing rather than reporting a failing current-main contract. Source inspection and screenshots support the changed behavior.

Is this the best way to solve the issue?

Yes for the scoped PR: routing selected background issues through AppNotificationService matches the existing Notifications page data source. It is not the complete solution for #820.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ce3294d40624.

Label changes

Label justifications:

  • P2: This is a normal-priority user-facing tray notification improvement with limited blast radius and no blocking correctness finding found.
  • 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): The PR body screenshots directly show after-change app notification banners for sandbox-unavailable and gateway-connection-failed states with action buttons.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body screenshots directly show after-change app notification banners for sandbox-unavailable and gateway-connection-failed states with action buttons.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body screenshots directly show after-change app notification banners for sandbox-unavailable and gateway-connection-failed states with action buttons.
Evidence reviewed

What I checked:

  • Repository policy read: AGENTS.md was read fully; its connection/tray UX guidance and validation expectations are relevant to this PR's notification and connection surfaces. (AGENTS.md:1, ce3294d40624)
  • Current main notification source: Current main's NotificationsPage renders AppNotificationService snapshots, while most toast paths in App.xaml.cs still call ToastService directly; this confirms the PR is not obsolete on main. (src/OpenClaw.Tray.WinUI/Pages/NotificationsPage.xaml.cs:25, ce3294d40624)
  • PR app-notification routing: The PR adds app-notification routing for connection, pairing, channel, sandbox, and cron issue paths, with stable IDs/dedupe for connection and sandbox notifications. (src/OpenClaw.Tray.WinUI/App.xaml.cs, 976aac8d7e2c)
  • PR sandbox behavior repair: The latest head runs sandbox availability probing off the UI path and differentiates strict fallback blocking from host fallback in notification copy. (src/OpenClaw.Tray.WinUI/App.xaml.cs, 976aac8d7e2c)
  • Regression coverage: The PR adds contract tests for stable connection/sandbox notification dedupe, off-UI sandbox probing, and strict fallback notification wording. (tests/OpenClaw.Tray.Tests/AppRefactorContractTests.cs:310, 976aac8d7e2c)
  • Real behavior proof: The PR body screenshots were downloaded and inspected; they show after-change app notification banners for sandbox unavailable and gateway connection failed states with action buttons. (976aac8d7e2c)

Likely related people:

  • RBrid: Git blame and -S history show this person introduced AppNotificationService/NotificationsPage and the inline exec-approval app notification flow that this PR extends. (role: feature owner and recent area contributor; confidence: high; commits: 06ed71f3c01f, 4e7982bafb86; files: src/OpenClaw.Tray.WinUI/Services/AppNotificationService.cs, src/OpenClaw.Tray.WinUI/Pages/NotificationsPage.xaml.cs, src/OpenClaw.Tray.WinUI/App.xaml.cs)
  • Vincent Koc: Blame on the current GatewayConnectionManager state-change mapping and history around pairing/startup state point to this contributor for connection-state behavior consumed by the new notifications. (role: recent adjacent connection-state contributor; confidence: medium; commits: 913ba4e8f504, 260fb90c6dc7; files: src/OpenClaw.Tray.WinUI/App.xaml.cs, src/OpenClaw.Connection/GatewayConnectionManager.cs)
  • Barbara Kudiess: Recent current-main work ported MXC availability and pairing approval behavior in the sandbox/pairing area that this PR promotes into app notifications. (role: recent adjacent sandbox and pairing contributor; confidence: medium; commits: 9f4d23804122, e7ef2715398c; files: src/OpenClaw.Tray.WinUI/App.xaml.cs, src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml.cs, src/OpenClaw.Shared/Mxc/MxcAvailability.cs)
  • QQSHI13: The merged chat/session toast-routing work touched gateway notification and toast activation behavior that should remain compatible with app-notification routing. (role: adjacent recent toast-routing contributor; confidence: medium; commits: 6283fb174ead; files: src/OpenClaw.Tray.WinUI/App.xaml.cs, src/OpenClaw.Tray.WinUI/App.ToastActivation.cs)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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

@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label Jun 13, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 message-delivery 🚨 Merging this PR could drop, duplicate, misroute, suppress, or wrongly target messages. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 22, 2026
@RBrid

RBrid commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 25, 2026
@RBrid

RBrid commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 message-delivery 🚨 Merging this PR could drop, duplicate, misroute, suppress, or wrongly target messages. labels Jun 25, 2026
@RBrid

RBrid commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

1 similar comment
@RBrid

RBrid commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@RBrid
RBrid marked this pull request as ready for review June 25, 2026 20:07
RBrid and others added 4 commits June 25, 2026 14:53
Promote background connection, pairing, channel, sandbox, and cron issues into the app-level notification surface while keeping page-local action feedback local.

Localize the new notification/status text across supported locales and document invariant command labels.

Co-authored-by: Copilot <[email protected]>
Align sandbox unavailable app notifications and Sandbox page copy with strict fallback blocking versus host fallback, and localize the conflict-resolution resource keys.

Co-authored-by: Copilot <[email protected]>
@shanselman
shanselman force-pushed the user/rbrid/UseNotificationsPage branch from 2f59119 to 976aac8 Compare June 25, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants