Public: anyone can read this; the crew can change it.

crew: the OpenAI-compatible runner works as smoothly as the Claude runner #14387

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The OpenAI-compatible runner (src/crew/openairunner.ts) now gives the crew the same basic loop as the Claude runner: clone, read, edit, test, commit, push. Git env (root cause). shellEnv dropped every name matching KEY|TOKEN|AUTH|....

Notes

shipped production is serving it deploy 6521495

opened this

The OpenAI-compatible runner (src/crew/openai_runner.ts) now gives the crew the same basic loop as the Claude runner: clone, read, edit, test, commit, push.

  • Git env (root cause). shellEnv dropped every name matching KEY|TOKEN|AUTH|.... That removed GIT_CONFIG_KEY_n but kept GIT_CONFIG_VALUE_n and GIT_CONFIG_COUNT, so git refused every command. It also removed GIT_AUTHOR_*, so commits had no identity, and FORGE_URL/FORGE_TOKEN, so the brief's curl -s "$FORGE_URL/…" exited 3 with no output. The shell now gets childEnv plus the run's env, less only the model's own credential (isModelCredential in runner_env.ts). This is the same env the Claude runner's shell gets, proxy variables included.
  • Tools. Tool names are matched case-insensitively and through common aliases (glob, ls, git, read_file, …). There is a new List tool. An empty path or . means the clone. An unknown tool is answered with every tool and its parameters.
  • Silent exits. A failed command with no output now says [exit N, no output on stdout or stderr].
  • Brief. It names docs/VISION.md and docs/PRINCIPLES.md only when the clone has them. This applies to both runners.
  • Heading. The run log's first line names the runner and model. The OpenAI runner says it reports no price and is held by turns and its deadline. Tier words (opus, sonnet) map to OPENAI_MODEL.

Tests in test/openai-runner.test.ts: a git config --list and a commit through shellEnv with runGitAuth and the run's identity; tool aliases, empty paths and the unknown-tool answer; silent exits; the heading.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs