Repository navigation
fix(context-cli): finish task rollbacks with an unfinished production stage - #107
Merged
Merged
Conversation
… stage Close and build accept an active task rollback; the rollback records whether it discards the current production stage or only a page revision that interrupted it, discloses that in the preview, skips a stale partial-delivery selection during build, and removes production before its own pointer at cleanup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 13, 2026
fix(context-cli): keep later production stages and cancel partial revision delivery on rollback
#108
Merged
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
context task rollbackcould deadlock when the workspace had an unfinished production stage, and its cleanup could remove production that the rollback did not cover.context close, but close still required the unfinished production stage to be complete (production-not-complete), while that stage is only removed by the rollback cleanup that runs after close and build.files: []) ended by deleting the whole production stage, although such a revision normally retires only its own pointer and lets production resume.Changes
closeaccepts an active task rollback for the required-article check; the rollback already discards its draft candidates.productionwitheffect(discard-whole-task/keep),unfinished_tasksanddeleted_working_directory; the knowledge-updates guide asks the Agent to state it before applying.Tests
Compatibility
Rollback states written before this change have no
productionrecord; finishing them discards the current stage as before.🤖 Generated with Claude Code