Skip to content

Guard concurrent blocking asks#48

Open
davidmoshal wants to merge 1 commit into
nicobailon:mainfrom
davidmoshal:issue-47-single-flight-guard
Open

Guard concurrent blocking asks#48
davidmoshal wants to merge 1 commit into
nicobailon:mainfrom
davidmoshal:issue-47-single-flight-guard

Conversation

@davidmoshal

Copy link
Copy Markdown

Refs #47.

This is the minimal fallback fix for concurrent blocking intercom({ action: "ask" }) calls. It preserves the current single-flight behavior, but turns a competing concurrent ask into a structured busy tool error instead of allowing Already waiting for a reply to terminate Pi.

Validation:

  • Added regression coverage for concurrent ask crash safety.
  • Added matching supervisor concurrency coverage.
  • Ran npm test locally: 38 passing tests.

This PR is an alternative to the keyed reply waiter approach; the maintainer should choose one direction rather than merging both as independent fixes.

@davidmoshal davidmoshal marked this pull request as ready for review June 24, 2026 01:22
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