M9c — PTY-host true zero-disruption agent survival
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust
- Lĩnh vực
- cli, operating-systems
Hướng nghiên cứu
Trước tiên, hãy đọc docs/superpowers/specs/2026-08-02-clowder-m9-agent-survival-design.md §M9c, sau đó kiểm tra crates/clowder-daemon/src/pane.rs và substrate Screen::snapshot() từ #52. Xác định giao thức PTY-host và fd-passing trước khi triển khai. Được coi là hoàn tất khi một agent, process của nó, scrollback và các companion shell sống sót qua việc daemon bị kill và relaunch mà không respawn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Agent survival shipped in two slices this cycle:
- M9a (#50) — durable
agents.jsonregistry, reconcile-on-startup, adapter session-resume (claude --continue). Agents re-spawn in their worktree after a daemon restart. - M9b (#51) — full split-layout restore (companion shells rebuilt in the same arrangement).
M9c is the deferred capstone: true zero-disruption survival. Today a restart re-spawns each agent (fresh process; the prior conversation is only recovered via the adapter's own resume, and scrollback/companion output is lost). M9c makes agents — and their scrollback and running processes — survive a daemon restart with no re-spawn at all.
Design (already written)
docs/superpowers/specs/2026-08-02-clowder-m9-agent-survival-design.md §M9c (DEFERRED — design only):
A persistent PTY-host process owns the agent PTYs + child processes + recent backlog and outlives the daemon. The daemon becomes a client of it: on restart the daemon re-attaches to the still-running agents (PTY master fds handed over via
SCM_RIGHTSfd-passing over a unix socket), so agents — and their scrollback — survive with zero disruption.
This splits today's daemon into a small, rarely-restarted PTY-server + the churny restartable control-daemon.
Scope (big — its own spec → plan → SDD cycle)
- New PTY-host component + an fd-passing protocol (
SCM_RIGHTSover a unix socket). - Backlog/scrollback ownership moves to the host (the daemon's current in-memory backlog becomes the host's).
- Child reaping in the host (not the daemon).
- Suppress the current triple-kill on the daemon side (SIGHUP-on-master-drop +
Drop for Pane+shutdown()explicit kill — seecrates/clowder-daemon/src/pane.rs), so agents aren't killed when the daemon exits. Screen::snapshot()(from the VT-grid milestone, #52) is a ready substrate for the recent-screen restore.
Acceptance
A running agent survives a daemon kill + relaunch with its process, scrollback, and companion shells intact — no re-spawn, no lost conversation — and the app reconnects to the still-live session.
- Ngôn ngữ chính
- Rust
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của richardcase/clowder
-
documentation priority: medium
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
richardcase/clowder#143 ·
-
enhancement github_actions priority: medium rust
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 65/100
richardcase/clowder#142 ·
-
github_actions priority: medium
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
richardcase/clowder#141 ·
-
bug priority: medium
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
richardcase/clowder#140 ·
-
bug priority: medium
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
richardcase/clowder#139 ·
Tất cả issue của richardcase/clowder
Issue tương tự
-
binding:python bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
coollabsio/orbit#72 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug order-flow studies ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
userFRM/egui-charts#2417 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày