Repository navigation
Conversation
The screens' page reads the local agent list for names, mentions and the composer's agent choices, and each request's work for the Starting, Working and Error rows and their Stop. Both come from the agents service. Once it runs in another page, the port pushes them with the rest of its state, and carries Retry, Dismiss and Stop back. 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 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
Details
serveAgents(agents, port, options)takes optionallocal(aLocalAgentssource) andactivity(aLocalAgentSource). The port pushes their snapshots with the rest of its state and pushes again when they change.localandactivitywith the same shapes.createLocalAgents().bind(client.local)andcreateCommunities(…, client.activity)can use them as they use the in-page ones now.local.refresh), Dismiss (activity.dismissError) and Stop (activity.interrupt) are sent back. Refresh and Stop wait for the service's answer.localthe list reads as unavailable, ascreateLocalAgentsdoes when nothing is bound. Before the first push it reads as loading.connectAgents: onerequesthelper replaces three copies of the same promise bookkeeping.Testing
service.test.ts: the real agents service across aMessageChannel. A created agent appears in the client's local list; a mention's work shows as working, then done.port.test.ts:createLocalAgentsbound to the client's list follows the service, and Retry reaches the service.tsc --noEmit, Biome, andvitest run src/features/agents src/buzz-mcp(869 passed) pass.🤖 Generated with Claude Code