Skip to content

fix(vscode): restore session state on first redo - #11183

Merged
marius-kilocode merged 2 commits into
mainfrom
fix/vscode-redo-session-state
Jun 15, 2026
Merged

fix(vscode): restore session state on first redo#11183
marius-kilocode merged 2 commits into
mainfrom
fix/vscode-redo-session-state

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

This is a simple bug where a duplicate event would cause the reset button to fail on the first click.

Redo could restore files while leaving the revert checkpoint visible until it was clicked a second time. Partial sync patches and full session bus snapshots both arrived as session.updated, so the extension merged full snapshots as patches and preserved optional revert state that the snapshot intentionally omitted.

Distinguish unwrapped sync patches from full bus snapshots. Partial updates continue to merge into the cached session, while full snapshots replace it and are forwarded as complete updates, allowing cleared optional state to reach the webview immediately. Regression coverage protects full-snapshot clearing and the revert mutation update path.

file-8b28ddd8546fbe5b331a108435dd4e69 file-6259c7996e94cbbb363a6e7b7339b712

@kilo-code-bot

kilo-code-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • .changeset/fast-redos-return.md
  • packages/kilo-vscode/src/KiloProvider.ts
  • packages/kilo-vscode/tests/unit/kilo-provider-utils.test.ts
  • packages/kilo-vscode/tests/unit/revert-checkpoints.test.ts

Reviewed by claude-4.6-sonnet-20260217 · 1,847,517 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 488b886 into main Jun 15, 2026
25 of 29 checks passed
@marius-kilocode
marius-kilocode deleted the fix/vscode-redo-session-state branch June 15, 2026 08:19
NJ-2020 pushed a commit to NJ-2020/kilocode that referenced this pull request Jul 4, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…on-state

fix(vscode): restore session state on first redo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants