Skip to content

chore(deps): bump @anthropic-ai/claude-agent-sdk from 0.1.76 to 0.2.56#13044

Merged
kangfenmao merged 2 commits intomainfrom
chore/bump-claude-agent-sdk
Feb 26, 2026
Merged

chore(deps): bump @anthropic-ai/claude-agent-sdk from 0.1.76 to 0.2.56#13044
kangfenmao merged 2 commits intomainfrom
chore/bump-claude-agent-sdk

Conversation

@DeJeune
Copy link
Copy Markdown
Collaborator

@DeJeune DeJeune commented Feb 25, 2026

What this PR does

Before this PR:
@anthropic-ai/claude-agent-sdk was pinned at v0.1.76 with a patch to replace spawn with fork for IPC support.

After this PR:
@anthropic-ai/claude-agent-sdk is upgraded to v0.2.56 with the same spawn→fork patch regenerated for the new version.

Why we need it and why it was done in this way

The following tradeoffs were made:
N/A

The following alternatives were considered:
N/A

fix this problem via bump: anthropics/claude-code#8430

Breaking changes

None. The patch applies the same spawn→fork transformation as before, just targeting the updated minified code in v0.2.56.

Special notes for your reviewer

  • The old patch file patches/@[email protected] is no longer referenced but was not deleted (pnpm removed the reference automatically).
  • The new patch patches/@anthropic-ai__claude-agent-sdk.patch is large in bytes because it diffs minified single-line JS, but the logical change is small (spawn→fork, add IPC stdio, remove windowsHide).

Checklist

  • PR: The PR description is expressive enough and will help future contributors
  • Code: Write code that humans can understand and Keep it simple
  • Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
  • Upgrade: Impact of this change on upgrade flows was considered and addressed if required
  • Documentation: Not required

Release note

NONE

Update claude-agent-sdk to v0.2.56 and regenerate the spawn→fork patch
for the new version (using fork with IPC channel instead of spawn).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@DeJeune
Copy link
Copy Markdown
Collaborator Author

DeJeune commented Feb 25, 2026

Note

This comment was translated by Claude.

The actual modified places

image image
Original Content

实际修改的地方

image image

Copy link
Copy Markdown
Collaborator

@vaayne vaayne left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux left a comment

Choose a reason for hiding this comment

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

最好能找到不用patch的方案。自从sdk有代码混淆以后就会特别难维护。

@beyondkmp
Copy link
Copy Markdown
Collaborator

beyondkmp commented Feb 26, 2026

Note

This comment was translated by Claude.

When using fork, a terminal window pops up on Mac. This seems difficult to resolve right now. On Windows, it actually works without the patch.


Original Content

用 fork 的话,在 mac上面会有一个 terminal 弹出来,目前看起来真不好解决,在 windows 其实不用 patch 也是可以的。

@kangfenmao
Copy link
Copy Markdown
Collaborator

conflicts @DeJeune

@kangfenmao kangfenmao merged commit a734a74 into main Feb 26, 2026
7 checks passed
@kangfenmao kangfenmao deleted the chore/bump-claude-agent-sdk branch February 26, 2026 02:32
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.

5 participants