fix: replace --append-system-prompt-file with --append-system-prompt#359
Open
whitmo wants to merge 1 commit intodlorenc:mainfrom
Open
fix: replace --append-system-prompt-file with --append-system-prompt#359whitmo wants to merge 1 commit intodlorenc:mainfrom
whitmo wants to merge 1 commit intodlorenc:mainfrom
Conversation
Claude CLI v2.1.63 does not support --append-system-prompt-file. Instead, read the prompt file contents and pass them inline via --append-system-prompt. This fixes ALL agent spawning which was blocked by the unsupported flag. For tmux-based launches (runner.go, daemon.go, cli.go startClaudeInTmux), uses shell expansion $(cat 'file') so the shell reads the file at execution time. For exec.Command-based launches (cli.go restartClaude), reads the file in Go and passes the content directly as an argument. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
Triage ReviewPriority: P0 (bug fix - blocks all agent spawning) Recommendation: Merge first - this is a blocking bug fix with no conflicts. |
5 tasks
Author
Local CI Verification (2026-03-12)
CI Status: No GitHub Actions checks are running — this is expected for first-time fork PRs. GitHub requires a maintainer to approve workflow runs for PRs from forks. Branch is rebased on |
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
--append-system-prompt-file. All agent spawning was blocked.--append-system-promptwith inline content instead.startClaudeInTmux): uses$(cat 'file')shell expansion so the prompt file is read at execution time.exec.Command-based launch (cli.gorestartClaude): reads the file in Go viaos.ReadFileand passes content directly as an argument.Files Changed
pkg/claude/runner.gobuildCommand()uses--append-system-prompt "$(cat '...')"pkg/claude/runner_test.gopkg/claude/doc.gopkg/claude/README.mdinternal/daemon/daemon.gointernal/cli/cli.gorestartClaude(exec.Command) andstartClaudeInTmuxOpportunities (not implemented)
docs/AGENTS.md,docs/CRASH_RECOVERY.md,SPEC.md,ARCHITECTURE.mdstill reference the old flag name in documentation/examples — these are doc-only, non-blocking.Test plan
go test ./pkg/claude/...— all 20 tests passgo test ./internal/...— all internal tests passgo build ./...— full build succeeds--append-system-prompt-file🤖 Generated with Claude Code