When running the npx magnitude command in a previously initialized project with another provider, the claudeCode.json credentials file is not saved.
When I updated to the latest version and tried to use Claude Code, I got stuck on the authorization step. As a workaround, I ran the magnitude init, which successfully set up the authorization.
Environment
llm: {
provider: "claude-code",
options: {
model: "claude-sonnet-4-20250514"
},
}
Steps to Reproduce
- Ensure
.magnitude/credentials/claudeCode.json file doesn't exist.
- Run the Magnitude command:
npx magnitude ...
- On the Anthropic callback page, copy the provided authorization code.
- Paste the authorization code into the terminal prompt.
Actual Result
- Terminal process remains awaiting input after code is pasted.
claudeCode.json file is not created in the .magnitude/credentials/ directory.
Expected Result
Access and refresh tokens should be successfully saved in claudeCode.json after authorization code is submitted.