Repository navigation
feat(config): a launcher that overrides how claude is spawned - #36
Merged
Merged
Conversation
A machine that reaches Claude Code through a wrapper could not use the tool at all: the program name was hardcoded in every spawn. A global launcher key names the program and the arguments that go in front of mission control's own, and the fix session takes flags of its own on top, because it is the run I steer. The key sits beside defaults and repos rather than inside them: what starts claude is a fact of this machine and no repository's business. It is serialised as well as read, so init rewriting the file does not drop a hand-written one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Closes #35.
A machine that reaches Claude Code through another program —
cswap run --, a multi-account manager — could not use the tool at all:claudewas hardcoded in all three spawns. A globallauncherkey names the program and the arguments that go in front of mission control's own.commandis an argv list and never a shell string: a shell string needssh -c, and that extra process in the terminal's foreground group takes the inherited stdin and the Ctrl-C of a fix session with it. An empty list is aConfigMalformedat read; a program that is not onPATHis left to the spawn, which already reports it as aRunnerFailed.The key sits beside
defaultsandreposrather than inside them, because what startsclaudeis a fact of the machine and no repository's business. It reaches the runner as a field in each spawn's options —review.tsandfix.tsalready read the configuration — and it is serialised as well as read, soinitrewriting the whole file does not drop a hand-written one.initneither asks for it nor takes a flag for it.Failures name
command[0]: under another program it is that program that exited, and sayingclaudesends the search to the wrong process. The turn deadline moved intoturnfor the same reason — the outer pipeline cannot see the launcher.No
review_args:review.modelnever reaching argv is a separate hole.🤖 Generated with Claude Code