Repository navigation
Conversation
AgentPresence tells each community which agents this copy runs there, as AgentsService did. It reads what runs, the community connections and takeovers through a small host, so it can move with the Runner. No behavior changes. 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>
Contributor
Author
|
🤖 Closing: this change is now part of #1748, which collects one column of the Manager/Runner split in one PR. |
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 3 of the Manager/Runner split for agents. It is an inert refactor.
What changes
Each copy of the app tells every community which agents it runs there: online every minute, and offline when an agent stops, unless another copy took it over. That code lived inside
AgentsService.This PR moves it into
AgentPresence(presence.ts). It reads three facts through a small host:The presence logic, timing and batching are unchanged.
Why
Presence belongs to the Runner, the part that runs agents, because only the Runner knows what runs. Taking it out of
AgentsServiceis one of the small moves that leave the Runner's parts separable, so they can go to their own page later.Tests
The existing agents service presence tests pass unchanged (
src/features/agents: 716 tests).🤖 Generated with Claude Code