Repository navigation
docs(#674): correct resume cwd-mismatch comment (recoverable error, not exit-1 crash) - #675
Merged
Merged
Conversation
…not exit-1 crash Empirically verified ([email protected]): resuming a session from a different cwd does not crash the SDK. Sessions are namespaced by encoded cwd under ~/.claude/projects/, so a mismatched cwd yields a recoverable error_during_execution ("No conversation found with session ID") rather than an exit-1 process crash. Corrects the inline comment accordingly and points to #674 for the driver-owned, cwd-keyed resume normalization. Entire-Checkpoint: 6715d8cb02d1
This was referenced May 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Corrects the inline comment at
phase-executor.ts:650describing what happens when a Claude Code session is resumed from a different cwd. The old comment claimed it "crashes the SDK (exit code 1)."Why
Empirically verified against
@anthropic-ai/[email protected](probe details in #674): a cwd-mismatched resume does not crash. Claude Code namespaces session storage by encoded cwd —~/.claude/projects/<encoded-cwd>/<session-id>.jsonl— so resuming from a different directory can't locate the session and the SDK returns a recoverableerror_during_execution("No conversation found with session ID"). The phase still fails, so the guard's behavior is unchanged; only the explanation was wrong.Scope
Comment-only — no behavior change.
tsc --noEmitclean.The deeper refactor (driver-owned, cwd-keyed
canResumethat falls back to a fresh session instead of failing) is tracked in #674. This PR just stops the comment from misleading the next reader.Refs #674, #497.