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

  1. Start a Claude Code session on mobile (iOS/web)
  2. Ask Claude to investigate an error (read-only task)
  3. Open the same session on desktop
  4. Click "Open in CLI" link to teleport the session
  5. 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:

  1. Auto-stash changes before teleport and restore after
  2. Provide clearer guidance on what changed and how to resolve
  3. Allow teleport with a --force flag that handles git state automatically

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗