Skip to content

feat: matrix launch verification — detect and report failed session starts #156

@c-h-

Description

@c-h-

Problem

When agentctl launch --matrix starts multiple sessions, some may fail silently (provider down, model not found, OpenCode hang). The launch command returns success because the wrapper shell starts, but the actual coding agent never runs. Nobody notices.

Proposed Solution

After matrix launch, agentctl should:

  1. Wait for each session to produce first output (or configurable timeout, default 60s)
  2. Report which sessions are alive vs dead/stalled
  3. Return non-zero exit code if any session failed to start
  4. Output structured JSON with session status for programmatic consumption

This lets SOP agents check the launch result and relaunch failed sessions immediately, rather than discovering the failure hours later.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions