Repository navigation
Conversation
The Manager now sends the viewer's memberships to the Runner as a link topic, and shows the running agents and interrupted turns the Runner sends back. Only JSON crosses, over an in-page MessageChannel, as it will between pages. The Runner decides again on its own when a record, a turn in progress or one of its sessions changes, when agent types load, and when the viewer joins or leaves a community. It also refreshes cached core memory when a new session follows an earlier state, instead of waiting for the Manager's binding. A refresh of the agent list settles once the Runner has decided from it, so a create resolves with the agent running. 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>
…rejoin A revision now names the Manager page it counts for, so what the Runner decided for an earlier load of that page never answers a new load's wait. A closed Manager side no longer waits, and a Runner that fails to decide still answers, so no caller waits forever. A community the Runner watched before and joined again is renewed too, so its agents' cached core memory is read again, as the Manager's binding did before. 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.
🤖 This is step 8 of the Manager/Runner split for agents. It is an inert refactor: what runs, and what the Agents screens show, stay the same.
Summary
The app splits its agent code into two parts. The Manager serves the screens and agent management. The Runner runs agents and owns their saved state. The goal is to run the Runner in its own hidden page, so only JSON may pass between them.
This is the first slice where real state goes over that link instead of a direct call:
Both parts still share one page. They talk over an in-page
MessageChannel, the same code path the hidden page will use.Details
refresh) now settles only after the Runner has decided from it. Socreatestill resolves with the new agent running, and events that arrive right after it are not missed.Known limits
refreshwaits. In one page that cannot happen. The hidden-page slice must bound this wait. A closed link and a Runner that fails to decide no longer make anyone wait.Tests
🤖 Generated with Claude Code