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 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-17 21:22:32 -07:00 committed by GitHub
parent e1617fdc01
commit 7fe1bdf6b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.21.1",
"version": "0.21.2",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -1037,7 +1037,6 @@ function createAgents(runner: CloudRunner): Record<string, AgentConfig> {
junie: {
name: "Junie",
cloudInitTier: "node",
modelEnvVar: "JUNIE_MODEL",
preProvision: detectGithubAuth,
install: () =>
installAgent(