TypeError: Cannot read properties of undefined
A property access on undefined or null crashed the CLI.
194 issues · 9 open · 185 resolved (95%) · first seen Feb 24, 2025
First response · local
What to do now
Most likely: The local Claude Code process crashed while parsing or executing.
- Record the Claude Code version and the first stack frame before restarting.
- Try a fresh session with the same minimal input to distinguish corrupted state from a repeatable crash.
- Preserve logs and compare reports from the same version before downgrading.
These are conservative triage steps, not an official Anthropic fix. Use the issue and workaround evidence below before making a destructive configuration change.
Is this getting better or worse?
This class of problem is converging. 32 new reports in the last 90 days vs 87 in the 90 before — -63%. The open backlog peaked at 33 in 2026-03 and sits at 9 today.
Derived by counting each matching issue from its creation date until it closed. First-party
computation over the anthropics/claude-code tracker — the trend is not published
anywhere upstream.
Which builds report this
102 of these reports name the Claude Code build they were running, spanning 53 releases. Heaviest reporters:
- Claude Code v2.1.74
- Claude Code v2.1.87
- Claude Code v2.0.76
- Claude Code v2.1.20
- Claude Code v2.1.220
- Claude Code v2.1.209
- Claude Code v2.1.78
- Claude Code v2.1.219
Report volume, not a defect count: an issue can mention a build without that build having caused the failure. Versions come from the version string in the bug-report template, matched against real published tags.
Do these get fixed?
Median time to close is 17 days across 185 closures. Of the 185 closures with a recorded reason, 28% were closed as completed and 134 as not-planned or duplicate. The most recent completed fix landed in 2026-08.
Workarounds reported by the community
49 of these issues post a workaround someone says worked. The highest-engagement ones:
- [BUG] Chat history not persisting for projects on mapped drives / OneDrive
- …al/Shell VS Code integrated terminal Additional Information Workaround Open the project using a local path instead of the mapped drive: bash Instead of: code O:\OneDrive\Projects\myproject Use: code C:\Users\username\One…
Found in the description of #14088 · still open - [BUG] Cowork Dispatch not responding on macOS
- …t. This is fully on their end to fix, not something you can work around on your machine. Worth including all of this in your GitHub issue — it's a clean, reproducible root cause that their team can act on directly. Error…
Found in the description of #40283 · resolved - [BUG] Claude Desktop 1.0.734: MCP servers fail to initialize - 'Cannot read properties of undefined (reading cmd)'
- …rsion) - Any custom MCP servers regardless of configuration Workaround Downgrade to version 1.0.332: PowerShell: Additional Context - This bug was discovered while deploying MCP servers to production - Version 1.0.734 is…
Found in the description of #11688 · resolved - Remote Control never connects: "Cannot read properties of undefined (reading 'session_url')" on desktop app
- Follow-up on the workaround mentioned in my earlier comment ("start a new session via from the terminal"). I tried this workaround today and hit a new failure mode: 1. Started a brand-new session from the mobile side (Cl…
Found in the thread of #78933 · resolved - [BUG] Remote Control "disconnect" always fails with "Cannot read properties of undefined (reading 'session_url')" (toggle-off path missing null guard)
- …side sessions get reaped, since that's the part users can't work around.
Found in the thread of #77915 · resolved
Excerpts are quoted from the linked issue so you can judge relevance before opening it. Threads that only ask for a workaround, or report that there is none, are excluded. These are community suggestions, not official guidance from Anthropic — read the full thread before applying one.
Matching issues 1–100
Ranked by community engagement (reactions weighted over comments).
- [BUG] CC crashes with new release of Nodejs v25
- [BUG] Chat history not persisting for projects on mapped drives / OneDrive
- [BUG] Cowork Dispatch not responding on macOS
- [BUG] Claude Desktop 1.0.734: MCP servers fail to initialize - 'Cannot read properties of undefined (reading cmd)'
- Remote Control never connects: "Cannot read properties of undefined (reading 'session_url')" on desktop app
- API Error: Cannot read properties of undefined (reading...
- [BUG] Remote Control "disconnect" always fails with "Cannot read properties of undefined (reading 'session_url')" (toggle-off path missing null guard)
- [BUG] Cannot read properties of undefined (reading 'trim') when resuming session
- Claude Code CLI: Node.js v25 Incompatibility - TypeError "prototype" is undefined in cli.js
- [BUG] [CRITICAL] Cowork Dispatch responses never render in desktop UI — backend processes successfully but TypeError crashes renderer
- Claude Desktop 1.1.4088.0 — Multiple Critical Bugs on Windows 11 25H2 (Build 26200)
- [BUG] Agent/Explore subagent crashes with "Cannot read properties of undefined (reading 'input_tokens')"
- Concurrent sub-agents fail to spawn | Pressing `Esc` throws “Cannot read properties of undefined (reading 'message')”
- computer-use MCP: Cannot read properties of undefined (reading 'registerEscape')
- [BUG] When resuming claude chats - TypeError: Cannot read properties of undefined (reading 'includes')
- [Bug] - ⎿ Interrupted · What should Claude do instead?
- Claude Desktop v1.1.4328: HTTP-type MCP servers crash app on startup with TypeError in logger
- Undefined Property Access in Tool Use Progress Rendering
- Cant login OAuth error: Cannot read properties of undefined (reading 'digest')
- [BUG] Computer Use MCP: Cannot read properties of undefined (registerEscape / checkAccessibility)
- computer-use MCP fails on macOS Tahoe 26 — "Cannot read properties of undefined (reading 'checkAccessibility')"
- [Feature Request] Immediate notification when Claude awaits user input
- [BUG] This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
- [BUG] Will not run on Node version 24
- [BUG] /remote-control crashes after hibernation: Cannot read properties of undefined (reading 'session_url')
- [BUG] /fork crashes with 'match' error and --resume freezes input on Windows
- [BUG] Claude Code win desktop app - Code fence input box drops pasted lines with CRLF line endings (Windows regression in v1.6259.1)
- [BUG] ERROR Cannot read properties of null (reading 'alwaysThinking')
- [BUG] TypeError: Cannot read properties of undefined (reading 'split') when using Repomix MCP server
- [FEATURE] Remote Control: failure-resistant session model — survive hibernation, auto-reattach, mobile-side recovery
- TypeError when resuming session: Cannot read properties of undefined (reading 'trim')
- [Bug] Missing Claude Code Analytics
- [BUG] TypeError: Cannot read properties of undefined (reading 'map')
- [Bug] Voice mode fails with file path containing spaces and special characters
- [BUG] Agent Teams crashes with "Cannot read properties of undefined (reading 'length')"
- [Bug] OAuth token revoked error persists after /login on macOS after credential revocation
- [BUG] Cannot read properties of undefined (reading 'map') - Intermittent JavaScript error in client
- [BUG]
- Computer use in CLI fails: @ant/computer-use-swift native module missing from npm package
- [BUG] computer-use: "Cannot read properties of undefined (reading 'checkAccessibility')" on request_access
- [Bug] Chat history not displayed after closing external editor with Ctrl+G until Enter is pressed
- [BUG] When using vscode-claude, I encounter this error when sending any message to Claude: Error rendering content: Cannot read properties of undefined (reading 'trim').
- [BUG] Issue with Atlassian MCP
- [BUG] Claude code CLI no longer works, crashes on startup
- [Bug] Remote Control connection fails with "Cannot read properties of undefined (reading 'session_url')" on Windows 11
- [BUG] Claude Desktop App keeps crashing
- [BUG] macOS 26.4 Tahoe beta + MCP computer-use checkAccessibility crash
- [BUG] Pressing ESC occasionally kills the session and prevents further continuation
- Remote Control sessions disconnect over time and cannot be reconnected; /remote-control throws "failed to disconnect: Cannot read properties of undefined (reading 'session_url')"
- Remote Control (server mode): 'failed to disconnect' — TypeError reading 'session_url'
- [BUG] Subprocess crash surfaces as "Interrupted · What should Claude do instead?" with no actionable error
- Slash command/skill inputs not collapsible, blocks view of response
- Code tab unresponsive on macOS Tahoe 26.3 — shellPathWorker crash
- [BUG] VS Code extension crashes while rendering chat content: Cannot read properties of undefined (reading 'trim')
- Claude Desktop v1.1.4088 crashes on launch with 2+ MCP servers configured
- [BUG] API Error: Cannot read properties of undefined (reading map)
- [BUG] CLI crashes when rejecting permission-required tool use within Task tool
- Undefined Property Access in Tool Use Rendering
- [BUG] Crash: undefined is not an object (evaluating 'H.command') in isSearchOrReadCommand on Windows
- [BUG] Webview: Monaco editor worker loading fails, triggers "Unhandled case" banner and interrupts session
- Computer-use MCP crashes: checkAccessibility / registerEscape undefined
- Computer use MCP server: checkAccessibility undefined on macOS 26 (Tahoe)
- Dispatch panel doesn't render results despite successful completion
- [BUG] Cloud sessions fail to load — "Could not load cloud sessions" + infinite spinner
- [Bug] Anthropic API Error: Overloaded
- [BUG] --teleport fails with Cannot read properties of undefined (reading 'match')
- [BUG] Diff preview not showing for Edit tool on certain file types
- [BUG] TypeError: Cannot read properties of undefined (reading 'startsWith')
- [BUG] Can not login
- Crash on Double ESC Keypress (accessing conversation history) in Claude Code CLI
- /remote-control fails to disconnect: Cannot read properties of undefined (reading 'session_url')
- Remote Control: crash on /compact ('Cannot read properties of undefined (reading session_url)') — session vanishes from mobile until new desktop activity
- [BUG] Windows 10: "Interrupted" error on every restart - Cannot read properties of null (reading 'effortLevel')
- [Bug Report: Unable to process - no bug report provided]
- [Bug] Prompt execution interrupted immediately upon submission
- Remote control doesn't work
- [BUG] Claude Code in Desktop App silently fails — `shellPathWorker.js` crashes on `electron.app.isPackaged` (macOS 26.3.1, M4 Pro)
- computer-use MCP server: checkAccessibility/registerEscape undefined errors on initialization
- [Bug] Computer Use tool fails with "Cannot read properties of undefined" on initialization
- Built-in computer-use MCP: checkAccessibility undefined on macOS Tahoe
- [BUG] computer-use MCP server fails with checkAccessibility error on macOS 26 Tahoe
- Dispatch session responses not rendering — TypeError: Cannot read properties of undefined (reading 'includes')
- [BUG] Claude Desktop 2.1.49 crashes on launch when any `type: "http"` MCP server is configured
- [Claude Desktop] App crash-loops on relaunch after quitting during onboarding
- [BUG] Maybe js call 's bug?
- [Bug] Incorrect model routing: Sonnet being used instead of requested Opus model
- [BUG] Claude Code CLI: TypeError - codePointAt() Called on Undefined Segment
- [BUG] in text rendering/measurement code that doesn't properly handle edge cases in string segmentation
- [BUG] in claude sdk (typescript or python or `-p`), MultiEdit failed due to "Cannot read properties of undefined (reading 'map')"
- [BUG] API Error: Cannot read properties of undefined (reading 'filter')
- Remote Control (Windows desktop): disconnect crash permanently sticks the toggle; all sessions now fail with "Remote credentials fetch failed"
- VSCode extension: webview fails to render sessions — Cannot read properties of undefined (reading 'toUrl') in asBrowserUri, Monaco workers fail, process "exited with code 1"
- [BUG] Claude Code crashes on startup with TypeError: Cannot read properties of null (reading 'history') when .claude.json contains project entries with null array fields
- [BUG] CLI crashes (exit code 1) on unhandled McpError -32001 AbortError during tool_use
- [BUG] False positive Usage Policy refusal when reading project files for a Phoenix LiveView bug repro
- [BUG] TypeError: Cannot read properties of null (reading 'alwaysThinking') on new session launch
- Resume crash: Cannot read properties of null (reading 'split') in diff renderer when conversation contains file creation results
- [BUG] CLI/extension version mismatch causes silent crash surfaced as "Interrupted · What should Claude do instead?"
- [BUG] claude --resume crashes with "Cannot read properties of null (reading 'split')" when session contains Edit results with originalFile: null
- [BUG] TypeError: Cannot read properties of null (reading 'split') in renderToolResultMessage