Wait for a pane's program to exit
curl --request GET \ --url http://127.0.0.1:8004/api/panes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/exit \ --header 'Authorization: Bearer <token>'Waits until the pane’s program (its command, or its shell) exits and returns its status; for a pane kept open, once its output ended and its exit line was written. A pane that closed in the last 5 minutes (at most the last 256 closed) reports the status it closed with; a waiter already waiting always gets it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Pane ID
Query Parameters
Section titled “Query Parameters”Milliseconds: 10 minutes by default, at most an hour.
Responses
Section titled “Responses”The exit status once the program exits, or the wait times out
object
The program’s exit status, 128 + N if signal N ended it; null if it hasn’t exited, or its pane closed before it reported one.
The wait ended before the program exited.
Example generated
{ "status": 1, "timed_out": true}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, or it closed too long ago
The pane’s shell hasn’t started, as no client showed the pane
The server is shutting down