Skip to content

fix: apply approve & remember to parallel tool calls - #707

Merged
ericdallo merged 2 commits into
editor-code-assistant:masterfrom
rschmukler:rs/parallel-approvals-fix
Nov 24, 2026
Merged

ericdallo merged 2 commits into
editor-code-assistant:masterfrom
rschmukler:rs/parallel-approvals-fix

Conversation

@rschmukler

@rschmukler rschmukler commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

The approval of each call in a response was decided before any ran, so approving & remembering one call left the next ones of the same tool asking. Calls already waiting in another chat of the session, like a subagent, kept waiting too.

  • Save the remembered approval before approving the call, then approve the session's waiting calls it now covers.
  • Check the remembered approvals again before a call asks, and once more right after it starts waiting.
  • Choose and write a call's new status in one swap, so of two events at the same time only one changes it.

Only calls asking because of the config rules are covered: a call a preToolCall hook asked for still asks.

This wasn't hit before tool calls ran in parallel because they were always run sequentially anyway.

  • I added a entry in changelog under unreleased section.
  • This is not an AI slop. (Please take a human time to write a comprehensive context about the problem, alternatives and rationale)

The approval of each call in a response was decided before any ran, so
approving & remembering one call left the next ones of the same tool
asking. Calls already waiting in another chat of the session, like a
subagent, kept waiting too.

- Save the remembered approval before approving the call, then approve
  the session's waiting calls it now covers.
- Check the remembered approvals again before a call asks, and once
  more right after it starts waiting.
- Choose and write a call's new status in one swap, so of two events
  at the same time only one changes it.

Only calls asking because of the config rules are covered: a call a
preToolCall hook asked for still asks.
@rschmukler
rschmukler force-pushed the rs/parallel-approvals-fix branch from e48a028 to ff563b9 Compare November 23, 2026 19:58

@ericdallo ericdallo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you

@ericdallo
ericdallo merged commit b015b34 into editor-code-assistant:master Nov 24, 2026
9 checks passed
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.

2 participants