Task 6 projection ignores pane.exited, layout.updated, and tab.moved (Task 9/12 gap)
Summary
Parent: #394. Found while reviewing runtime snapshot sync (#411) on task-6-runtime-sync.
RuntimeProjection::apply_event (lines 106–125) applies pane_closed, pane_moved, tab_created / tab_renamed / tab_closed, and workspace/worktree lifecycle. It does not apply subscribed pane.exited, layout.updated, or tab.moved (they fall through to ApplyOutcome::Ignored). Those types are in SUBSCRIBE_TYPES and in the #411 spec.
This does not block accepted #411 (snapshot rebuild still drops disappeared panes; flattened pane listing does not reconstruct BSP). Task 9 (#419) on task-9-terminal-lifecycle was accepted using snapshot / pane.get / pane.list reconcile, not live event apply. It does still block Task 12 (reattachment) and later tasks that rely on live layout, tab-move, or process-exit updates until Herdr pane.exited semantics are confirmed against v0.9.0.
Current path
- Subscribe includes
pane.exited,layout.updated,tab.moved(runtime_sync.rsSUBSCRIBE_TYPES) apply_eventmatchespane_closed/pane_moved/pane_updatedbut notpane_exited- No cached
layoutsmap is updated onlayout_updated tab.movedis not applied (insert_index/ orderedtabslist ignored)
Documented vs verified
Herdr docs (not live-probed in #395): pane.exited carries {pane_id, workspace_id} and is distinct from pane.closed; layout.updated is a full PaneLayoutSnapshot for one tab and should replace the cached layout for the same workspace_id+tab_id; tab.moved carries tab_id, workspace_id, insert_index, and the updated tabs list. Task 1 verified pane_closed + layout_updated on pane.split / pane.close, not pane.exited or tab.moved.
Needed before Task 12
- Confirm on pinned Herdr v0.9.0 whether
pane.exitedmeans the PTY exited while the pane record remains, or that the pane should be dropped likepane.closed - Apply or explicitly ignore
pane.exited/layout.updated/tab.movedwith tests once that meaning is known - Do not assume live layout or tab-move updates from the Task 6 projection
Do not treat #411 as having live pane.exited, layout, or tab-move projection. Do not treat remaining Task 9 lifecycle work as blocked on this issue.
Verified on tip task-1-verify-gaps. The ignore is intentional. Exited/missing panes cannot linger as live tabs after pane_closed or snapshot rebuild. Flattened splits stay extra tabs. No BSP layout.
src-tauri/crates/service/src/runtime_sync.rs:152-175RuntimeProjection::apply_event:pane.exited/layout.updated/tab.movedfall through toApplyOutcome::Ignored.pane_closedis applied.runtime_sync.rs:141-143apply_snapshot: objects missing fromsession.snapshotare dropped, not recreated.- Tests:
agent_events_do_not_apply_exited_layout_or_tab_moved(pane_exitedis Ignored and the pane remains — process exit ≠ pane gone);snapshot_drops_disappeared_panes_without_recreating;disconnect_rebuilds_and_drops_stale_events;list_flattens_split_and_extra_tab_panes/extra_terminals_use_tab_create_not_split(nopane.split).
No production behavior change. Closing as an intentional ignore backed by those tests.