Skip to content

fix(jetbrains): keep slash completion open while typing - #13287

Merged
kirillk merged 1 commit into
mainfrom
fix/jetbrains-slash-completion-fast-typing
Aug 21, 2026
Merged

fix(jetbrains): keep slash completion open while typing#13287
kirillk merged 1 commit into
mainfrom
fix/jetbrains-slash-completion-fast-typing

Conversation

@kirillk

@kirillk kirillk commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Issue

No linked issue; reported from the JetBrains slash command fast-typing session.

Context

JetBrains slash command completion can close while typing quickly. The slash path filters commands from in-memory state and finishes immediately, while @ mentions stay in completion calculation during backend file search. When the slash lookup closes mid-token, the existing first-character trigger does not reopen it.

The prompt should also regain focus after choosing a model, agent, or reasoning option opened from a slash command, so users can keep typing without clicking back into the prompt.

Implementation

  • Reopen prompt completion when a single-character keystroke lands inside a slash or mention token and no lookup is active, using the existing split-mode-safe local completion path.
  • Refresh an open slash lookup when server commands finish loading, so stale No matches results can update to real server commands.
  • Add a shared picker OK-close hook in PickerButton, then wire model, agent, and reasoning pickers to refocus the prompt after a selection.
  • Add frontend tests for slash lookup reopen, server command refresh, and picker close selection handling.

The reopen path is limited to single-character typing so programmatic prompt text updates and paste operations do not automatically open completion.

Screenshots / Video

N/A — behavior and focus fix; no visual UI change.

How to Test

Manual/local verification

  • Agent executed ./gradlew typecheck from packages/kilo-jetbrains/.
  • Agent executed ./gradlew --no-configuration-cache :frontend:test from packages/kilo-jetbrains/.

Reviewer test steps

  1. Open a JetBrains project with the plugin and focus the Kilo prompt.
  2. Type a slash command quickly, such as /models, and confirm the completion popup stays open or reopens while filtering.
  3. Type a server-backed slash command query and confirm server command matches appear once commands are loaded.
  4. Choose a model via /models, an agent via /agents, and a reasoning option via /variant; after each selection, confirm focus returns to the prompt.

Blocked checks and substitute verification

  • Agent attempted ./gradlew :frontend:test immediately after ./gradlew typecheck; Gradle IntelliJ instrumentation failed with classname attribute of taskdef element is undefined / No Java Compiler dependency found, consistent with a configuration-cache dependency resolution issue. Substitute verification: reran ./gradlew --no-configuration-cache :frontend:test, which passed.

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

N/A

@kirillk kirillk changed the title fix(jetbrains): stabilize slash completion fix(jetbrains): keep slash completion open while typing Aug 20, 2026
@kilo-code-bot

kilo-code-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (9 files)
  • .changeset/jetbrains-slash-completion-fast-typing.md
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/ReasoningPicker.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/mode/ModePicker.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/model/ModelPicker.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/prompt/KiloPromptCompletionProvider.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/ui/prompt/PromptPanel.kt
  • packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/ui/PickerButton.kt
  • packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/ui/PromptPanelTest.kt
  • packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/ui/PickerButtonTest.kt

Reviewed by grok-4.6 · Input: 535.3K · Output: 26.5K · Cached: 641.5K

Review guidance: REVIEW.md from base branch main

@kirillk
kirillk enabled auto-merge August 20, 2026 20:48

@WebReflection WebReflection left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find anything obviously wrong + there are tests and because Anil would've approved I'm going to give this a thumb up

@kirillk
kirillk merged commit 5caa48b into main Aug 21, 2026
24 checks passed
@kirillk
kirillk deleted the fix/jetbrains-slash-completion-fast-typing branch August 21, 2026 07:42
@kirillk

kirillk commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

I couldn't find anything obviously wrong + there are tests and because Anil would've approved I'm going to give this a thumb up

Thank you!

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.

2 participants