Wait for an agent
curl --request GET \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/wait \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pane ID
Query Parameters
Section titled “Query Parameters”Comma-separated agent states; default idle,done,blocked.
Milliseconds: 10 minutes by default, at most an hour.
Responses
Section titled “Responses”The agent’s status once it settles, exits, or the wait times out
object
None once the agent has exited.
object
Lifecycle states for an agent occupying a pane.
This intentionally follows Herdr’s small semantic vocabulary. Failure and permission details belong in the accompanying message/notification instead of multiplying lifecycle states.
Background work the agent’s screen shows, such as “2 shells, 1 monitor”.
Example
{ "status": { "state": "unknown" }}An unknown state, or no states; or a malformed ID or query parameter
Missing or wrong access token
The request’s Host or Origin isn’t allowed, or the caller can’t use this route (a guest token, or btmux connect)
No such pane
The server is shutting down