I have the following setup:
1.0.44 (Claude Code)
claude_code_sdk 0.0.14
When I run the simple example from the readme it just hangs.
I printed out the cmd that the SubprocessCLITransport.connect builds
/Users/mycomp/.nvm/versions/node/v22.17.0/bin/claude --output-format stream-json --verbose --print What is 2 + 2?
which the cli treats as follows:
I see you've started typing but your message appears incomplete. What would you like me to help you with?
If I wrap What is 2+2? in quotes, the cli correctly returns 4. However, the sdk still hangs.
I compared the cmd and outputs with a colleague who has claude cli 1.0.40 and on his computer this runs correctly from the start (without adding quotes) - so my conjecture is that the sdk is slightly back from the cli and the cli may have introduced some breaking changes in a patch version.
I have the following setup:
1.0.44 (Claude Code)
claude_code_sdk 0.0.14
When I run the simple example from the readme it just hangs.
I printed out the
cmdthat theSubprocessCLITransport.connectbuilds/Users/mycomp/.nvm/versions/node/v22.17.0/bin/claude --output-format stream-json --verbose --print What is 2 + 2?
which the cli treats as follows:
I see you've started typing but your message appears incomplete. What would you like me to help you with?
If I wrap What is 2+2? in quotes, the cli correctly returns 4. However, the sdk still hangs.
I compared the cmd and outputs with a colleague who has claude cli 1.0.40 and on his computer this runs correctly from the start (without adding quotes) - so my conjecture is that the sdk is slightly back from the cli and the cli may have introduced some breaking changes in a patch version.