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
afx tower start/stop should report startup failure and reclaim shellper PTYs on explicit stop #1030
Two related Tower lifecycle behaviors can leave operators with misleading status and exhausted PTY resources:
afx tower start can report success even when the Tower daemon immediately fails to serve /api/status.
afx tower stop preserves responsive detached shellpers, so explicit operator stop does not necessarily release PTYs. On macOS this can exhaust the PTY pool and surface as posix_spawnp failed / Invalid shellper info JSON.
Expected
afx tower start waits for /api/status by default and exits non-zero with the Tower log path if the daemon never becomes healthy.
Fire-and-forget startup remains available via an explicit --no-wait option.
afx tower stop stops Tower and then cleans shellpers scoped to Tower's socket directory by default.
Crash/restart recovery remains conservative: startup reconciliation should still preserve responsive shellpers.
Operators can opt into current stop preservation behavior with --preserve-shellpers and still use the emergency --force-kill-all-child-processes path.
Notes
Related but not fixed by prior persistence work: #274, #832, and PR #999. Those preserve sessions across restarts; this issue is about explicit CLI stop semantics and startup failure reporting.
Activity
[Issue cluesmith#1030] Address Tower startup review feedback
[Issue #1030] Fix Tower startup and shellper cleanup
release notes: #1030 afx tower start readiness + shellper diagnostics
release notes: backfill #1034 (Spec 987 hot/cold tiers) + #1011 (fram…