diff --git a/bun.lock b/bun.lock index e71895d58fe..5ec7c94cafb 100644 --- a/bun.lock +++ b/bun.lock @@ -357,7 +357,7 @@ }, "packages/kilo-jetbrains": { "name": "@kilocode/kilo-jetbrains", - "version": "7.5.5", + "version": "7.5.9", }, "packages/kilo-memory": { "name": "@kilocode/kilo-memory", diff --git a/packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/SessionUiLayoutTest.kt b/packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/SessionUiLayoutTest.kt index 7768726d352..4123437f62b 100644 --- a/packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/SessionUiLayoutTest.kt +++ b/packages/kilo-jetbrains/frontend/src/test/kotlin/ai/kilocode/client/session/SessionUiLayoutTest.kt @@ -1237,6 +1237,12 @@ class SessionUiLayoutTest : SessionUiTestBase() { worktree = fake ApplicationManager.getApplication() .replaceService(KiloWorktreeService::class.java, KiloWorktreeService(scope, fake), testRootDisposable) + // The UI built in setUp launched its own branch lookup before this fake existed, and it + // resolves the service inside the coroutine — so it lands on the fake whenever the shared + // dispatcher gets to it after the swap. Drain it here and drop what it recorded so the + // assertions below only see the lookup made by the UI under test. + settle() + fake.branchCalls.clear() ui = newUi(manager = object : SessionManager { override fun newSession() {} override fun showHistory(back: (() -> Unit)?) {} diff --git a/packages/kilo-jetbrains/package.json b/packages/kilo-jetbrains/package.json index 132b905a0aa..5e496392c40 100644 --- a/packages/kilo-jetbrains/package.json +++ b/packages/kilo-jetbrains/package.json @@ -8,7 +8,7 @@ "test": "./gradlew test", "test:ci": "bun script/test-ci.ts" }, - "version": "7.5.5", + "version": "7.5.9", "dependencies": {}, "devDependencies": {}, "peerDependencies": {}