Repository navigation
Description
Part of #1396
Summary
The less of the wire that is ours, the less every client has to learn. AG-UI froze its 1.0 specification (spec/1.0/schema.json in ag-ui-protocol/ag-ui), and it now covers most of what the CLI carries in CUSTOM events and in app frames of its own: interrupts for approvals and questions, usage for token counts, state and activity events for progress, and RunAgentInput for what a client sends. Move onto the standard ones before the opentask extension and the desktop app adopt the daemon binding, so they implement the contract once.
CUSTOM is a legitimate part of AG-UI, the extension point for an application's own events. It stays the last resort, used when the protocol has nothing that fits.
| Today | Standard AG-UI |
|---|---|
CUSTOM approval_request, the approval_response frame, CUSTOM approval_resolved |
RUN_FINISHED with outcome interrupt and an interrupt with reason: "tool_call" and the toolCallId. The answer is a resume entry on the next run |
CUSTOM user_question_request, the user_question_response frame |
An interrupt with reason: "input_required" and a responseSchema |
CUSTOM computer_use_paused / computer_use_resumed, the computer_use_control frame |
Stopping the run, which ends with outcome cancelled, and continuing with a new run on the thread |
CUSTOM token_usage |
usage on RUN_FINISHED and RUN_ERROR, and the state key usage while the run is open |
CUSTOM background_tasks |
The state key backgroundTasks |
CUSTOM screen_recording |
The state key screenRecording |
CUSTOM agent_status, written before RUN_STARTED |
ACTIVITY_SNAPSHOT after RUN_STARTED |
CUSTOM judge_verdict |
ACTIVITY_SNAPSHOT |
CUSTOM queued_message |
A text message with the role the note has in the conversation |
The user_message frame and its attachments |
A frame that carries a RunAgentInput, with files as content parts of the user message |
MESSAGES_SNAPSHOT sent outside a run |
MESSAGES_SNAPSHOT inside a run |
What stays ours, because AG-UI has nothing for it: the handshake, new_session and resume_conversation, the interrupt frame that stops a run, the panel requests and their replies, and the browser commands.
Acceptance Criteria
- The AG-UI Go SDK is bumped to a version that has
usage, the interrupt outcome and the 1.0 outcome set, and thecancelledoutcome is no longer written as a literal - A tool call that needs approval ends the run with outcome
interrupt. The resume entry approves it withresolvedor declines it withcancelled, and the next run writes theTOOL_CALL_RESULTfor the sametoolCallId - A question to the user is an interrupt with
reason: "input_required"and aresponseSchema, answered by a resume entry'spayload - A resume answers every open interrupt of the run, as the specification requires, and a resume that misses one is refused with
RUN_ERROR - The registry keeps the first resume for an interrupted thread and drops the later ones. The thread's other clients learn the answer from the
RUN_STARTEDthat follows - Pausing computer use stops the run and continuing starts a new one. The
computer_use_controlframe and the two CUSTOM events are removed -
RUN_FINISHEDandRUN_ERRORcarryusage. Whatusagehas no field for, such as cost and the context window, stays inresult - State is one object.
STATE_SNAPSHOTcarries every key (todos,usage,backgroundTasks,screenRecording) andSTATE_DELTApatches one, so a change to one key no longer replaces the others - A client starts and continues a run with a frame that carries a
RunAgentInput.messagesholds the new messages only, since the worker owns the history - No event is written before
RUN_STARTEDor after the run's terminal event - Every event validates against the upstream
spec/1.0/schema.jsonin a test - Legacy
--format jsonoutput is unchanged -
docs/ag-ui-output.mdanddocs/browser-extension-protocol.mddescribe the new contract, andprotocol_versionis raised
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Sep 30, 2026
@infer can you work on this? use /domain-driven-design /go /go-concurrency /clean-architecture /clean-code
inference-gateway-maintainer commentedon Sep 30, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1439
The agent hit the job's time limit before finishing, so it was stopped to salvage its work. Its committed changes were pushed; the draft pull request is linked above.
The validator dependency is added. Let me run the agui package tests.
Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 38m 40sTokens: 19,782,062 in · 150,243 out · 19,932,305 total (141 requests)
Tool calls: 199 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
fix: resolve #1419
fix(agui): finish the AG-UI 1.0 migration for telegram, one-shot resu…
feat(browser): report the extension's state to the daemon's clients (#…
inference-gateway-releaser commentedon Oct 1, 2026
🎉 This issue has been resolved in version 0.221.0 🎉
The release is available on:
Your semantic-release bot 📦🚀