Repository navigation
Withhold Delete Task for done tasks, even in active Changes - #43
Merged
Merged
Conversation
…trap-snippets, template-catalog-v2) All three merged with passing CI and every tasks.md checkbox already checked, but were never run through `openspec archive`, so their requirements never landed in the canonical specs. Doing this now so upcoming changes can write valid deltas against the specs they modify. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A completed checklist line records that work happened; deleting it throws that record away with no equivalent safeguard to the one archived changes already get. Extends the existing archived/active contextValue gating (tasks-tree-expand) with a done-state distinction, both in the tree (menu withheld) and in the command itself (fail-closed guard, not just UI-gated). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
- [x]) no longer offers "Delete Task" in its context menu in active changes — matching the guard already in place for archived changes (tasks-tree-expand). A completed checklist line records that work happened; deleting it throws that record away.openspec-ui.activeTaskDonecontextValue, distinct fromopenspec-ui.activeTask; the existingpackage.jsonmenuwhen-clause needed no change since it already only matchesopenspec-ui.activeTask.Test plan
npm run verify(typecheck/lint/english-policy/test) passes repo-widenpm run test:integration) — 6/6 passingreadTaskChecklistrun against a real temptasks.mdconfirming done-state parsingopenspec change validate --strict task-done-lockpasses🤖 Generated with Claude Code