Repository navigation
Conversation
The agents protocol can now run between pages in two webviews. Frames are numbered and held until their turn, since separate emits can arrive out of order and an answer must not overtake its state push. Each page load is a session: a page announces itself once it listens, holds what it sends until it knows the other page, and drops late frames from a page that reloaded. The screens' client says hello on connect, so a reloaded screens' page gets the current state without waiting for a change. Nothing uses it yet. Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Logan Johnson <loganj@squareup.com>
This was referenced Oct 27, 2026
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
agentsweb view and the screens stay inmain. AMessagePortcannot connect two web views, so this adds a port that carries the agents protocol over Tauri events.Details
eventPort(from, to)returns the port shape the protocol already uses (onmessage,postMessage,close).AgentsPortinport.tsnames that shape, andMessagePortstill fits it.connectAgentsnow sendshelloon connect, and the service answers it with a full push. A screens' page that reloads gets the current state without waiting for a change.Testing
event-port.test.ts, over a fake event bus that delivers each batch in reverse and as JSON:port.test.ts: the real service and client over two event ports, with the screens' page loading first. Then the screens' page reloads and still gets the state.hello.tsc --noEmit, Biome, andvitest run src/features/agents(726 passed) pass.🤖 Generated with Claude Code