Skip to content

fix(sandcastle): forward CLAUDE_CODE_OAUTH_TOKEN into sandbox#254

Merged
DaveHudson merged 2 commits intomainfrom
fix/sandcastle-claude-oauth-forward
May 8, 2026
Merged

fix(sandcastle): forward CLAUDE_CODE_OAUTH_TOKEN into sandbox#254
DaveHudson merged 2 commits intomainfrom
fix/sandcastle-claude-oauth-forward

Conversation

@DaveHudson
Copy link
Copy Markdown
Collaborator

Summary

  • Resolve CLAUDE_CODE_OAUTH_TOKEN via varlock from Infisical's dev env and forward it into the sandbox container so the in-container claude CLI can authenticate (host ~/.claude creds don't reach the sandbox).
  • Wrap the sandcastle script with varlock run --path .sandcastle/ so process.env is populated before main.ts runs.
  • Document the forwarding in .env.schema and the SANDBOX_ENV block.

Test plan

  • bun run ci passes locally
  • bun run sandcastle boots without "Not logged in" inside the container
  • Implementer/reviewer agents complete a run end-to-end

DaveHudson added 2 commits May 8, 2026 15:05
In-container `claude` CLI was failing with "Not logged in" because host
~/.claude credentials don't reach the sandbox. Resolve the token via
varlock from Infisical's dev env and forward it through SANDBOX_ENV.

Wraps the `sandcastle` script with `varlock run --path .sandcastle/`
so process.env is populated before main.ts runs.
@DaveHudson DaveHudson enabled auto-merge May 8, 2026 14:08
@DaveHudson DaveHudson merged commit 8e979cd into main May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant