Repository navigation
Labels
Description
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.
tool_progressactivities gain the statuscancelled, for a tool call stopped before it ran (feat(agui): report a cancelled tool call and conversation optimization cli#1722). Content:{"toolCallId": "tc1", "toolName": "Bash", "status": "cancelled", "message": ""}- New activity
optimization_status, keyedoptimization, written once the conversation has been optimized to fit the context window (feat(agui): report a cancelled tool call and conversation optimization cli#1722). Content:{"message": "Conversation optimized", "originalCount": 40, "optimizedCount": 12} - Tool approval: with a gated call in a batch, no call of that batch runs until every prompt is answered. That includes ungated calls and background jobs in the batch. Rejecting a later call leaves an earlier approval standing, so that call still runs. A single gated call, auto-accept mode and fully ungated batches behave as before (fix(agent): run a tool batch only once every approval is answered cli#1727).
Affected pages:
cli.md: the tool approval behavior.- The AG-UI output reference, which the CLI repo maintains at https://github.com/inference-gateway/cli/blob/main/docs/ag-ui-output.md and feat(agui): report a cancelled tool call and conversation optimization cli#1722 already updates. The docs site does not mention
tool_progressorACTIVITY_SNAPSHOTtoday, so this only needs work if the reference is mirrored here.
Acceptance Criteria
-
cli.mdstates 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.mdstates 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
cancelledstatus and theoptimization_statusactivity
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(agui): report a cancelled tool call and conversation optimization (
fix(agent): run a tool batch only once every approval is answered (#1727
edenreich commentedon Nov 7, 2026
@claude can you document this? use /ponytail:ponytail check if still relevant first.
inference-gateway-maintainer commentedon Nov 7, 2026
Claude finished @edenreich's task in 2m 39s —— View job •
docs/issue-1110-20261107-0127• Create PR ➔Done - PR #1113
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.cli.mdtool approval behaviorlint:md,format:check,buildall passWhat changed
New
#### A batch waits for every promptsubsection underApproval Workflowincli.md: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.Tool approved: <tool>while the next prompt is open.RequestApproval,AskUserQuestion) are unaffected.Not done (third acceptance criterion)
The
cancelledtool status and theoptimization_statusactivity 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.mdonly has a non-exhaustive activity-type summary table that does not listtool_progresseither, 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
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.9.24 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀