Skip to content

Fix: New Task Interface Not Shown After Right-Click Task Completion #5773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roomote[bot]
Copy link

@roomote roomote bot commented Jul 16, 2025

Fixes issue #5772 by adding await this.postStateToWebview() to the clearTask() method in ClineProvider.ts to ensure the UI is properly updated when a task is cleared.


Important

Fixes issue #5772 by ensuring the UI updates correctly when a task is cleared in ClineProvider.ts.

This description was created by Ellipsis for 74c5f77. You can customize this summary. It will automatically update as commits are pushed.

Fixes issue #5772 where clicking the plus button after completing right-click context menu tasks (like "Explain Code" or "Improve Code") would incorrectly show the previous completed task interface instead of the new task interface on the first attempt.

The issue was in the clearTask() method in ClineProvider.ts which only called removeClineFromStack() but did not update the webview state. This caused the UI to continue showing the old task interface because the webview was not notified that the task had been cleared.

The fix adds await this.postStateToWebview() to the clearTask() method to ensure the UI is properly updated when a task is cleared, which resolves the issue where users had to click the plus button twice to get the new task interface.
@roomote roomote bot requested review from mrubens, cte and jr as code owners July 16, 2025 07:55
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jul 16, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 16, 2025
@daniel-lxs daniel-lxs moved this from Triage to Roomote/renovate BOT in Roo Code Roadmap Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Status: Roomote/renovate BOT
Development

Successfully merging this pull request may close these issues.

2 participants