Bug Description
ag send <session-id> "message" fails with 'Invalid request body' error. This blocks the core iterative-development use case for Aegis.
Impact
- P1 — Cannot send follow-up messages to a running CC session from the CLI.
- One-shot
ag run works, but real 4h+ dev sessions require ag send to iterate.
Reproduction Steps
- Start a session via
ag run <prompt>
- Wait for session to become active
- Run
ag send <session-id> "follow-up message"
- Observe: CLI returns 'Invalid request body'
Expected Behavior
ag send should deliver the message to the CC session via the ACP bridge, same as the dashboard send or API POST.
Root Cause (Hypothesis)
Wrong field format in the request payload sent by the CLI to the Aegis server. Likely a mismatch between CLI payload shape and API schema (e.g., missing sessionId vs id field, or wrong content-type).
Evidence
Found during endurance test #4683 (2026-06-13).
Acceptance Criteria
Related
Bug Description
ag send <session-id> "message"fails with 'Invalid request body' error. This blocks the core iterative-development use case for Aegis.Impact
ag runworks, but real 4h+ dev sessions requireag sendto iterate.Reproduction Steps
ag run <prompt>ag send <session-id> "follow-up message"Expected Behavior
ag sendshould deliver the message to the CC session via the ACP bridge, same as the dashboard send or API POST.Root Cause (Hypothesis)
Wrong field format in the request payload sent by the CLI to the Aegis server. Likely a mismatch between CLI payload shape and API schema (e.g., missing
sessionIdvsidfield, or wrong content-type).Evidence
Found during endurance test #4683 (2026-06-13).
Acceptance Criteria
ag send <session-id> <message>delivers message without 'Invalid request body' errorag senduse the same payload shape (or documented divergence)Related