Repository navigation
Wait on the room the caller is actually delivered on - #73
Merged
Merged
Conversation
A thread delivers to one of two surfaces depending on what the participant is: users and apps get a message recipient and are notified on thread_participant:me, agent instances get an inbox item and are notified on instance_inbox:me. The two are mutually exclusive. This command spoke only the first, for every caller. Run inside an agent workload it subscribed to a room its events never reach and then read a table its messages are never written to, so waiting on a reply from another agent could only ever time out -- the reply arrives, and the waiter is watching the wrong two places for it. Pick the surface from the caller: an agent instance reads and acks its inbox and subscribes to instance_inbox:me, everyone else is unchanged. The ack addresses the item rather than the message inside it, so the surface remembers which item each message arrived in.
This was referenced Aug 21, 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.
agyn threads … --waitsubscribed tothread_participant:meand readGetUnackedMessagesfor every caller.A thread delivers to one of two surfaces depending on what the participant is — users and apps get a message recipient and are notified on
thread_participant:me, agent instances get an inbox item and are notified oninstance_inbox:me— and the two are mutually exclusive. Run inside an agent workload, the command subscribed to a room its events never reach and then read a table its messages are never written to, so an agent waiting on another agent's reply could only ever time out.Observed in
TestAgentAgynCLIWaitToAnotherAgent: agent A waited 120s, agent B replied into the right thread 9 seconds later, A exitedwait timed out. That thread has 0message_recipientsrows and 2agent_inbox_deliveriesrows.Picks the surface from the caller — an agent instance reads and acks its own inbox and subscribes to
instance_inbox:me, every other caller is unchanged. The ack addresses the item rather than the message inside it, so the surface remembers which item each message arrived in.Per agyn-cli.md#wait-behavior and threads.md; the platform half (
instance_inbox:merewrite, room authorization, the inbox RPCs) was already in place.