Skip to content

Refactor JetBrains session state and delayed UI updates#9565

Open
kirillk wants to merge 18 commits intomainfrom
wheat-outrigger
Open

Refactor JetBrains session state and delayed UI updates#9565
kirillk wants to merge 18 commits intomainfrom
wheat-outrigger

Conversation

@kirillk
Copy link
Copy Markdown
Contributor

@kirillk kirillk commented Apr 27, 2026

Refactor the JetBrains session UI around clearer controller/view boundaries and consolidate delayed UI transitions behind a reusable state-checked timer framework. This gives the session controller explicit state for view, connection, history, and recent-session loading, and provides a foundation for future delayed state-driven UI changes without coroutine jobs or ad hoc flags.

This also improves loading behavior by avoiding transient loading/empty-state flashes, updates retry to show connection loading immediately, and keeps connection recovery centralized with detailed startup, workspace, and config warning states.

Fixes #9441

Connection errors and local history demo

Screen.Recording.2026-04-28.at.6.40.15.PM.mp4

kirillk added 9 commits April 23, 2026 16:35
Move controller queue types into a dedicated update package and extract the generic layered root so SessionUi can stay focused on composition. Rename the message list panel to match its role and keep the queue condenser with the update flow.
Keep SessionUi construction phased and align the session test tree with the production package layout so the UI and update flow are easier to navigate. Also pin Kotlin editorconfig defaults so IDE formatting matches repo expectations.
Surface startup, workspace, and config issues in the panel so sessions explain why they are unavailable. Let retry refresh warnings first and restart the app when problems persist, while logging final error and warning states on the backend.
@kirillk kirillk changed the title Refactor JetBrains session UI and improve connection recovery Refactor JetBrains session state and delayed UI updates Apr 28, 2026
@kirillk kirillk marked this pull request as ready for review April 28, 2026 20:20
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 28, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (12 incremental files)
  • packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/app/KiloBackendAppService.kt
  • packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/rpc/KiloWorkspaceRpcApiImpl.kt
  • packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/workspace/KiloBackendWorkspace.kt
  • packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/workspace/KiloBackendWorkspaceManager.kt
  • packages/kilo-jetbrains/backend/src/main/kotlin/ai/kilocode/backend/workspace/KiloWorkspaceState.kt
  • packages/kilo-jetbrains/backend/src/test/kotlin/ai/kilocode/backend/workspace/KiloBackendWorkspaceTest.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/ConnectionPanel.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/update/SessionController.kt
  • packages/kilo-jetbrains/frontend/src/main/resources/messages/KiloBundle.properties
  • packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/ui/ConnectionPanelTest.kt
  • packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/update/ConnectionDelayTest.kt
  • packages/kilo-jetbrains/shared/src/main/kotlin/ai/kilocode/rpc/dto/KiloWorkspaceStateDto.kt

Reviewed by gpt-5.5-2026-04-23 · 2,275,351 tokens

@kirillk kirillk enabled auto-merge April 28, 2026 21:54
@kirillk kirillk disabled auto-merge April 28, 2026 21:56
@kirillk kirillk enabled auto-merge April 28, 2026 22:42
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.

Add session connection status and recovery UI parity for the JetBrains plugin

1 participant