Close one idle run owner’s persistent terminals
close_run_terminalsClose a run's terminal sessions and reconcile its permission lease after recovery, discarding that agent's PTY snapshot while preserving other owners and activity.
Instructions
Explicit permission recovery for a terminal run, or needs_attention with permission_restore_failed. Reject active native Agents. Discard this exact Agent session’s published PTY snapshot, including shells retained from prior runs; Agent idle cannot prove commands inside those shells are idle. Preserve other owners and unpublished/new terminal activity. Reconcile the original permission lease only after confirmed quiescence and return the updated original run. Never clears Inbox/history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runId | Yes |