Repository navigation
Open
Labels
enhancementNew feature or request
Description
Problem
Users need a way to mark an entire session as completed without deleting its history. When returning to an unfinished session with nested tasks, Resume should continue at the deepest task where work was left, rather than reopening the parent/root task.
Context
A session can delegate through multiple levels, for example Parent A -> Subtask B -> Subtask C. Selecting the session from history should return to the actual point of unfinished work, even after restarting VS Code.
Desired behavior
- Provide an explicit action to mark a session completed, with a clear completed indicator in history.
- Persist completion status without deleting the session, its messages, or its task relationships. Allow a completed session to be reopened/reactivated intentionally.
- When resuming an unfinished session, follow its active delegation chain to the deepest resumable task and restore that task's conversation and mode, retaining the parent/root relationships.
- Apply this consistently to session-level Resume entry points, not only when the user manually locates and opens the child task.
Constraints / preferences
- Treat session completion separately from an individual delegated child's completion. Marking a session completed must not fabricate subtask results or automatically execute parent continuation.
- Follow the active continuation path, not an arbitrary historical child or simply whichever task has the greatest depth/timestamp.
- Preserve the ability to inspect a parent task without treating inspection as a request to resume it.
Acceptance criteria
- A user can mark a session completed, see that state in history after a restart, and explicitly reopen it without losing history.
- Given A -> B -> C with C as the deepest unfinished active task, resuming the session from A opens/resumes C, not A or B.
- This works for more than one level of nesting and after reloading the extension.
- If C has finished and work has returned to B, Resume returns to B rather than resurrecting the completed child.
- Sessions without subtasks resume normally. Missing child records or inconsistent/cyclic relationships do not cause crashes or endless traversal and have a clear fallback.
Proposed approach
Reuse the persisted task/delegation relationships and existing task status handling, while making session-level completion and active-leaf resume explicit user-facing behaviors. Existing delegated-child completion should not be mistaken for completion of the whole session.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity