feat(PRLT-1369): support multiple Claude accounts via --executor-env / --executor-bin#1262
Open
chrismcdermut wants to merge 1 commit into
Open
feat(PRLT-1369): support multiple Claude accounts via --executor-env / --executor-bin#1262chrismcdermut wants to merge 1 commit into
chrismcdermut wants to merge 1 commit into
Conversation
…i-account Claude support
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.
Summary
--executor-env KEY=VALUE(repeatable) — sets env vars on the spawned executor (e.g.CLAUDE_CONFIG_DIR=$HOME/.claude-workto switch accounts).--executor-bin <path>— overrides the executor binary (e.g. an absolute path or wrapper script).work start,work spawn,work run,orchestrator start,claude,qa, andagent shell.docker exec -e KEY=VALUE), docker (docker run -e), cloud (env prefix on remote ssh command), and the inlineagent shellclaude/docker exec.Implementation notes
apps/cli/src/lib/execution/executor-overrides.tswith:parseExecutorEnv,buildShellExports,buildDockerEnvFlags,executorOverrideFlags,readExecutorOverridesFromFlags. Single source of truth for parsing/escaping.getExecutorCommandgained an optional 4thbinOverridearg so all runners can swap the binary uniformly.'custom'executor with--executor-binfinally produces a real command instead of theechofallback.ExecutionContextandSpawnOptionsextended withexecutorEnv?: Record<string, string>andexecutorBin?: string. Runners read them off the context — no new arguments to the dispatcher.Test plan
apps/cli/test/unit/executor-overrides.test.ts(22 tests) covering parser, shell/docker fragment builders, flag reader, andgetExecutorCommandbinOverride pathspnpm buildclean🤖 Generated with Claude Code