fix(vscode): preserve draft when toggling sandbox - #11672
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summary (commit cbe29c6)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit cbe29c6)Status: 1 Issue Found | Recommendation: Address before merge Overview
Fix these issues in Kilo Cloud Issue Details (click to expand)WARNING
Files Reviewed (5 files)
Reviewed by gpt-5.4-2026-03-05 · Input: 105.3K · Output: 26.8K · Cached: 1.6M Review guidance: REVIEW.md from base branch |
marius-kilocode
force-pushed
the
fix-sandbox-toggle-prompt
branch
from
June 25, 2026 08:33
df59613 to
8047854
Compare
marius-kilocode
enabled auto-merge
June 25, 2026 08:41
RSO
approved these changes
Jun 25, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
…ompt fix(vscode): preserve draft when toggling sandbox
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.
Sandbox controls are session-scoped, so toggling them from a new sidebar chat creates a backend session before the first message is sent. That session transition changed the prompt draft key from the new-chat bucket to the created session bucket, which restored an empty draft when no pending draft ID existed.
Preserve the active new-chat draft before requesting the sandbox transition, then migrate its text, review comments, and image attachments into the created session when the matching draftless
sessionCreatedevent arrives. Other draftless session creation remains untouched, preserving draft isolation and normal send behavior.