fix(sandbox): use Docker runner for agent.configure() in sandbox mode (#3133)

Agent config functions (setupClaudeCodeConfig, setupCodexConfig, etc.)
captured the bare host runner from local/agents.ts, bypassing the Docker
wrapper. This caused config files like ~/.claude/settings.json to be
written to the host filesystem instead of inside the sandbox container.

Fix: when --beta sandbox is active, recreate agents with the Docker-wrapped
runner so configure()/install() closures execute inside the container.

Co-authored-by: spawn-bot <spawn-bot@openrouter.ai>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-03-31 22:16:52 -07:00 committed by GitHub
parent 3b61c22f25
commit 1599444517
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 75 additions and 9 deletions

View file

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