-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Description
When installing @qodo/command@latest globally and running qodo chat with a minimal agent.toml, Qodo immediately crashes with:
Initializing Qodo Agent...
Reading agent protocol...
An error occurred: Cannot convert object to primitive value
Steps to Reproduce
- Install the CLI globally:
npm install -g @qodo/command@latestnpm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: [email protected]
npm warn node_modules/@qodo/command/node_modules/marked
npm warn marked@"^16.1.2" from @qodo/[email protected]
npm warn node_modules/@qodo/command
npm warn @qodo/command@"0.27.0" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer marked@">=1 <16" from [email protected]
npm warn node_modules/@qodo/command/node_modules/marked-terminal
npm warn marked-terminal@"^7.3.0" from @qodo/[email protected]
npm warn node_modules/@qodo/command
npm warn
npm warn Conflicting peer dependency: [email protected]
npm warn node_modules/marked
npm warn peer marked@">=1 <16" from [email protected]
npm warn node_modules/@qodo/command/node_modules/marked-terminal
npm warn marked-terminal@"^7.3.0" from @qodo/[email protected]
npm warn node_modules/@qodo/command- Create a minimal agent.toml:
version = "1.0"
name = "Minimal Chat Agent"
[model]
provider = "openai"
model = "gpt-4o-mini"
[capabilities]
chat = true- Run:
qodo chat --debugExpected Behavior
Qodo should initialize the chat agent successfully and open an interactive session.
Actual Behavior
It fails immediately with:
An error occurred: Cannot convert object to primitive value
Even with QODO_LOG_LEVEL=trace, no additional useful output is shown.
This happens on macOS (Apple Silicon, Node v22.18.0) with a clean global install.
Environment
- Qodo CLI: @qodo/[email protected]
- Node: v22.18.0
- OS: macOS 15.7 (arm64)
- Agent config: minimal (see above)
Notes
- The error persists with an empty project and only [capabilities] chat = true.
- Could be a regression in v0.27.0 related to agent instantiation.
- Peer dependency conflict ([email protected] vs [email protected]) may also be worth addressing to avoid future breakage.
Metadata
Metadata
Assignees
Labels
No labels