Repository navigation
Give a nested claude-multi its own gateway - #65
Merged
2 commits merged intoNov 27, 2026
Merged
2 commits merged into
2 commits merged into
Conversation
A claude-multi started inside another Multi session built its launcher environment from the inherited one, so the new gateway kept the outer session's HTTPS_PROXY (and got NODE_USE_ENV_PROXY=1 because of it) and sent provider traffic through the outer gateway. Start from withoutGateway, as the nested claude path already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyhDzX8bV9EHirc6mF5QVa
The bootstrap's `claude plugin list --json` ran with the inherited environment, so that one startup call still went through the outer session's HTTPS_PROXY (lab test). Give it the restored environment as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyhDzX8bV9EHirc6mF5QVa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes?
A
claude-multistarted inside another Multi session (an agent's Bash, a Remote Control shell in a desktop session) built its launcher environment from the inherited one. The outer session'sHTTPS_PROXYpoints at the outer gateway's front door, and because a proxy was set the bootstrap also started the launcher withNODE_USE_ENV_PROXY=1. So the new gateway's outbound provider requests (OpenAI, Zen) were tunnelled through the outer, possibly older, gateway. The bootstrap'sclaude plugin list --jsonstartup call leaked the same way.install/bootstrap.tsnow computeswithoutGateway(process.env)once, the same restore the nestedclaudepath already used, and uses it for the plugin check, the nestedclauderuns and the launcher.installedPluginstakes anenvoption.needsEnvProxyandMULTI_MODELSare read from the restored environment.No version bump here: PR #64 claims 0.4.4. The entry sits under
## Unreleasedand ships with the next release.Validation
npm run checkpasses; CI green.MULTI_GATEWAY_TOKENandHTTPS_PROXYpointing at it. Command:claude-multi -p "Reply with the word ok" --model multi/openai/gpt-6.2-sol.okin 10 s, zero CONNECTs.CHANGELOG.mdupdated.Review notes
Only the installed bootstrap path changes. Running
launcher.tsdirectly from a checkout inside a Multi session is unaffected unless Node was started withNODE_USE_ENV_PROXY=1, since Node reads that only at startup.🤖 Generated with Claude Code
https://claude.ai/code/session_01HyhDzX8bV9EHirc6mF5QVa