fix(whatsapp): treat close status 440 as non-retryable#25858
Merged
steipete merged 1 commit intoopenclaw:mainfrom Feb 24, 2026
Merged
Conversation
steipete
added a commit
that referenced
this pull request
Feb 24, 2026
Contributor
|
Landed with stricter non-retryable handling for WhatsApp close status 440.
Thanks @markmusson. |
This was referenced Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
440(session conflict) was treated like a transient disconnect.440is now treated as non-retryable; monitor logs a clear operator action and stops instead of retrying.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
440, OpenClaw now stops web monitoring immediately and prints a relink/session-conflict message.440.Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:N/ARepro + Verification
Environment
maxAttempts,initialMs,maxMs)Steps
{ status: 440, isLoggedOut: false, error: "Unknown Stream Errored (conflict)" }.Expected
440.Actual
Evidence
Attach at least one:
Red -> Green evidence:
expected false to be trueintreats status 440 as non-retryable and stops without retrying).Human Verification (required)
What you personally verified (not just CI), and how:
440exits monitor without retry.Compatibility / Migration
Yes)No)No)N/AFailure Recovery (if this breaks)
adbe95421.src/web/auto-reply/monitor.tssrc/web/auto-reply.web-auto-reply.reconnects-after-connection-close.test.tsRisks and Mitigations
isNonRetryableWebCloseStatus) makes code/coverage extension straightforward.Validation
bunx vitest run --config vitest.unit.config.ts src/web/auto-reply.web-auto-reply.reconnects-after-connection-close.test.tsbunx vitest run --config vitest.unit.config.ts src/web/auto-reply.web-auto-reply.monitor-logging.test.ts src/web/auto-reply.typing-controller-idle.test.ts src/web/auto-reply.web-auto-reply.compresses-common-formats-jpeg-cap.test.tspnpm canvas:a2ui:bundle && pnpm testpnpm checkAI assistance