Skip to content

[PR] fix(web): release unread changelog error response bodies - #7384

Merged
ranxianglei merged 1 commit into
ranxianglei:masterfrom
Afloat16:2026-11-20_release-changelog-error-bodies
Nov 20, 2026
Merged

ranxianglei merged 1 commit into
ranxianglei:masterfrom
Afloat16:2026-11-20_release-changelog-error-bodies

Conversation

@Afloat16

Copy link
Copy Markdown
Contributor

Problem

Changelog checks reject HTTP errors before consuming their response bodies, then stop the idle watchdog. A server that leaves an error response open can therefore retain the connection after getChangelog() has already returned its offline result.

Fixes #7383.

Changes

  • Initiate cancellation when the response body has not been consumed, before stopping the idle timer.
  • Keep cancellation asynchronous and catch its rejection, so a tee sibling or a failed cleanup cannot delay or replace the existing offline result.
  • Cover unread 429/503 responses, the actual HTTP connection closing, last-good-cache retention, successful response consumption, cancellation failure, and an outstanding tee sibling.

Verification

Tested base: 1e357bf2d6632bfbd2a74ffb70ecee1af1ec7cc3 (v0.1.216), Node 24.22.3.

  • Unchanged production: 3 regression assertion failures, 9 passing controls.
  • Fixed production: 14/14 in tests/web-changelog.test.ts, using both repository test preloads and the real fetchWithTimeout path. The HTTP regression binds an ephemeral local port and checks that a response whose body never ends is actually closed.
  • npm run typecheck, npm run build, npm run check:unused-exports, npm run check:test-import-graph, and git diff --check pass.
  • Two independent read-only reviews checked the response ownership and nonblocking cancellation paths.

The full regression verdict remains the remote CI test lanes on this PR's pushed head. No configuration, persistence format, wire shape, kernel behavior, or model-facing text changes.

@ranxianglei ranxianglei changed the title fix(web): release unread changelog error response bodies [PR] fix(web): release unread changelog error response bodies Nov 20, 2026
@ranxianglei
ranxianglei merged commit be46645 into ranxianglei:master Nov 20, 2026
84 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changelog checks leave HTTP-error response bodies open

2 participants