You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Permissioned tools in batched calls run out of order #4094
Summary:
When multiple tools are called in one batch and one requires permission, non-permissioned tools execute first while the permissioned tool is delayed. This changes the execution order from what the model requested and breaks assumptions about sequencing.
Steps:
In one turn, request tools in order: A (no permission), B (needs permission), C (no permission, expects B to have run).
Approve permission for B.
Observe execution order.
Actual:
A runs.
C may run before B.
B runs only after approval.
Effective order: A, C, B.
Expected:
Either:
preserve requested order (block tools after B until B is resolved), or
define batched calls as parallel but expose actual order/status so the model can reason correctly.
Impact:
Confusing for the model and user.
Breaks dependency assumptions between tools.
Wastes tokens as the model recovers from unexpected state.
Activity
github-actions commentedon Nov 8, 2025
This issue might be a duplicate of existing issues. Please check:
The most relevant is #3944 which directly deals with permission-related problems in concurrent/parallel tool execution scenarios.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 8, 2025
Relates to:
#2882
#3856