You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Feature request: PTY health monitoring in Resource Manager #9840
Orca can create many remote pseudo-terminals across SSH hosts. When stale shells or old relays retain them, macOS can exhaust its PTY pool and new terminals fail with an opaque posix_spawnp failed error.
Could Resource Manager show PTY health per host?
System PTY capacity and remaining headroom
Active process-backed PTYs
PTYs owned by the current Orca relay
Warning and critical states before exhaustion
Visible versus detached sessions
PTYs held by obsolete relay versions
Safe cleanup for idle shells and empty legacy relays
Instead of a mysterious spawn failure, Orca could report:
Wheeljack has 11 of 511 PTY slots remaining; 20 are owned by Orca.
This is especially valuable for multi-host/code-server setups with many long-running SSH terminals.
Related work worth building on: #9820 (fix for #9819) is already extending the relay's pty.listProcesses with paneKey and ageMs — the ownership/age inventory this view needs; building against that avoids reinventing half the data layer.
The cleanup side of this picture: #9819/#9820 (reap orphaned relay PTYs on reconnect) and #10562 (kill sessions when a worktree is deleted outside Orca — one of the main ways stale shells accumulate; traced a live case where externally-deleted worktrees left bash → claude trees holding PTYs indefinitely under a --grace-time 0 relay, invisible to the UI because the worktree record was gone).
+1 to FireSly's CLI angle — orca worktree ps / orca terminal list already exist; exposing capacity/ownership/detached-state there would let agents self-manage PTY budget on serve hosts autonomously.
Activity
orca-discord-issues commentedon Jul 22, 2026
via DiscordPTY health monitoring in Resource Manager
orca-discord-issues commentedon Jul 24, 2026
via DiscordGood idea 👀 . Will see if anyone from the community wants to take it
orca-discord-issues commentedon Jul 24, 2026
via DiscordI can take a swing at it 😄
orca-discord-issues commentedon Jul 24, 2026
via Discord🙏
orca-discord-issues commentedon Jul 25, 2026
via DiscordI actually wanted to see this in the cli for the Serves so agents could manage resources while they run autonomously.
dcieslak19973 commentedon Jul 25, 2026
Related work worth building on: #9820 (fix for #9819) is already extending the relay's
pty.listProcesseswithpaneKeyandageMs— the ownership/age inventory this view needs; building against that avoids reinventing half the data layer.The cleanup side of this picture: #9819/#9820 (reap orphaned relay PTYs on reconnect) and #10562 (kill sessions when a worktree is deleted outside Orca — one of the main ways stale shells accumulate; traced a live case where externally-deleted worktrees left
bash → claudetrees holding PTYs indefinitely under a--grace-time 0relay, invisible to the UI because the worktree record was gone).+1 to FireSly's CLI angle —
orca worktree ps/orca terminal listalready exist; exposing capacity/ownership/detached-state there would let agents self-manage PTY budget onservehosts autonomously.LesleyMurfin commentedon Jul 25, 2026
Splitting the CLI work so it doesn’t block the Resource Manager track here:
orca serve stats [--json]— live headless-serve runtime stats #10608 —orca serve stats [--json](live factory/runtime counts: agents/tasks/terminals/worktrees, version, uptime, port). Implementation ready; PR after retest. Does not implement PTY capacity/ownership or close this issue.Happy to take #10609 after #10608 lands.
vikrantchavan9 commentedon Nov 7, 2026
Is this still open for community contributions? I'd be happy to look into it.