Skip to content

Comments

fix(core): reject queued loop callbacks on cancel#14566

Open
neriousy wants to merge 3 commits intoanomalyco:devfrom
neriousy:fix/clean-up-loop-callbacks
Open

fix(core): reject queued loop callbacks on cancel#14566
neriousy wants to merge 3 commits intoanomalyco:devfrom
neriousy:fix/clean-up-loop-callbacks

Conversation

@neriousy
Copy link
Contributor

Issue for this PR

Closes #14565

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes a hang where concurrent callers waiting on SessionPrompt.loop() could wait forever if the session is cancelled (or the Instance is disposed) while callbacks are queued.

How did you verify your code works?

Run the added tests

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@neriousy neriousy changed the title fix: reject queued loop callbacks on cancel fix(core): reject queued loop callbacks on cancel Feb 21, 2026
@neriousy neriousy marked this pull request as draft February 21, 2026 15:30
@neriousy neriousy marked this pull request as ready for review February 21, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Queued SessionPrompt.loop() callers can hang forever on cancel/dispose

1 participant