Skip to content

feat(cli): add wait mode to agent send#83

Merged
codeaholicguy merged 3 commits into
mainfrom
feature-agent-send-wait
May 15, 2026
Merged

feat(cli): add wait mode to agent send#83
codeaholicguy merged 3 commits into
mainfrom
feature-agent-send-wait

Conversation

@codeaholicguy
Copy link
Copy Markdown
Owner

Summary

Adds agent send --wait so scripts can send a prompt to an existing interactive agent session and capture the new assistant response from stdout.

Notes

This keeps the existing fire-and-forget agent send behavior when --wait is not provided. The first version uses a fixed 10-minute defensive wait cap; configurable --timeout remains a separate backlog item.

Add agent send --wait so scripts can send a prompt to an existing interactive agent session and capture the new assistant response from stdout.

- seed transcript length before terminal delivery
- poll the target session transcript for new assistant messages
- complete when the agent returns to waiting, or idle after assistant output
- keep status and warning output on stderr in wait mode
- validate missing session files and unsupported adapters before sending
- add focused wait-loop and command coverage
@codeaholicguy codeaholicguy merged commit ee05c79 into main May 15, 2026
7 checks passed
@codeaholicguy codeaholicguy deleted the feature-agent-send-wait branch May 15, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant