Repository navigation
Conversation
- Before the first turn of its new session, a member whose agent names a workspace is teleported there, as the Agent tool places a teammate - A placement that fails notes it in the room, and the member goes idle with the post held for its next turn - A session that already answered stays where it runs, and members without a pin are untouched - The teleport service places a session with Place, which the daemon hands the rooms Host as its Placer - The agent catalog carries each agent's workspace pin
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
Closes #1959. Part of #1943.
A Markdown agent can pin the computer it runs on with
workspace:in its frontmatter. TheAgenttool honoured that pin for a teammate, but a room member always ran on the daemon's own machine. Now a pinned member runs on its computer in a room too.resume_conversationas before, reads itsMESSAGES_SNAPSHOT, and when the session is new and its agent pins a workspace, teleports it there before the turn'srun_agent_inputgoes out. That is the move theAgenttool makes for a teammate (subagentThread.place), so the teleport creates a Kubernetes workspace's Orchestrator instead of failing a relay with "gone". Later turns follow the session's lease there.<member> could not reach its computer <workspace>: <reason>in the room. The member goes idle without running, and the post stays first in line, with the posts it would have quoted, so the next turn places it again./stopduring the placement ends the turn, which the placement then does not send.Placerfunc,(ctx, projectDir, sessionID, workspace) error. The teleport service implements it asService.Place, which runs the existingstartTeleportsaga with a requester that reports the first outcome -session_teleported, a failedteleport_progressor aRUN_ERROR.cmd/daemonpassesteleports.Placetorooms.NewHost, so the rooms context never reaches into the teleport context's types.tools.ProjectAgents,agentdomain.SubagentInfo) carries each agent'sworkspace.docs/rooms.mdanddocs/subagents.mdsay that a pinned agent runs on its computer in a room too.The issue's open questions
Agenttool sends - nofileslist - so a room member and a teammate move the same way.Verification
internal/rooms/placement_test.go, with the placer faked: placement before the first turn and none on the next, a failed placement (room note, idle activity, the held post going first on the next turn), a session that already answered, and an unpinned member.internal/agent/teleport/place_test.go: howPlacereads each teleport answer, and a placement on an unknown workspace returning why.tests/e2e/rooms_test.goruns two daemons: a room on A seats an agent pinned to workspace B, a post through A gets the member's answer in the room, and B holds the member's session with that answer. On amainbuild the test fails - the member answers from A and nothing lands on B - and it passes on this branch.task precommit:run, and the teleport, daemon and rooms e2e tests.Agenttool's placement uses.Cross-repo impact