Conversation
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.
Closes #8153
Before:
FocuSee.Project.2025-09-19.18-07-19.mp4
AFTER
FocuSee.Project.2025-09-19.18-12-22.mp4
Problem
Task.recursivelyMakeClineRequests()
ClineProvider.cancelTask()
Changes
Centralize rehydration in the Provider
Task.recursivelyMakeClineRequests()
ClineProvider.onTaskAborted
Prevent double-create by marking “abandoned” earlier on user-cancel
ClineProvider.cancelTask()
Provider-side cancel bookkeeping to mirror abortStream for user cancels
ClineProvider.cancelTask()
ClineProvider.cancelTask()
Resume reconciliation for UI-only reasoning
Task.resumeTaskFromHistory()
Defensive safeguards to avoid rehydrate after rehydrate
ClineProvider.onTaskAborted
ClineProvider.cancelTask()
Why this approach
Behavioral impact
Key references
Task.recursivelyMakeClineRequests()
ClineProvider.onTaskAborted
ClineProvider.cancelTask()
Task.resumeTaskFromHistory()
Important
Centralizes task rehydration in
ClineProvider.tsto prevent duplicate rehydration during reasoning and updates localization for interruption messages.ClineProvider.ts, removing task-side rehydration inTask.ts.ClineProvider.tsnow handles rehydration only for streaming failures, not user cancels.apiConversationHistory.Task.ts: Removes task-side rehydration logic, addsabortReasonproperty.ClineProvider.ts: Implements centralized rehydration logic, updates cancel bookkeeping.This description was created by
for b1958e8. You can customize this summary. It will automatically update as commits are pushed.