Refactor JetBrains session state and delayed UI updates#9565
Open
Refactor JetBrains session state and delayed UI updates#9565
Conversation
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.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (12 incremental files)
Reviewed by gpt-5.5-2026-04-23 · 2,275,351 tokens |
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.
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