Skip to content

fix(acp): gracefully clean the queue on interrupt to stop#3009

Closed
cenk1cenk2 wants to merge 1 commit intoolimorris:mainfrom
cenk1cenk2:patch-9
Closed

fix(acp): gracefully clean the queue on interrupt to stop#3009
cenk1cenk2 wants to merge 1 commit intoolimorris:mainfrom
cenk1cenk2:patch-9

Conversation

@cenk1cenk2
Copy link
Copy Markdown
Contributor

@cenk1cenk2 cenk1cenk2 commented Apr 9, 2026

Description

Currently, there is a race condition on interrupting an ACP request, which I think was introduced with v19+.

So the flow is something like as follows.

  • You interrupt a tool request in the middle with stop.
  • Prompt immedeately becomes available, you can send a new prompt, nothing happens.
  • You press send again, the hidden conversation surfaces out.
  • But all the tool requests and things are not catched, so it is in a limbo state.

AI Usage

Related Issue(s)

Screenshots

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I confirm that this PR has been majority created by me, and not AI (unless stated in the "AI Usage" section above)
  • I've run make all to ensure docs are generated, tests pass and StyLua has formatted the code
  • (optional) I've added test coverage for this fix/feature
  • (optional) I've updated the README and/or relevant docs pages

@cenk1cenk2 cenk1cenk2 force-pushed the patch-9 branch 5 times, most recently from 0b620e5 to 80d8960 Compare April 9, 2026 16:16
fix: update message

fix: .

fix: .

fix: .

fix: add guard for prompt

fix: update

fix: .

fix: update

fix: .
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