fix(jetbrains): show history runtime summaries#10704
Draft
kirillk wants to merge 2 commits into
Draft
Conversation
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. Implements the requested JetBrains history/session runtime summary behavior from the local implementation plan.
Context
JetBrains local history and recent sessions needed to show active badges and aggregate cost without keeping hidden
SessionUiinstances alive. The previous flow also loaded history with separate status and session requests.Implementation
Added a Kilo-owned
/kilocode/session/overviewendpoint that returns sessions, runtime statuses, activity summaries, and session costs in one response. JetBrains now consumes that overview for local history and recents, maintains backend runtime state from overview/SSE events, exposes it through RPC, and uses cached frontend state to repaint history badges and costs.This also makes inactive
SessionUidisposal default-on and adds a 60s cleanup pass for retained idle UIs. The PR includes SDK/OpenAPI regeneration and a patch changeset for the JetBrains-facing behavior.Screenshots / Video
N/A. Behavior is history metadata/badge/cost plumbing, not a new visual layout.
How to Test
Manual/local verification
./script/generate.tsbun run typecheckfrompackages/opencode/bun test ./test/kilocode/server/httpapi-bridge.test.tsfrompackages/opencode/./gradlew typecheckfrompackages/kilo-jetbrains/./gradlew :backend:test --tests ai.kilocode.backend.app.KiloBackendSessionManagerTestfrompackages/kilo-jetbrains/./gradlew :backend:test --tests ai.kilocode.backend.cli.KiloCliDataParserTestfrompackages/kilo-jetbrains/./gradlew :frontend:test --tests ai.kilocode.client.session.history.HistoryActivitySnapshotTestfrompackages/kilo-jetbrains/bun run script/check-opencode-annotations.tsfrom repo rootbun turbo typecheckReviewer test steps
Blocked checks and substitute verification
Checklist
Get in Touch
Kilo agent-generated PR.