Skip to content

CI twin for PR #23 (r2) - #28

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

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

Conversation

@ualtinok

@ualtinok ualtinok commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Fresh twin for iceteaSA's #23 at d0f9e6b (+retrigger empty commit): PR #25 stopped receiving CI runs on synchronize/reopened events.


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

Adds bounded per-module terminal history and a new way to read it, so operators can see child exits and dispositions even when the supervisor command channel is closed. Also exposes the most recent exit timestamp in supervisor listings.

  • New control op supervisor.terminals: returns TerminalHistory with daemon_started_at_ms, ordered entries (each with exit_code, exit_signal, at_ms, disposition), and dropped count; served off the supervisor command channel to remain available during supervisor failure.
  • CLI: ck module terminals <id> shows the retained exits; help text updated.
  • Core: per-module TerminalRing (default capacity 32) records exits at drain/stop/crash with Unix ms timestamps and selected disposition; SupervisorEntry now includes optional last_exit_ms.
  • Versions: subc-control -> 0.2.0, subc-core -> 0.4.0; crates/subc-client-rs depends on subc-control 0.2.
  • Tests/golden: new golden for supervisor.terminals; updated op catalogs and supervisor entries; tests document that fake-aft-stub must be built via cargo test -p subc-core.

Migration

  • Consumers of supervisor.list should handle optional last_exit_ms.
  • Clients calling supervisor.terminals must depend on subc-control 0.2 and pass module_id.

Written for commit 15fba64. Summary will update on new commits.

Review in cubic

iceteaSA and others added 2 commits August 16, 2026 10:02
…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

Copy link
Copy Markdown
Contributor Author

Closing: conflicted twins get no merge ref, so Actions creates no run at all — retrigger by rebase, not by re-push.

@ualtinok ualtinok closed this Aug 16, 2026

@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 5 free PR reviews remaining this month. Upgrade for unlimited reviews.

Re-trigger cubic

@ualtinok
ualtinok deleted the ci/pr23-terminals-r2 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