Skip to content

M1: correctness & safety fixes - #4

Merged
lacraig2 merged 1 commit into
mainfrom
m1-correctness
Jun 13, 2026
Merged

M1: correctness & safety fixes#4
lacraig2 merged 1 commit into
mainfrom
m1-correctness

Conversation

@lacraig2

Copy link
Copy Markdown
Collaborator
  • Ephemeral-port persistence: display_spec emits the short (preferred) form for any auto local port, so a fallback ephemeral port is no longer frozen as a strict ->PORT on the next launch (+ round-trip test).
  • Reap safety: agent records a live client count in its state file; reap_stale_agents only TERMs version-mismatched agents with zero clients, never dropping a live session.
  • Tunable attach deadline via PORTMANAGER_ATTACH_DEADLINE_SECS (default 10s).
  • Graceful post-fork stderr redirect (no more expect-panic on devnull clone).
  • Document the single-client-per-session assumption (supervisor + README).

- Ephemeral-port persistence: display_spec emits the short (preferred) form
  for any auto local port, so a fallback ephemeral port is no longer frozen
  as a strict ->PORT on the next launch (+ round-trip test).
- Reap safety: agent records a live client count in its state file;
  reap_stale_agents only TERMs version-mismatched agents with zero clients,
  never dropping a live session.
- Tunable attach deadline via PORTMANAGER_ATTACH_DEADLINE_SECS (default 10s).
- Graceful post-fork stderr redirect (no more expect-panic on devnull clone).
- Document the single-client-per-session assumption (supervisor + README).
@lacraig2
lacraig2 merged commit 0983719 into main Jun 13, 2026
8 checks passed
@lacraig2
lacraig2 deleted the m1-correctness branch June 13, 2026 02:50
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.

1 participant