What's Changed
Session tracking improvements
- Plan mode lifecycle tracking: Full plan mode state captured (EnterPlanMode, ExitPlanMode, approval/rejection, plan file writes). Prevents stale plans from being re-proposed after compact.
- Task status: "failed" added to DONE filter: TaskUpdate supports
failedstatus — previously these tasks would incorrectly show as pending after session restore. - Task event type precision:
task_create/task_updatestored as event types instead of generictask.
Bug fixes
- Session directive and snapshot correctly filter completed, deleted, AND failed tasks
- Plan mode status rendered in both session directive (narrative) and snapshot (XML)