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
[FEATURE] Report the browser extension's state to the daemon's clients #1403
A client cannot tell whether the browser extension is attached. It finds out when a Browser tool fails with "no browser extension connected". Report the state of the extension connection, so the desktop app can show it.
The extension connection belongs to the daemon's ExtensionRelay, and session workers never see it, so the daemon reports its state. The relay already raises BrowserExtensionStatusEvent, and the daemon builds it without a notifier.
The state belongs to a connection and to no run, and AG-UI has no event outside a run. That makes it one of the few frames that stay ours.
Pausing browser use needs nothing of its own. A client stops the run, which ends with outcome cancelled, and continues with a new run on the thread. Computer use moves to the same path in #1419, so both are handled the same way with standard AG-UI.
Acceptance Criteria
The daemon sends the app frame {"type":"browser_extension_status","connected":true|false,"extension_version":"...","protocol_version":1} to every client that is not the extension, once when the client connects and again whenever the extension attaches or detaches
The browser context owns the frame next to the rest of its wire vocabulary, and internal/protocols/agui stays free of client names
No frame and no CUSTOM event is added for pausing or resuming browser use
docs/browser-extension-protocol.md documents the status frame
Tests cover the frame for a client that connects before and after the extension, and the frame on attach and detach
changed the title [-][FEATURE] Browser-use status and pause/resume events, mirroring computer use[/-][+][FEATURE] Report the browser extension's state to the daemon's clients[/+]on Sep 30, 2026
The daemon now reports the browser extension connection's state to its clients as the browser_extension_status app frame: once when a client connects (its first frame names the state at that moment) and again whenever the extension attaches or detaches. The frame carries {"type":"browser_extension_status","connected":true|false,"extension_version":"...","protocol_version":1} exactly as the acceptance criteria specifies, with extension_version read from the attached extension's hello and traveling only while attached.
What changed:
internal/browser/infrastructure/extension_wire.go - the frame name, its own protocol_version constant (1, independent of the handshake's), and the frame builder live here next to the rest of the browser wire vocabulary.
internal/browser/infrastructure/extension_relay.go - the relay (which the daemon hosts) now tracks the non-extension connections on the binding and delivers the frame to them on extension attach and detach; a joining client is framed with the current state at once. Deliveries stay under the relay's state mutex, so each client's frames leave in state-change order.
internal/protocols/agui/binding.go - added DialConfig.HelloAttrs, the other hello fields a dialing client declares (read back with HelloAttr). The package stays free of client names, as its README requires.
docs/browser-extension-protocol.md - new "Browser extension status" section documenting the frame, and noting there is deliberately no frame or CUSTOM event for pausing or resuming browser use (clients stop the run and continue with a new run on the thread, the path [TASK] Refactor replace custom events and frames with standard AG-UI #1419 gives computer use).
Tests (all green with -race, plus task precommit:run passing):
A client connecting before the extension gets the disconnected state at its join, then the connected frame with the extension's version on attach, and the disconnected frame on detach.
A client connecting after the extension gets the current state at its join, while the extension itself never receives the frame.
The relay leaves a client-sent status frame to the host, as it claims only its own frames.
Follow-ups: docs-site mirror tracked in inference-gateway/docs#877; the consumer side lives in the opentask desktop app under #1396. The issue is on the Roadmap 2026 board and was moved to QA when the PR opened. The PR is a draft, ready for a human review.
Activity
[-][FEATURE] Browser-use status and pause/resume events, mirroring computer use[/-][+][FEATURE] Report the browser extension's state to the daemon's clients[/+]edenreich commentedon Sep 30, 2026
@infer can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /go /go-concurrency
inference-gateway-maintainer commentedon Sep 30, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1440
✅ Infer Result: Success
Done. The full list of todos is complete and the final verification passed (
git statusclean, branch synced with origin, draft PR #1440 open).Summary (PR: #1440, resolving #1403)
The daemon now reports the browser extension connection's state to its clients as the
browser_extension_statusapp frame: once when a client connects (its first frame names the state at that moment) and again whenever the extension attaches or detaches. The frame carries{"type":"browser_extension_status","connected":true|false,"extension_version":"...","protocol_version":1}exactly as the acceptance criteria specifies, withextension_versionread from the attached extension's hello and traveling only while attached.What changed:
internal/browser/infrastructure/extension_wire.go- the frame name, its ownprotocol_versionconstant (1, independent of the handshake's), and the frame builder live here next to the rest of the browser wire vocabulary.internal/browser/infrastructure/extension_relay.go- the relay (which the daemon hosts) now tracks the non-extension connections on the binding and delivers the frame to them on extension attach and detach; a joining client is framed with the current state at once. Deliveries stay under the relay's state mutex, so each client's frames leave in state-change order.internal/protocols/agui/binding.go- addedDialConfig.HelloAttrs, the other hello fields a dialing client declares (read back withHelloAttr). The package stays free of client names, as its README requires.docs/browser-extension-protocol.md- new "Browser extension status" section documenting the frame, and noting there is deliberately no frame or CUSTOM event for pausing or resuming browser use (clients stop the run and continue with a new run on the thread, the path [TASK] Refactor replace custom events and frames with standard AG-UI #1419 gives computer use).Tests (all green with
-race, plustask precommit:runpassing):Follow-ups: docs-site mirror tracked in inference-gateway/docs#877; the consumer side lives in the opentask desktop app under #1396. The issue is on the Roadmap 2026 board and was moved to QA when the PR opened. The PR is a draft, ready for a human review.
Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 10m 54sTokens: 6,771,564 in · 49,531 out · 6,821,095 total (63 requests)
Tool calls: 74 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
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 📦🚀