claude-remote-control: pass --spawn=same-dir to avoid first-run prompt
Without it, a fresh `claude rc` start blocks on the interactive "[1] same-dir / [2] worktree" spawn-mode question, which hangs the systemd service on new hosts/directories until answered by hand. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,9 @@
|
|||||||
"${pkgs.claude-code}/bin/claude remote-control"
|
"${pkgs.claude-code}/bin/claude remote-control"
|
||||||
"--remote-control-session-name-prefix ${namePrefix}"
|
"--remote-control-session-name-prefix ${namePrefix}"
|
||||||
"--permission-mode bypassPermissions"
|
"--permission-mode bypassPermissions"
|
||||||
|
# Set spawn mode explicitly so a fresh start doesn't block on the
|
||||||
|
# interactive "[1] same-dir / [2] worktree" first-run prompt.
|
||||||
|
"--spawn same-dir"
|
||||||
];
|
];
|
||||||
ExecStop = "${pkgs.tmux}/bin/tmux -L ${socket} kill-server";
|
ExecStop = "${pkgs.tmux}/bin/tmux -L ${socket} kill-server";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|||||||
Reference in New Issue
Block a user