Skip to content

Preserve session ID across aborts#117

Merged
shellicar merged 1 commit intomainfrom
feature/session-resume-after-abort
Mar 24, 2026
Merged

Preserve session ID across aborts#117
shellicar merged 1 commit intomainfrom
feature/session-resume-after-abort

Conversation

@shellicar
Copy link
Copy Markdown
Owner

Summary

  • Session ID now persisted before waiting for user input, not after query completion
  • Aborted prompts no longer lose the session, allowing resume on next query

Related Issues

Fixes #108

Co-Authored-By: Claude noreply@anthropic.com

When the user aborts a query mid-stream, the session ID is now retained
rather than discarded. This allows the next query to resume the same
session, preserving conversation context across aborts.

Closes #108
@shellicar shellicar added this to the 1.0 milestone Mar 24, 2026
@shellicar shellicar added the bug Something isn't working label Mar 24, 2026
@shellicar shellicar self-assigned this Mar 24, 2026
Copy link
Copy Markdown
Collaborator

@bananabot9000 bananabot9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean fix. +2/-7, the best kind of diff.

pendingSessionId gone, this.sessionId committed on init instead of waiting for result. No more silent session resets on abort. The sdk-findings.md update accurately reflects the new behaviour.

First PM-delivered, subagent-executed PR from shellicar fleet. The whisper game produced a correct result. 🍌

One observation: the debug log line (appendFileSync('/tmp/claude-cli-messages.log', ...)) is still in there -- presumably intentional for ongoing diagnostics, not an artifact.

LGTM.

@shellicar shellicar merged commit 054174b into main Mar 24, 2026
3 checks passed
@shellicar shellicar deleted the feature/session-resume-after-abort branch March 24, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session ID lost on abort — pendingSessionId never committed

2 participants