Claude Code now exits with a structured JSON error, not just a printed message, when its working directory is unavailable at startup
If Claude Code starts up and finds that its current working directory is missing or unreadable, it now produces a structured result with the reason cwd_unavailable before exiting, instead of just printing an error message. This puts it in line with other startup failure reasons like temp_dir_unusable (temporary directory can't be used) and shell_tool_missing (required shell tool not found).
A structured, machine-readable failure result makes it easier for scripts, integrations, or tools that launch Claude Code to detect exactly why startup failed and react accordingly, rather than having to parse free-form error text.