TypeError: Cannot read properties of undefined — page 2
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 101–194
Ranked by community engagement (reactions weighted over comments).
- Headless stream-json crashes with 'Cannot read properties of undefined (reading input_tokens)' on default model (Opus 4.7)
- computer-use MCP silently returns "not_installed" for every app on native-installer CLI (NSMetadataQuery needs NSRunLoop.main)
- [BUG] Claude Code opens a new editor window and changes focus, instead of staying in the chat window.
- [BUG] Status line stream.speed null-deref masks real generation stalls on pre-first-token streams
- computer-use MCP: checkAccessibility error on macOS
- [BUG] Cannot read properties of undefined (reading 'speed')
- [Bug] Code mode crashes with "Cannot read properties of undefined (reading 'isPackaged')" in shellPathWorker.js on Node v24.14.0
- CLI v2.1.92: computer-use prebuilds missing from npm package
- [BUG] Cowork UI: Task responses vanish from chat after switching between tasks — backend completes, frontend drops render
- [Bug] Model capacity degradation after recent version release
- [BUG] Agent Harness Token Usage Error
- Crash: Cannot read properties of undefined (reading 'command') in isSearchOrReadCommand with custom ANTHROPIC_BASE_URL
- Dispatch tab not showing responses — TypeError: Cannot read properties of undefined (reading 'includes')
- [BUG] computer-use MCP crashes with registerEscape error
- [BUG] Dispatch responses processed but never render — TypeError crashes renderer (persists after v1.1.9493 patch)
- claude --resume crashes on Edit tool error results (missing null check in renderToolResultMessage)
- Claude Code Desktop: New sessions fail with "Setup script failed with exit code 1" — existing sessions unaffected
- Dispatch: responses generated but never rendered in UI (TypeError: includes on undefined)
- Dispatch channel stops generating responses after interacting with child sessions — messages marked Read but no reply
- I don't have enough context to generate a GitHub issue title from this message. This appears to be a fragment of a conversation about model contracts and interviews, but it doesn't describe a specific bug or feature request for Claude Code. Could you plea
- [Bug] Remote session URL not opening in mobile/web app, creates new session instead
- clade code 插件
- [BUG] `ELECTRON_RUN_AS_NODE=1` environment variable leaks from Claude Code into child processes, preventing Electron apps from starting
- [Bug] Anthropic API Error: Rate limit exceeded despite available quota
- [Bug] Session picker ignores Enter key when using --resume with session name
- [BUG] Claude Desktop crashes on startup when MCP config uses HTTP transport without 'command' field
- [BUG] Session resume crashes with "Cannot read properties of undefined (reading 'trim')"
- Claude Desktop 1.1.3963: SSE/URL MCP server crashes app on launch (TypeError in _splat logger)
- Bug Report
- [Bug] Task notifications causing incorrect forward progress tracking
- [Bug] Claude Code repeats completed work phases and loses context of prior modifications
- Cannot read properties of undefined (reading 'trim') when using --continue flag
- [Bug] Incorrect permission request classification as locale quoting vulnerability
- [Bug] Token usage tracking shows incorrect weekly usage percentage at week start
- [Bug] Custom skills and safety instructions not respected during task execution
- [Bug Report] Incomplete bug report submission
- [BUG] Claude Code hangs when Git branch comparison is triggered
- [BUG] Claude Code: Cannot run Electron apps on Windows - bash/electron compatibility issue
- [BUG]
- [BUG] Webview floods dev console with "Cannot read properties of undefined (reading 'toUrl')" errors after reopening workspace
- [BUG] Updated VSCode extension to 2.0.37 and getting TypeError
- [BUG] cc crashed
- Feature Request: `OnPromptIsError` Hook for Automated Error Context Fetching
- [BUG] Cannot read properties of undefined (reading 'split')
- JavaScript Syntax Error in Name Change Script at Line 112
- Undefined Property Error in Tool Use Rendering
- [BUG] Ctrl + F2 Crash Claude
- [BUG] Cannot read properties of undefined (reading 'map')
- [Bug] Remote Control: Cannot read properties of undefined (reading 'session_url') on orphaned sessions
- [BUG] VS Code extension 2.1.211: renderer crash (SIGBUS, code 135) opening projects with large session-transcript dirs
- VSCode plugin + CLI sharing ~/.claude/settings.json causes failures on Windows
- [BUG] Claude Desktop auto-restarts at 5-hour usage-limit boundary on Windows — onQuitCleanup(mcp-shutdown) TypeError on undefined isDestroyed
- [Bug] Spanish language text encoding: missing accents and tildes after recent update
- Crash in resume picker: TypeError: Cannot read properties of undefined (reading 'trim')
- [Bug] Paid Claude Max subscription not visible on claude.ai web despite active CLI authentication
- [BUG] Managed Settings page fails to load in Claude Desktop app (Monaco editor init crash)
- [BUG] Dispatch not responding on macOS — QueryClient crash + VM networking entitlement missing (v1.19669)
- [BUG] Claude Helper (Plugin) crashes with EXC_BREAKPOINT (Rust panic in PNG EXIF reader) —computer-use VM never starts
- Computer Use: TypeError 'Cannot read properties of undefined (reading checkAccessibility)' on request_access
- [BUG] Claude Code MCP computer-use Error: Cannot read properties[BUG]
- [BUG] Cannot read properties of null (reading 'split') crash in Edit tool result renderer when originalFile is null
- [BUG] Claude Desktop Code mode fails to start session — VM boots but frontend crashes with TypeError
- [Bug] MCP tools not available in spawned sub-agents via Agent tool
- [Bug] Voice Mode: "Voice not reachable due to Network connection" error despite active Pro account
- [Feature Request] Auto-rename terminal titles based on task context
- [Bug] Incomplete bug report submitted
- Subagent spawn crashes with 'Cannot read properties of undefined (reading trim)'
- UI crash: Cannot read properties of undefined (reading 'tasksTotal')
- [BUG] Include: Stack trace và context (Write tool to .claude/skills/)
- [BUG]
- [BUG] API Error: Cannot read properties of undefined (reading 'map') when AI responds without tool calls
- [BUG] claude and claude --version CLI commands are failing
- [BUG] Node 25.0.0 and `claude-code@2.0.19` don't work together
- Remote Control / session-sharing broken: disconnect crash, toggle failure, blank open-in-browser page
- /remote-control disconnect throws "Cannot read properties of undefined (reading 'session_url')"
- [BUG] remote-control command fails with "Cannot read properties of undefined (reading 'session_url')"
- Remote Control: disabling throws "Cannot read properties of undefined (reading 'session_url')" and leaves the session stuck as connected
- Remote Control: disabling from the Desktop app toggle always throws "Cannot read properties of undefined (reading 'session_url')"
- [BUG] Remote Control stuck in "failed to disconnect" loop until app restart
- [Bug] Remote control sessions dying with code 4090 worker supersession after 2026-07-17 update
- Remote control: disconnect throws "Cannot read properties of undefined (reading 'session_url')" after code 4090 takeover
- [BUG] Desktop app: /remote-control disconnect throws "Cannot read properties of undefined (reading 'session_url')" and leaves the toggle ON
- Remote Control: disconnect crashes (session_url undefined) → session accumulates → new connections fail (Session creation failed / Remote credentials fetch failed), one session stuck even after re-auth
- [Bug] CX Questions menu crashes with undefined property read error --- Session context remaining [99%] ---
- Unparseable MCP tool input is replayed as a {raw,len} wrapper which the model imitates; wrapper is then forwarded to the MCP server without schema validation
- 🐛 [Bug] Crash on Qwen3.6-27b: "Cannot read properties of undefined (reading 'startsWith')" in content renderer Description
- [BUG] Claude Desktop on Windows: `onQuitCleanup(mcp-shutdown)` TypeError still firing in v1.6608.2 — silent auto-restarts continue (refile of #55798)
- Grep tool crashes with 'Cannot read properties of undefined (reading map)' when using proxy
- Undefined Conversation History Causing Map Operation Error
- MCP OAuth: unhandled TypeError "Cannot read properties of undefined (reading 'map')" when a DCR response omits grant_types/response_types
- [BUG] Wasted paid session quota by ignoring explicit constraints and looping on broken scripts
- [BUG] Remote Control: 'session_url' undefined recurs per-project and survives restart — only fixed by recreating the project in a new folder
- Remote control bridge dies silently and doesn't auto-reconnect (requires full app restart)
- Resume crashes with 'Cannot read properties of null (reading split)'