-
-
Notifications
You must be signed in to change notification settings - Fork 79.2k
Restart-sentinel turn on channel-bound session emits outbound reply to source chat #87792
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
GitHub issue draft — restart-sentinel turn produces user-facing outbound reply
Repo:
openclaw/openclawTitle: Restart-sentinel turn on channel-bound session emits outbound reply to source chat
Summary
When the gateway restarts, restart-sentinel events posted to a channel-bound main-session (e.g. a WhatsApp group session with key
agent:main:whatsapp:group:<id>@g.us) can cause the agent to generate a user-facing assistant reply that is then routed back to the source chat. Sentinels should be system-only and never produce outbound messages.Impact
A reply intended for a different session/context (the user's TUI/Discord) was emitted into a WhatsApp group chat after the gateway restarted. Content in our case was harmless dev output (
"Brew bin is now on my exec PATH...") but the same path could leak arbitrary in-progress assistant text into any channel the session is bound to.Severity: low data sensitivity in our case, but the leak class is high — outbound messages should never be triggered by system sentinels.
Reproduction (observed, not minimised)
agent:main:whatsapp:group:<id>@g.us.Trajectory evidence (sanitised id):
c9add990-...restart-sentinel:agent:main:whatsapp:group:<id>@g.us:agentTurn:<ts>trace.artifacts.didSendViaMessagingTool: false— meaning the model did not invoke themessagetool; the outbound was the default assistant-reply routing, not an explicit tool call. So suppression has to live in the runtime, not in agent prompt discipline.Expected behaviour
Restart sentinels should be either:
Suggested fix locations
Related (worth a separate issue if confirmed)
Workaround
Pull the WhatsApp integration / restrict its inbound routing so group sessions don't get spawned. We did exactly this — easy because we treated WhatsApp as gimmicky anyway, but not a real fix.
Environment