CI twin for PR #23

Closed
UA
3mo ago
+597-20

Fork PRs skip the Rust matrix; twin for iceteaSA's #23 at 542fee0f.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.


Summary by cubic

Add bounded per‑module terminal-exit history and expose it via a new supervisor.terminals RPC and ck module terminals. Previously only the most recent exit was visible via supervisor.list; now supervisor.list also includes last_exit_ms, and the full recent history is queryable on demand, including a dropped count and the daemon start time.

  • What to review
    • Control API (subc-control 0.2.0): adds supervisor.terminals request/response, TerminalHistory/TerminalEntry/TerminalDisposition types, and a last_exit_ms field on SupervisorEntry; catalogs include the new op.
    • Core supervisor (subc-core 0.4.0): new per-module TerminalRing tracks exits and chosen dispositions; integrated into all terminal paths (clean stops, drains, crashes, restarts).
    • CLI: new ck module terminals <id> command with --json; help text updated; golden fixtures added for the new API.
  • Required actions
    • Update dependencies to subc-control 0.2.0 (e.g., subc-client-rs now requires it) and adjust any exhaustive matches over ClientControlRequest/ClientControlResponse to handle supervisor.terminals.
    • If you parse supervisor.list, tolerate the new last_exit_ms field; if you enumerate supported ops, accept supervisor.terminals.