[BUG] Teleport stops working for sessions with no repo
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?
I created a claude CLI session with Fable[1m] in a folder that didn't have a repository in it.
The session work completed, and I used '/exit'.
The session exists on claude.ai (via remote-control being auto-enabled on every session).
When I try to use 'claude --teleport <sessionID>' from the claude.ai link, no session history is restored.
Additionally, if you teleport into the session where no history loads, the claude.ai says there is an issue connecting to the terminal session.
What Should Happen?
When I go to the same folder where I had the original session and use the 'claude --teleport <sessionID>' command, I expect the conversation history that exists on claude.ai to be downloaded locally so I can continue the conversation locally in the terminal.
Error Messages/Logs
Steps to Reproduce
Create a session in a folder without a git repository.
Enable remote control for that session
Do some work in that session.
Exit the session
Try to resume the session, it is not flushed to disk but exists at the remote-control URL
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.199
Claude Code Version
2.1.201
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗