MCPcopy Create free account
hub / github.com/compozy/agh / waitForBlocked

Method waitForBlocked

internal/cli/cli_integration_test.go:4043–4062  ·  view source on GitHub ↗
(sessionID string, timeout time.Duration)

Source from the content-addressed store, hash-verified

4041}
4042
4043func (d *integrationDaemon) waitForBlocked(sessionID string, timeout time.Duration) bool {
4044 d.mu.Lock()
4045 driver := d.driver
4046 manager := d.manager
4047 d.mu.Unlock()
4048 if driver == nil {
4049 return false
4050 }
4051 target := sessionID
4052 if manager != nil {
4053 if info, err := manager.Status(
4054 context.Background(),
4055 sessionID,
4056 ); err == nil &&
4057 strings.TrimSpace(info.ACPSessionID) != "" {
4058 target = info.ACPSessionID
4059 }
4060 }
4061 return driver.waitForBlocked(target, timeout)
4062}
4063
4064func (d *integrationDaemon) blockSession(sessionID string) (<-chan acp.AgentEvent, error) {
4065 d.mu.Lock()

Callers

nothing calls this directly

Calls 2

StatusMethod · 0.65
waitForBlockedMethod · 0.45

Tested by

no test coverage detected