fix(jetbrains): unblock public API release - #13215
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: 4 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (27 files)
Fix these issues in Kilo Cloud Previous Review Summary (commit 8ae524b)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 8ae524b)Status: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Reviewed by grok-4.6 · Input: 288.5K · Output: 43.5K · Cached: 2M Review guidance: REVIEW.md from base branch |
…orktree session after migration A transient connection reconnect while the app was paused for legacy migration re-ran load(), which skipped migration (gate=AlreadyOffered) and dropped the app into Ready, silently dismissing the wizard. The connection-state watcher now preserves MigrationRequired across Connecting/Connected/Error churn, mirroring the existing reconnect() guard. The worktree session editor also sat on a blank panel: while the backend was paused it could not create a session and never retried. It now shows the empty session panel (like the tool window) when creation is not yet possible, and re-runs start() once migration completes so the session appears. Adds script/clear-migration-status.sh to reset the migration status for local testing.
chrarnoldus
approved these changes
Aug 18, 2026
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.
Issue
No linked issue. Exception: this PR addresses release-blocking JetBrains public API verifier failures and session UI regressions found during release validation.
Context
This keeps the JetBrains public API release path verifier-safe and fixes follow-up session UI behavior uncovered on the same branch. The release verifier was failing on internal JetBrains API usage, migration reconnects could dismiss or strand the migration flow, and empty persisted worktree sessions rendered as blank transcripts instead of the intended empty panel.
Implementation
Screenshots / Video
N/A: no screenshots were captured from this headless agent session. The visible empty-panel and modal layout behavior is covered by JetBrains UI/layout tests.
How to Test
Manual/local verification
./gradlew :frontend:test --tests 'ai.kilocode.client.session.controller.ViewSwitchingTest' --tests 'ai.kilocode.client.session.controller.HistoryLoadingTest' --tests 'ai.kilocode.client.session.controller.WorkspaceWatchingTest' --tests 'ai.kilocode.client.session.controller.DisposedStateTest' --tests 'ai.kilocode.client.session.SessionUiLayoutTest' --tests 'ai.kilocode.client.session.SessionSidePanelManagerTest' --tests 'ai.kilocode.client.agentManager.worktree.WorktreeSessionEditorManagerTest' --tests 'ai.kilocode.client.session.controller.SessionRecoveryTest' --tests 'ai.kilocode.client.ui.LayeredOverlayPanelTest' --tests 'ai.kilocode.client.session.ui.SessionRootPanelTest'frompackages/kilo-jetbrains/; passed../gradlew typecheckfrompackages/kilo-jetbrains/; passed../gradlew verifyPlugin -Pproduction=true -Pkilo.channel=eap,./gradlew test, and targeted history/tool-window tests.Reviewer test steps
./gradlew :frontend:test --tests 'ai.kilocode.client.session.controller.SessionRecoveryTest' --tests 'ai.kilocode.client.session.controller.ViewSwitchingTest'frompackages/kilo-jetbrains/.Blocked checks and substitute verification
./gradlew testfrompackages/kilo-jetbrains/after the follow-up fix, but the full local run timed out after 300s while unrelated backend test classes were failing/hanging locally. Substitute verification was the expanded affected frontend suite above plus./gradlew typecheck; GitHub CI re-runs the full JetBrains test job on the pushed branch.Checklist
Get in Touch
Kirill /
kirillk.