Skip to content

[DOCS] AG-UI: cancelled tool status and optimization_status activity #1110

Closed

Description

@edenreich

Summary

The CLI's AG-UI output and its tool approval behavior change in inference-gateway/cli#1722 and inference-gateway/cli#1727. Neither PR has merged yet, so this should land with or after them.

Affected pages:

Acceptance Criteria

  • cli.md states that no call of a batch with a gated call runs until every prompt is answered, including ungated calls and background jobs in that batch
  • cli.md states that rejecting a later call does not undo an earlier approval
  • If the AG-UI output reference is mirrored in the docs site, it lists the cancelled status and the optimization_status activity

Activity

  1. added
    documentation
    on Nov 6, 2026
  2. added theissue type on Nov 6, 2026
  3. moved this to Todo in 2026on Nov 6, 2026
  4. edenreich commented on Nov 7, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check if still relevant first.

  5. inference-gateway-maintainer commented on Nov 7, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 2m 39s —— View job • docs/issue-1110-20261107-0127 • Create PR ➔


    Done - PR #1113

    • Relevance check: both upstream PRs merged 2026-11-06 (feat(agui): report a cancelled tool call and conversation optimization, fix(agent): run a tool batch only once every approval is answered). Still relevant and accurate.
    • Checked whether the AG-UI output reference is mirrored here - it is not (see below)
    • Updated cli.md tool approval behavior
    • Validated: lint:md, format:check, build all pass
    • Committed and opened PR

    What changed

    New #### A batch waits for every prompt subsection under Approval Workflow in cli.md:

    • No call of a batch with a gated call runs until the last prompt is answered - including ungated calls (Read, TodoWrite) and a background job in the same batch. Once the round is decided the cleared calls still overlap under the same concurrency limit, results flushed in tool-call order.
    • Rejecting a later call does not undo an earlier approval - that call still runs.
    • A call approved in a round that never completes (failed approval, interrupted session) does not run and no longer lingers in the chat as approved. The status reads Tool approved: <tool> while the next prompt is open.
    • A single gated call, auto-accept mode and fully ungated batches are unchanged, and prompts a tool opens during execution (sandbox grants, RequestApproval, AskUserQuestion) are unaffected.

    Not done (third acceptance criterion)

    The cancelled tool status and the optimization_status activity are not documented here. That criterion was conditional on the AG-UI output reference being mirrored in this repo, and it is not - it lives in the CLI repo. cli.md only has a non-exhaustive activity-type summary table that does not list tool_progress either, so adding one activity to it would be inconsistent rather than useful. Say the word if you want the full reference mirrored here, that is a bigger, separate job.

    I did not re-read the upstream code to confirm the behavior beyond the merged PR descriptions.

    | Branch

  6. moved this from Todo to In progress in 2026on Nov 7, 2026
  7. moved this from In progress to QA in 2026on Nov 7, 2026
  8. moved this from QA to Done in 2026on Nov 7, 2026
  9. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions