From 7fe1bdf6b3308fd84fb7bcb4b1906da79e415f02 Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Tue, 17 Mar 2026 21:22:32 -0700 Subject: [PATCH] fix(junie): remove JUNIE_MODEL env var to fix 'Unknown model: openrouter/auto' crash (#2735) Junie only accepts its own shorthand model names (gpt, opus, sonnet, etc.) and not OpenRouter model IDs. Removing modelEnvVar lets junie handle its own model routing via the OpenRouter API key instead. Fixes #2734 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 --- packages/cli/package.json | 2 +- packages/cli/src/shared/agent-setup.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index f581efd2..a61179ce 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.21.1", + "version": "0.21.2", "type": "module", "bin": { "spawn": "cli.js" diff --git a/packages/cli/src/shared/agent-setup.ts b/packages/cli/src/shared/agent-setup.ts index 9571be4c..c147a1a6 100644 --- a/packages/cli/src/shared/agent-setup.ts +++ b/packages/cli/src/shared/agent-setup.ts @@ -1037,7 +1037,6 @@ function createAgents(runner: CloudRunner): Record { junie: { name: "Junie", cloudInitTier: "node", - modelEnvVar: "JUNIE_MODEL", preProvision: detectGithubAuth, install: () => installAgent(