Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion go/e2e/agent_ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ func (f *Fixture) Resume(ctx context.Context, containerName, resumeSessionID str
// AwaitTurnSettled via its own derived settleTimeout, mirroring how
// SubscribeComms opens under the caller's ctx and AwaitDelivery bounds the read.
func (f *Fixture) OpenSessionTail(ctx context.Context, sessionID string) (*connect.ServerStreamForClient[compassv1.AgentSessionFrame], error) {
stream, err := f.Compass().SubscribeAgentSession(ctx, connect.NewRequest(&compassv1.SubscribeAgentSessionRequest{
return f.OpenSessionTailAs(ctx, f.Compass(), sessionID)
}

// OpenSessionTailAs opens the tail as client's account, which must be a member
// of the agent's home channel (another owner's agent is invisible to admin).
func (f *Fixture) OpenSessionTailAs(ctx context.Context, client compassServiceClient, sessionID string) (*connect.ServerStreamForClient[compassv1.AgentSessionFrame], error) {
stream, err := client.SubscribeAgentSession(ctx, connect.NewRequest(&compassv1.SubscribeAgentSessionRequest{
SessionId: sessionID,
}))
if err != nil {
Expand Down
Loading
Loading