Skip to content

Bug: CLI silently falls back to Claude Opus and ignores default_provider in config.toml #1227

Description

@ppravdin

Bug Description

When launching jcode, it ignores default_provider = "openrouter" and default_model configured in ~/.jcode/config.toml.
Instead, because --provider defaults to auto, it automatically discovers Claude credentials on the system and boots directly into claude-opus-5.

Steps to Reproduce

  1. Configure ~/.jcode/config.toml with:
[provider]
default_provider = "openrouter"
default_model = "inclusionai/ling-3.0-flash-vl:free"
  1. Ensure Claude credentials exist on the system (e.g. Claude Code OAuth/session).
  2. Run jcode.

Expected Behavior

J-Code should respect default_provider from ~/.jcode/config.toml and start with the configured provider and model (in this case OpenRouter).

Actual Behavior

J-Code ignores config.toml, activates claude with claude-opus-5, sends heavy init payloads (MCP schemas, memory indexing) on cold start, and burns unexpected credits on expensive proprietary models without user consent or explicit selection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: noNeeds your brain: a product/design decision is required before anyone acts.bugSomething isn't workingpriority: highP1 - important bug or impactful feature, fix soontriage: needs-decisionNeeds maintainer decision/design thought

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions