[BUG] remote-control --no-create-session-in-dir prevents session resume

Status Open
Reported on v2.1.233
Maintainer reply None cached
Activity 1 comment · opened Aug 15, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When running claude remote-control --no-create-session-in-dir it appears to trigger an undocumented (and presumably unwanted) behavior - it does not re-attach previous sessions started by claude remote-control in the same folder.

All the documentation says about --no-create-session-in-dir is that it stops the eager spawning of a new session when you start claude remote-control - which is all I wanted, because I want to start it and then launch sessions from the desktop app against this environment.

However I occasionally need to restart claude remote-control. When I do that with --no-create-session-in-dir - the previous sessions are stuck in limbo and aren't resumed.

I other words:

$ claude remote-control
# start sessions from the desktop app
^C
$ claude remote-control
# all previous remote-control sessions re-attach
$ claude remote-control --no-create-session-in-dir
# start sessions from the desktop app
^C
$ claude remote-control --no-create-session-in-dir
# no previous remote-control sessions re-attach

What Should Happen?

I would have expected claude remote-control --no-create-session-in-dir to behave exactly like claude remote-control in relation to resuming previous remote-control sessions in this directory, as all the documentation about the flag indicates is about the eager pre-spawn of a first session. It says nothing about not being able to resume sessions later.

In other words I would expect this:

$ claude remote-control --no-create-session-in-dir
# start sessions from the desktop app
^C
$ claude remote-control --no-create-session-in-dir
# all previous remote-control sessions re-attach

Error Messages/Logs

Steps to Reproduce

$ claude remote-control --no-create-session-in-dir
# start sessions from the desktop app
^C
$ claude remote-control --no-create-session-in-dir
# all previous remote-control sessions re-attach

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.233

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗