Skip to content

fix(jetbrains): show history runtime summaries#10704

Draft
kirillk wants to merge 2 commits into
mainfrom
quirky-weaver
Draft

fix(jetbrains): show history runtime summaries#10704
kirillk wants to merge 2 commits into
mainfrom
quirky-weaver

Conversation

@kirillk
Copy link
Copy Markdown
Contributor

@kirillk kirillk commented May 28, 2026

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 SessionUi instances alive. The previous flow also loaded history with separate status and session requests.

Implementation

Added a Kilo-owned /kilocode/session/overview endpoint 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 SessionUi disposal 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

  • Agent: ./script/generate.ts
  • Agent: bun run typecheck from packages/opencode/
  • Agent: bun test ./test/kilocode/server/httpapi-bridge.test.ts from packages/opencode/
  • Agent: ./gradlew typecheck from packages/kilo-jetbrains/
  • Agent: ./gradlew :backend:test --tests ai.kilocode.backend.app.KiloBackendSessionManagerTest from packages/kilo-jetbrains/
  • Agent: ./gradlew :backend:test --tests ai.kilocode.backend.cli.KiloCliDataParserTest from packages/kilo-jetbrains/
  • Agent: ./gradlew :frontend:test --tests ai.kilocode.client.session.history.HistoryActivitySnapshotTest from packages/kilo-jetbrains/
  • Agent: bun run script/check-opencode-annotations.ts from repo root
  • Agent/pre-push hook: bun turbo typecheck

Reviewer test steps

  1. Open the JetBrains plugin local history with sessions that have active permissions/questions/running turns.
  2. Confirm history rows show badges without reopening/retaining hidden chat UIs.
  3. Confirm local history rows show session costs after assistant messages with costs exist.
  4. Switch between sessions/history and confirm idle hidden UIs are disposable while history metadata remains visible.

Blocked checks and substitute verification

  • No blocked checks.

Checklist

  • Issue linked above, or exception explained
  • Tests/verification described
  • Screenshots/video included for visual changes, or marked N/A
  • Changeset considered for user-facing changes
  • I personally reviewed the diff and can explain the changes, including any AI-assisted work.

Get in Touch

Kilo agent-generated PR.

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.

1 participant