Skip to content

1.45.1: don't offer background sessions whose folder is gone; say so when a session's folder is missing - #64

Merged
writingdeveloper merged 2 commits into
mainfrom
fix/missing-folder
Oct 23, 2026
Merged

writingdeveloper merged 2 commits into
mainfrom
fix/missing-folder

Conversation

@writingdeveloper

Copy link
Copy Markdown
Owner

Reported:

customer support response clarification에서 세션을 열지 못했습니다 — Could not open session in C:\Users\…\3d-asset-studio: Cannot create process, error code: 267

Cause, confirmed on the reporter's PC: claude agents --json --all lists background session 09644674 ("customer support response clarification"), state blocked, started in July in …\GitHub\3d-asset-studio. That folder no longer exists. DevDeck spawns claude attach <id> with the session's folder as the working directory, and Windows refuses a missing folder with ERROR_DIRECTORY (267). The 1.44.0 listing checked that the folder was inside an allowed folder, but not that it still existed.

Fix:

  • agents:background drops entries whose cwd is not an existing directory.
  • cockpit:open checks the project folder before spawning. If it is gone, the answer is OPEN_FOLDER_MISSING and no terminal is started. The opener shows "its folder no longer exists: (deleted or moved)", in 4 languages, instead of the raw Windows error code.
  • Older hosts are unaffected: they keep returning their own error string, which is shown as before.

Tests:

  • New: a missing folder is refused with that reason and no pty.create. The background listing keeps the session in an existing folder and drops the one in a deleted folder.
  • The existing open tests used project paths that never existed (<cwd>/allowed-root). They now use real temp folders, removed afterwards.
  • vitest: 1528 passed.
  • tsc clean.
  • qa:cockpit-tools: its background-session check passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_016NLGwiBY5uEivJqERQzcoY

writingdeveloper and others added 2 commits October 22, 2026 21:34
… why

Reported: "Could not open session in C:\...\3d-asset-studio: Cannot create process, error
code: 267". `claude agents --json --all` still listed a background session from July
(state blocked) whose folder had been deleted; attaching starts in that folder, and
Windows refused (ERROR_DIRECTORY). agents:background now drops entries whose cwd is not a
directory, and cockpit:open answers OPEN_FOLDER_MISSING for any session whose folder is
gone, which the opener words ("its folder no longer exists: <path>").

The open tests named project folders that never existed; they now use real temp folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016NLGwiBY5uEivJqERQzcoY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016NLGwiBY5uEivJqERQzcoY
@writingdeveloper
writingdeveloper merged commit 0b434ee into main Oct 23, 2026
16 checks passed
@writingdeveloper
writingdeveloper deleted the fix/missing-folder branch October 23, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant