Repository navigation
refactor(agui): drop the unenforced protocol_version from the binding handshake - #1685
Merged
Merged
Conversation
… handshake The binding never rejected a hello over its version and only logged it, so the hello and its ack no longer carry one. The browser_extension_status frame keeps its own schema version. Closes #1684
Contributor
|
🎉 This PR is included in version 0.241.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The daemon binding's handshake carried a
protocol_versionon thehelloand echoed2in the ack, but the CLI never enforced it: any hello with a valid token was accepted, a missing field was only logged. This drops it from the hello every CLI client sends (TUI, daemon subcommands, subagents, peer daemons), from the ack, from the missing-field warning and the connect/disconnect log fields, and fromdocs/browser-extension-protocol.mdanddocs/ag-ui-output.md.The
protocol_version: 1insidebrowser_extension_statusis that frame's own schema version and stays.Closes #1684
Cross-repo
protocol_version.no docs ticket beyond #1079: internal-only refactor of the handshake.
Tests
TestBindingAcksAHelloOfAnyClientKindchecks the ack is the type alone, the hello-attr test now readsextension_version, and the e2e daemon test no longer asserts the ack version.