Skip to content

fix: dismiss stale pending asks#36

Draft
adityavkk wants to merge 1 commit into
nicobailon:mainfrom
adityavkk:fix/stale-pending-asks
Draft

fix: dismiss stale pending asks#36
adityavkk wants to merge 1 commit into
nicobailon:mainfrom
adityavkk:fix/stale-pending-asks

Conversation

@adityavkk

Copy link
Copy Markdown

Summary

  • dismiss pending asks when a reply delivery fails because the original sender session is gone
  • allow reply to target a specific pending ask by replyTo, matching the existing tool schema/docs
  • add unit and broker-backed integration coverage for stale ask cleanup

Fixes #34.

Behavior

When replying to a pending ask returns Session not found, pi-intercom now removes that ask from ReplyTracker and includes a clear note in the tool result. Other delivery failures still preserve the pending ask for retry.

Tests

npm test
# 40 pass, 0 fail

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.

Pending asks become undismissable after sender disconnects

1 participant