Skip to content

[history] Mark sessions completed and resume the deepest active task - #108

Open
simurg79 wants to merge 1 commit into
mainfrom
feat/31-session-history-completion
Open

simurg79 wants to merge 1 commit into
mainfrom
feat/31-session-history-completion

Conversation

@simurg79

@simurg79 simurg79 commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Closes #31: #31

What is the problem?

Completed sessions clutter history, and Resume can return to a parent instead of the task with unfinished work.

How does this PR solve the problem?

Session completion is root-only and changes only through explicit user actions. Completed sessions stay stored but are hidden by default; Show completed starts off. Resume follows the active delegation chain to its deepest task. Broken or cyclic chains open the root with a warning. A completed session must be reopened before Resume proceeds.

Opening or leaving a task no longer rewrites delegation state. Deleting a child repairs its parent atomically. Images and the draft remain until the extension confirms them.

How did you test the PR?

Verified this session: pnpm run bundle (4/4), pnpm run lint (10/10), and the actual pre-push hook (check-types 10/10), all using Turbo cache hits. Prettier check passed on all 61 changed files: 60 source/test/locale files plus the changeset after a formatting-only fix.

Documented in the companion test scorecard: 315 passed, 0 failed, 6 skipped across 12 session-history files; skips also exist at base. Runtime policy PASS against base. Tests were not rerun during PR preparation.

Manual acceptance remains pending by the user after opening: a live webview run, an extension reload, and a VS Code restart. New English UI wording is not user-approved. History-row Resume gives no feedback.

Pre-PR Code Review

  • Reviewer: Code Reviewer mode (automated)
  • Result: ✅ Passed with non-blocking suggestions
  • Summary: Three review passes. F1, F2 and N1 were found and fixed. Open non-blocking items: 🟡 F3 (new UI wording not yet user-approved), 🟢 F4 (no feedback from history-row Resume).
Agent notes

Root completion field: sessionCompletedAt. Fixed F1: session actions on deleted tasks; F2: fallback always opens root; N1: edit guard error boundary. Manual acceptance: spec R3, R10.
Base: f22bb00.
Companion plans and scorecard PR: https://github.com/simurg79/roo-vault/pull/1420
Human gates: spec approved with wording tidy-up during design; design approved with four coding fixes; implementation approved as-is for user testing after PR opens.

Deferred Items

F4 (history-row Resume has no feedback) was accepted as non-blocking because it carries no draft; no follow-up issue was filed. Manual live-webview, extension-reload and VS Code restart acceptance remains with the user and is not filed here.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Mark sessions completed and resume the deepest task instead of the parent

1 participant