Skip to content

CI twin for PR #23 - #25

Closed
ualtinok wants to merge 2 commits into
masterfrom
ci/pr23-terminals
Closed

ualtinok wants to merge 2 commits into
masterfrom
ci/pr23-terminals

Conversation

@ualtinok

@ualtinok ualtinok commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

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


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.

Written for commit 542fee0. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 18 files

You're on the cubic free plan with 8 free PR reviews remaining this month. Upgrade for unlimited reviews.

Re-trigger cubic

…table

A snapshot alone omitted an exit timestamp, retained only one terminal, and could not count missed terminals. The per-module bounded history reports every retained exit with its chosen disposition; eviction increments dropped so a returning observer knows it has only a suffix. daemon_started_at_ms marks the in-memory daemon incarnation, distinguishing a quiet daemon from a restarted one with no retained history.
@ualtinok ualtinok closed this Aug 16, 2026
@ualtinok ualtinok reopened this Aug 16, 2026
@ualtinok

Copy link
Copy Markdown
Contributor Author

Superseded by a fresh twin: synchronize/reopened events are not creating CI runs on this PR (opened events do — twin #26/#27 pattern). Recreating.

@ualtinok ualtinok closed this Aug 16, 2026
@ualtinok ualtinok mentioned this pull request Aug 16, 2026
@ualtinok
ualtinok deleted the ci/pr23-terminals branch August 16, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants