Skip to content

fix(console): retain message retry identity after gateway errors - #685

Merged
yyjeqhc merged 1 commit into
yyjeqhc:mainfrom
franksong2702:franksong2702/window-message-retry-20260926
Sep 26, 2026
Merged

yyjeqhc merged 1 commit into
yyjeqhc:mainfrom
franksong2702:franksong2702/window-message-retry-20260926

Conversation

@franksong2702

Copy link
Copy Markdown
Contributor

Window collaboration clears its delivery key after HTTP 502/504 (and other unclassified server errors) or a successful response without a valid message receipt. A proxy can lose the response after the message is retained, so a subsequent send with a new key can duplicate it.

Keep the exact payload and delivery key for these uncertain outcomes, including missing responses and malformed success receipts. Explicit deterministic rejections still clear the key. The regression tests cover retries after changing the selected Session and preserve the existing conflict, invalid-context and unavailable-Window behavior. Includes the rebuilt runtime bundle.

Validation on base 0173be86d4b6519848f821249fb2e9b3e612a723:

  • NODE_OPTIONS=--no-experimental-webstorage npm run test:runtime -- test-v2/window-collaboration.test.tsx: 13 passed.
  • npm run typecheck and npm run build: passed.
  • git diff --check: passed.

The Node 22.22.3 default run failed in the existing test cleanup because its experimental global localStorage was unavailable; disabling that Node-only experimental API lets jsdom provide storage. No test assertion or repository test setup was weakened. HTTP failures are isolated component fixtures, not a live proxy or ChatGPT acceptance test.

@yyjeqhc
yyjeqhc merged commit 8623256 into yyjeqhc:main Sep 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants