Teleport from mobile to desktop CLI fails with git working directory error
Resolved 💬 3 comments Opened Jan 8, 2026 by ProduktEntdecker Closed Jan 12, 2026
Description
When starting a Claude Code session on mobile and attempting to teleport it to the desktop CLI, the teleport fails with a git-related error even though no files were intentionally modified during the mobile session.
Steps to Reproduce
- Start a Claude Code session on mobile (iOS/web)
- Ask Claude to investigate an error (read-only task)
- Open the same session on desktop
- Click "Open in CLI" link to teleport the session
- Receive error message about uncommitted/stale git state
Expected Behavior
The session teleports seamlessly to the CLI and I can continue working in the terminal.
Actual Behavior
Error message: Git working directory is not clean. Please commit or stash your changes before using --teleport.
Environment
- Claude Code version: 2.1.1
- Desktop OS: macOS (Darwin 25.2.0)
- Mobile: iOS (Claude app / web)
Additional Context
- The mobile session was primarily read-only (investigating an error)
- No intentional file modifications were made during the mobile session
- Git status showed untracked files that may have been created during the session
- This creates friction in the mobile → desktop workflow
Suggested Improvement
Consider one of:
- Auto-stash changes before teleport and restore after
- Provide clearer guidance on what changed and how to resolve
- Allow teleport with a
--forceflag that handles git state automatically
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗