Skip to content

simple example lags, possibly sdk not compatible with latest Claude-code cli #72

@pickleerik

Description

@pickleerik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions