Skip to content

Bug: Permissioned tools in batched calls run out of order #4094

Closed

Description

@riatzukiza

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:

  1. In one turn, request tools in order: A (no permission), B (needs permission), C (no permission, expects B to have run).
  2. Approve permission for B.
  3. 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

  1. github-actions commented on Nov 8, 2025

    @github-actions
    Contributor

    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.

  2. self-assigned this
    on Nov 8, 2025
  3. rekram1-node commented on Nov 8, 2025

    @rekram1-node
    Contributor

    Relates to:

    #2882
    #3856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions