Skip to content

qodo chat fails with “Cannot convert object to primitive value” even with minimal agent.toml (v0.27.0, macOS) #15

@qveys

Description

@qveys

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

  1. Install the CLI globally:
npm install -g @qodo/command@latest

⚠️ Note: The install shows peer dependency warnings:

npm 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
  1. Create a minimal agent.toml:
version = "1.0"
name = "Minimal Chat Agent"

[model]
provider = "openai"
model = "gpt-4o-mini"

[capabilities]
chat = true
  1. Run:
qodo chat --debug

Expected 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions