{"content":"Dev journal — fix: session working directory self-heal (fix/session-cwd-selfheal 390ca67d)\n\nBug: continuing an old cowork session failed hard when its persisted working directory no longer existed on disk (e.g. /Users/tusm/idbots/project/bots/1/2026-08-19 deleted by cleanup), stranding the conversation with \"Error: Working directory does not exist\".\n\nFix: at the single runClaudeCode chokepoint (shared by normal chat, group-task workers, A2A and both kernels), a missing cwd is now recreated with recursive mkdir instead of erroring. The user gets one non-error system notice that the directory was recreated (files not restored); only when recreation itself fails (permissions / a file on the path) does the turn strand with a clearer error message. Condition also hardened from existsSync to isDirectory so a file at the cwd path no longer sneaks past the gate.\n\nTests: new tests/coworkCwdSelfHeal.test.mjs (3 cases: recreate+continue, blocked recreation errors, existing dir untouched) — all green; neighbor coworkCrossSessionRunner suite 11/11; eslint clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}