3.7 KiB
3.7 KiB
Created
Created by tickets.sh create.
Decision
Decision note:
ListVisiblePodsshould be folded intoListPodsrather than kept as a separate tool.InspectPodis not needed as an LLM-facing tool;ListPodsshould provide enough state/detail, and action should go through restore/send/read/stop tools.AttachOrRestorePodshould becomeRestorePod. The current "attach" branch only observes an already-live socket and returns status/socket data; it does not mean a persistent attachment or comm-registry materialization, so the name is misleading.- If deeper semantics are needed later, define them explicitly as comm-registration/materialization rather than using "attach" implicitly.
Implementation report
Implementation report from coder Pod pod-tool-surface-coder-20260531:
- Branch:
pod-tool-surface-restore-list - Commit:
5472cec(pod: simplify pod tool surface) - Changed files:
crates/pod/src/controller.rs,crates/pod/src/discovery.rs,crates/pod/src/spawn/comm_tools.rs,crates/pod/src/spawn/registry.rs,crates/pod/src/spawn/tool.rs,crates/pod/tests/pod_comm_tools_test.rs,crates/protocol/src/lib.rs,crates/tui/src/app.rs,crates/tui/src/picker.rs,docs/architecture.md. - Simplified LLM-facing Pod tools to
ListPods/RestorePod. - Removed
ListVisiblePods,InspectPod, andAttachOrRestorePodfrom active tool/protocol identifiers. - Moved old
ListVisiblePodsstate-backed visibility semantics intoListPods. - Removed old spawned-registry-only
ListPodscomm tool and addedcomm_registryinformation to state-backed Pod listing output. RestorePodnow reports already-live Pods or restores visible stopped/restorable Pods without using attach terminology.- TUI protocol handling and architecture docs were updated.
Validation reported by coder:
cargo fmt --checkpassedcargo check -p pod -p protocolpassed with existingllm-workerwarning onlycargo test -p protocol pod_discoverypassedcargo test -p pod state_backed_visibility_and_restore_planningpassedcargo test -p pod --test pod_comm_tools_testpassed./tickets.sh doctorpassedgit diff --checkpassed
Unresolved issues: none.
Review: approve
External review by reviewer Pod pod-tool-surface-reviewer-20260531: approve.
Reviewer summary:
ListPodsis now the state/visibility-aware listing tool.RestorePodreplaces old attach/restore naming.- Active Rust source no longer contains
ListVisiblePods,InspectPod, orAttachOrRestorePodtool/protocol identifiers. - Visibility remains self + durable spawned children + live in-memory spawned registry, not host-wide enumeration.
RestorePodrejects non-visible/missing/non-restorable Pods, reports already-live visible Pods, and only restores when state is restorable and unlocked.- Existing
SpawnPod,SendToPod,ReadPodOutput, andStopPodremain coherent; the old comm-registry-onlyListPodstool was removed rather than retained as alias. - TUI/protocol/docs were updated consistently.
Blockers: none.
Non-blocking follow-ups:
crates/pod/src/controller.rshad a stale comment saying “four communication tools” after the comm tool count changed; not behavior-affecting.- Run
cargo check -p tuibefore merge because TUI files changed. - A small assertion that removed tool names are absent from the registry would satisfy the ticket wording more literally, but reviewer did not consider it blocking.