[BUG] --teleport fails with Cannot read properties of undefined (reading 'match')
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?
Description:
Running claude --teleport <session_id> crashes with a TypeError before any validation occurs.
Steps to Reproduce:
claude --teleport session_01WbsHMFiY15pntac9pAueKe
Error:
ERROR Cannot read properties of undefined (reading 'match')
file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3012:14021
-EdY (file:///...cli.js:3012:14021)
-PY6 (file:///...cli.js:3012:14598)
N7 (file:///...cli.js:283:20892)
DK (file:///...cli.js:283:39412)
OF (file:///...cli.js:283:50099)
MF (file:///...cli.js:283:86680)
D16 (file:///...cli.js:283:85649)
al (file:///...cli.js:283:85471)
qC (file:///...cli.js:283:82239)
P1 (file:///...cli.js:283:6447)
Environment:
- Claude Code version: 2.1.49
- Node.js: v22.17.0 (via nvm)
- OS: Linux (WSL2, kernel 6.6.87.2-microsoft-standard-WSL2)
- Shell: bash
- Git remote: git@github.com:stevzie/triple-s.git (standard SSH format)
- Working tree status: clean (only untracked files, no uncommitted changes to tracked files)
- Current branch: claude/visual-pdf-extraction-74dcQ
Additional context:
- The git remote URL is standard git@github.com: format (not a custom SSH alias)
- No uncommitted changes to tracked files — only untracked files present
- The crash happens immediately — no validation message is shown (e.g., "wrong repo" or "uncommitted changes"),
suggesting the error occurs during URL/session parsing before checks run
- /teleport as a slash command within a session is not recognized ("Unknown skill: teleport")
What Should Happen?
Session should be teleported to the CLI
Error Messages/Logs
ERROR Cannot read properties of undefined (reading 'match')
file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3012:14021
-EdY (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3012:14021)
-PY6 (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3012:14598)
- N7 (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:20892)
- DK (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:39412)
- OF (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:50099)
- MF (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:86680)
- D16 (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:85649)
- al (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:85471)
- qC (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:82239)
- P1 (file:///home/stevz/.nvm/versions/node/v22.17.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:283:6447)
Steps to Reproduce
claude --teleport session_01WbsHMFiY15pntac9pAueKe
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Not sure.
Claude Code Version
Claude Code version: 2.1.49
Platform
Anthropic API
Operating System
Other
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗