Skip to content

prevent amnesia when we stop claude sessions in between#2848

Merged
abose merged 3 commits intomainfrom
ai
Apr 26, 2026
Merged

prevent amnesia when we stop claude sessions in between#2848
abose merged 3 commits intomainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented Apr 25, 2026

No description provided.

abose added 3 commits April 25, 2026 23:08
The PreToolUse hook intercepting Claude's Edit tool was dropping the
replace_all flag, so buffer/plan edits only ever replaced the first
occurrence even when Claude requested replace_all=true.
cancelQuery, the abort catch in the query loop, and the error catch
all nulled currentSessionId, so the next prompt started a fresh SDK
session and Claude saw none of the prior turn — looking like amnesia
after a Stop. Aborts only leave an interrupt marker in the session
log, and most errors are transient (network, rate limit), so keep the
session ID and let the next prompt resume; a truly broken session
will surface its own fresh error.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit 555436a into main Apr 26, 2026
13 of 21 checks passed
@abose abose deleted the ai branch April 26, 2026 07:13
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