Skip to content

[TASK] Refactor remove the unenforced protocol_version from the daemon binding handshake #1684

Closed

Description

@edenreich

Summary

The daemon binding's handshake carries a protocol_version field on the hello frame and echoes protocol_version: 2 in the ack (internal/protocols/agui/binding.go). Nothing in the CLI enforces it: the binding accepts any hello with a valid token, logs a warning when the field is missing and otherwise only logs the value. It was added for the opentask extension, which the docs say shows an "update" state on a mismatch. The extension docs still describe version 1 while the CLI sends 2, so the check is stale on both sides.

Remove the handshake field from the CLI: the hello the TUI, the daemon subcommands, subagent clients and peer daemons send, the ack, the missing-field warning and the connect/disconnect log fields, plus the handshake section of docs/browser-extension-protocol.md. The protocol_version: 1 inside the browser_extension_status frame is that frame's own schema version and stays.

Follow-ups: the extension stops reading the ack's version (opentask), and the docs site's opentask page drops the handshake version (docs).

Acceptance Criteria

  • The hello frames the CLI sends and the binding's ack carry no protocol_version
  • The binding neither warns about nor logs a handshake version
  • docs/browser-extension-protocol.md documents the handshake without it
  • browser_extension_status keeps its own protocol_version

Activity

  1. added
    refactor
    on Nov 2, 2026
  2. added theissue type on Nov 2, 2026
  3. edenreich commented on Nov 2, 2026

    @edenreich
    ContributorAuthor
  4. moved this from Todo to In progress in 2026on Nov 3, 2026
  5. moved this from In progress to QA in 2026on Nov 3, 2026
  6. moved this from QA to Done in 2026on Nov 3, 2026
  7. inference-gateway-releaser commented on Nov 3, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.241.0 🎉

    The release is available on:

    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

    refactorreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions