-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug]: macOS node mode can silently self-reconnect in a healthy direct gateway session #90668
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:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.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.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
On macOS, the app in node mode can repeatedly log a successful gateway connection from the same process every 2-3 seconds while using a remote direct
wss://gateway session.Steps to reproduce
wss://gateway.mac node connected to gatewayrepeatedly every 2-3 seconds for over a minute.Expected behavior
A healthy node-mode gateway session should remain connected without repeated successful connect logs from the same process until an actual disconnect occurs.
Actual behavior
In affected runs, the same app PID logs repeated
mac node connected to gatewayevents every 2-3 seconds for over a minute. In the same observed run, there was no matchinggateway tick missed; reconnectingline and no explicit disconnect logged before each repeatedconnectedmessage.OpenClaw version
v2026.6.1
Operating system
macOS v26.5
Install method
mac app
Model
NOT_APPLICABLE (node-mode gateway connection path; no model invocation is required for the observed behavior)
Provider / routing chain
NOT_APPLICABLE (node-mode gateway connection path; no provider request is required for the observed behavior)
Additional provider/model setup details
NOT_APPLICABLE
Logs, screenshots, and evidence
Observed evidence from the affected run:
mac node connected to gatewayrepeatedly every 2-3 secondsgateway tick missed; reconnectingline in that runconnectedmessageConnectChallengeErrorand node-pairing churn were also observed in some failing windows, but not as the primary signal in the clean repeated-connect runRelevant source areas inspected during triage:
apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayChannel.swiftapps/macos/Sources/OpenClaw/NodeMode/MacNodeModeCoordinator.swiftObserved code path that may be relevant:
Impact and severity
Affected: macOS app node-mode sessions using remote direct
wss://gateway transportSeverity: High
Frequency: Intermittent, observed repeatedly across investigation runs
Consequence: repeated reconnect churn, unstable node connectivity, and noisy secondary pairing/challenge failures
Additional information
This appears distinct from older auth-token churn / pairing-required reconnect reports because the strongest observed signal here is repeated successful
connectedlogging from the same process without a matching explicit disconnect before each reconnect. Last known good version and first known bad version: NOT_ENOUGH_INFO.