[Bug] System-level "Exec completed/failed" notifications leak into unrelated webchat sessions
Summary
System-generated notifications for background exec completions ("Exec completed (session-id, code N)", "Exec failed (session, signal SIGTERM)") are appearing in webchat sessions that did not initiate the exec. This causes confusion as users see completion messages for tasks they didn't start.
This appears related to #25959 (which was closed as stale), but the bug persists in the latest release.
Environment
- OpenClaw version: 2026.4.12 (latest as of report date)
- OS: Ubuntu 25.10
- Session type: Control UI (webchat) via Tailscale
- Channel: webchat
Steps to Reproduce
- User is in a webchat session (Control UI)
- Some other process (subagent, cron job, or background exec) runs and completes
- System message appears in webchat:
[timestamp] Exec completed (session-name, code 0)
- User sees notification for work they did not initiate
Observed Behavior
System events from other sessions are being delivered to the webchat session:
[2026-04-14 10:43:18 CDT] Exec failed (gentle-s, signal SIGTERM)
[2026-04-14 10:43:18 CDT] Exec failed (marine-c, signal SIGTERM)
[2026-04-14 10:43:53 CDT] Exec completed (keen-slu, code 0)
These sessions (gentle-s, marine-c, keen-slu) were not started by the webchat user.
Expected Behavior
- System-level exec notifications should only appear in the session that initiated the exec
- OR there should be a configuration option to suppress system-level async notifications entirely
- Webchat sessions should not receive completion events from unrelated background work
Impact
- User confusion: "I thought this was stopped now" — user sees messages they don't understand
- Context pollution: System messages interleave with user conversation
- Wasted tokens: System events consume context window
Additional Context
Related Issues
Request
Either:
- Fix session targeting so exec notifications only go to originating sessions
- Provide a config option to suppress all system-level async completion notifications
- Document the workaround if one exists
[Bug] System-level "Exec completed/failed" notifications leak into unrelated webchat sessions
Summary
System-generated notifications for background exec completions ("Exec completed (session-id, code N)", "Exec failed (session, signal SIGTERM)") are appearing in webchat sessions that did not initiate the exec. This causes confusion as users see completion messages for tasks they didn't start.
This appears related to #25959 (which was closed as stale), but the bug persists in the latest release.
Environment
Steps to Reproduce
[timestamp] Exec completed (session-name, code 0)Observed Behavior
System events from other sessions are being delivered to the webchat session:
These sessions (
gentle-s,marine-c,keen-slu) were not started by the webchat user.Expected Behavior
Impact
Additional Context
Related Issues
Request
Either: