Skip to content

fix: auto-accept remote-control prompt to prevent immediate exit#1133

Merged
gavrielc merged 4 commits into
nanocoai:mainfrom
gabi-simons:fix/remote-control-stdin-clean
Mar 16, 2026
Merged

fix: auto-accept remote-control prompt to prevent immediate exit#1133
gavrielc merged 4 commits into
nanocoai:mainfrom
gabi-simons:fix/remote-control-stdin-clean

Conversation

@gabi-simons

Copy link
Copy Markdown
Collaborator

claude remote-control prompts "Enable Remote Control? (y/n)" on every launch. With stdin set to 'ignore', the process exits immediately because it cannot read the
response. Pipe 'y\n' to stdin instead.

Type of Change

  • Skill - adds a new skill in .claude/skills/
  • Fix - bug fix or security fix to source code
  • Simplification - reduces or simplifies source code

Description

startRemoteControl() spawns claude remote-control with stdio: ['ignore', ...]. The CLI always prompts "Enable Remote Control? (y/n)" and exits when it can't read
stdin. Changed to 'pipe' and write y\n before detaching.

Tested manually via Discord /remote-control — URL now returned successfully.

`claude remote-control` prompts "Enable Remote Control? (y/n)" on every
launch. With stdin set to 'ignore', the process exits immediately because
it cannot read the response. Pipe 'y\n' to stdin instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gabi-simons gabi-simons requested a review from gavrielc as a code owner March 16, 2026 09:38
gabi-simons and others added 3 commits March 16, 2026 09:41
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
systemd's default KillMode=control-group kills all processes in the
cgroup on service restart, including the detached claude remote-control
process. KillMode=process only kills the main Node.js process, letting
detached children survive. restoreRemoteControl() already handles
reattaching on startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gavrielc gavrielc merged commit 4b53ce0 into nanocoai:main Mar 16, 2026
1 check passed
bogdano2 pushed a commit to bogdano2/nanoclaw that referenced this pull request Mar 17, 2026
…stdin-clean

fix: auto-accept remote-control prompt to prevent immediate exit
om10001 pushed a commit to om10001/nanoclaw that referenced this pull request Mar 19, 2026
…stdin-clean

fix: auto-accept remote-control prompt to prevent immediate exit
justjayk pushed a commit to justjayk/nanoclaw that referenced this pull request Mar 21, 2026
…stdin-clean

fix: auto-accept remote-control prompt to prevent immediate exit
hamiz-ahmed pushed a commit to hamiz-ahmed/nanoclaw that referenced this pull request Mar 24, 2026
…stdin-clean

fix: auto-accept remote-control prompt to prevent immediate exit
talmosko-code pushed a commit to talmosko-code/nanoclaw that referenced this pull request Apr 28, 2026
…stdin-clean

fix: auto-accept remote-control prompt to prevent immediate exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants