Skip to content

fix(#2458): [Bug] 新增的文件传输列表功能的暂停和全部暂定功能不生效#2459

Merged
netcatty-bot merged 2 commits into
mainfrom
cursor/issue-2458-30086360992
Jul 24, 2026
Merged

fix(#2458): [Bug] 新增的文件传输列表功能的暂停和全部暂定功能不生效#2459
netcatty-bot merged 2 commits into
mainfrom
cursor/issue-2458-30086360992

Conversation

@netcatty-bot

Copy link
Copy Markdown
Collaborator

Summary

OK: Fixed stream transfer pause: unpipe before pause so destination drain cannot auto-resume the upload; resume re-pipes. Added regression test for backpressured stream uploads.

Fixes #2458

Automation

  • Automated implement pass
  • Review gate: @codex review (own/bot PRs only)
  • Draft until Codex reports clean findings

@netcatty-bot netcatty-bot added automation:bot-pr PR created or owned by Cursor automation automation:codex-loop Own/bot PR waiting on Codex review↔fix loop triage Touched by Cursor automation labels Jul 24, 2026
@netcatty-bot

Copy link
Copy Markdown
Collaborator Author

@codex review

@netcatty-bot netcatty-bot added automation:codex-loop Own/bot PR waiting on Codex review↔fix loop triage Touched by Cursor automation labels Jul 24, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7282d3be7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

transfer.paused = false;
transfer.pauseSuperseded = false;
try { transfer.readStream?.resume?.(); } catch { }
resumeStreamPair(transfer);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Make stream resume idempotent before re-piping

When a resume request is repeated for the same paused stream (for example, double-clicking the resume button before the first async resume updates the UI), the first request has already reattached the pipe, but the second still reaches this line with transfer.paused === false and calls pipe() on the same readable/writable pair again. Node does not deduplicate duplicate pipe() calls, so subsequent chunks are written once per pipe; for local-to-local resumable copies this can promote an oversized/corrupt staged file. Please track whether the pair is currently unpiped or no-op repeated resumes before calling resumeStreamPair().

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

@codex review

@netcatty-bot

Copy link
Copy Markdown
Collaborator Author

@codex review

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 24e20b1b2e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@netcatty-bot
netcatty-bot marked this pull request as ready for review July 24, 2026 11:00
@netcatty-bot

Copy link
Copy Markdown
Collaborator Author

Codex reported no major issues. This PR is marked ready for human review/merge.

1 similar comment
@netcatty-bot

Copy link
Copy Markdown
Collaborator Author

Codex reported no major issues. This PR is marked ready for human review/merge.

@netcatty-bot
netcatty-bot merged commit 5b1af6c into main Jul 24, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation:bot-pr PR created or owned by Cursor automation automation:codex-loop Own/bot PR waiting on Codex review↔fix loop triage Touched by Cursor automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 新增的文件传输列表功能的暂停和全部暂定功能不生效

1 participant