Commit Graph
25238 Commits
Author SHA1 Message Date
Marius 411125ea39 Merge branch 'main' into feat/vscode-file-picker-mention 2026-07-13 10:10:28 +02:00
Thomas Brugman bf2b33b87b fix(cli): use filePath in Gemini prompt 2026-07-13 09:24:23 +02:00
kilo-maintainer[bot] 3cb82a0907 chore: update nix node_modules hashes 2026-07-12 05:54:36 +00:00
Marius b8e07791dd Merge pull request #12075 from Kilo-Org/network-domain-exceptions
feat: allow sandbox network destinations
2026-07-12 07:39:34 +02:00
Kirill Kalishev 619b595f4b Merge pull request #12119 from Kilo-Org/jetbrains/release/v7.0.4
release(jetbrains): v7.0.4
2026-07-10 18:44:57 -04:00
Kirill Kalishev c63a0eae90 docs(jetbrains): edit changelog for v7.0.4 2026-07-10 18:36:34 -04:00
kilo-maintainer[bot] cc8f66bdde release(jetbrains): v7.0.4 2026-07-10 22:29:49 +00:00
Kirill Kalishev 53465232e4 Merge pull request #12118 from Kilo-Org/relic-king
fix(jetbrains): stop orphaned CLI on Windows (app-close deadlock + kill-on-close job)
jetbrains/v7.0.4
2026-07-10 18:25:48 -04:00
kirillk 0ff7a3be3e fix(jetbrains): kill CLI on Windows via kill-on-close job to prevent orphan
On Windows the spawned `kilo serve` process could outlive the IDE and then
block the next IDE launch (a surviving child inherits IDE handles). The
app-close teardown also deadlocked: closeForShutdown() closed the CLI's
streams before killing it, and on Windows closing a process stream while a
reader thread is mid-read hangs until the process dies — so IDE shutdown
blocked, the JVM stayed alive, the kill-on-close job never fired, and the
CLI lingered until killed by hand (which is what unblocked restart).

- Bind the CLI tree to the IDE via a Windows Job Object with
  JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE, so the OS terminates the tree when
  the IDE exits for any reason (clean exit, halt(), crash, force-kill).
- Reorder app-close teardown to kill first, then close streams
  (shutdownTree), removing the deadlock. Order is regression-tested.
- Map the Job Object kernel32 functions directly (the IDE's bundled JNA
  omits them) using only the platform's core JNA; JNA is not bundled to
  avoid a jnidispatch collision. Guard on JnaLoader.isLoaded() before any
  Native access and release handles via try/finally ownership.
- Best-effort / Windows-only: assign() returns null off-Windows, without
  JNA, on non-64-bit, or on any native failure, so callers keep the
  existing process-tree kill. No CLI changes.

Adds diagnostics on the setup/app-close paths, a Windows-gated integration
test, and ordering regression tests.

Known limitation: kill-on-close also terminates `persistent=true`
background processes on Windows; full support needs a coordinated CLI
breakaway change (CREATE_BREAKAWAY_FROM_JOB + JOB_OBJECT_LIMIT_BREAKAWAY_OK).
2026-07-10 18:03:23 -04:00
Kirill Kalishev ec20023845 Merge pull request #12115 from Kilo-Org/jetbrains/release/v7.0.3
release(jetbrains): v7.0.3
2026-07-10 15:00:52 -04:00
Kirill Kalishevandkilo-code-bot[bot] 0dbec200b8 Update packages/kilo-jetbrains/CHANGELOG.md
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-07-10 14:52:29 -04:00
Kirill Kalishevandkilo-code-bot[bot] ce234e5d73 Update packages/kilo-jetbrains/CHANGELOG.md
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-07-10 14:52:19 -04:00
Kirill Kalishev 6ab1d8b7b8 docs(jetbrains): edit changelog for v7.0.3 2026-07-10 14:44:45 -04:00
kilo-maintainer[bot] 015c614488 release(jetbrains): v7.0.3 2026-07-10 18:37:13 +00:00
Kirill Kalishev 56c5b7fedf Merge pull request #12104 from Kilo-Org/goldenrod-butternut
fix(jetbrains): show revert progress inline
jetbrains/v7.0.3
2026-07-10 14:31:39 -04:00
Kirill Kalishev 12fd290d4d Merge pull request #12105 from Kilo-Org/plan-address-issue-12048
fix(jetbrains): stop CLI on app close
2026-07-10 14:31:10 -04:00
kirillk 06ac6d90a4 fix(jetbrains): treat killed orphan zombies as exited in tree-kill test
The process-tree kill test flaked on Linux CI ("child still alive"): a
SIGKILLed orphan reparents to init and lingers as an unreaped zombie that
ProcessHandle still reports alive (onExit never fires for a non-child), so the
kill worked but was unobservable. The test now treats a zombie ('Z' in /proc)
or already-reaped process as exited, with an isAlive fallback off Linux.

Also simplify confirmKilled to wait only on the tracked parent (our real
child, reliably reaped) and report descendants best-effort, so wait=true
shutdown no longer blocks on an orphan exit it cannot observe.
2026-07-10 14:14:14 -04:00
kirillk af99c2b134 test(jetbrains): dispose ignores late SSE callbacks without reconnecting
Locks in the disposal terminal-state guarantee (R5): after dispose(), a late SSE onClosed/onFailure with a stale source must not resurrect the connection or schedule a reconnect. Deterministic — drives the listener directly, no sleeps.
2026-07-10 13:50:14 -04:00
kirillk 1fe08892f0 fix(jetbrains): defer turn state across revert instead of dropping it
Address review: guarding TurnOpen/TurnClose/status with revertOp dropped
the transitions entirely, so a turn that started just before a rollback
could leave the prompt idle while the server turn was still active. Record
the underlying turn/status transition in revertDeferred while the revert is
held and reconcile it when the operation releases: an aborted turn releases
to Idle, a still-active turn releases back to Busy/Retry/Offline. Failed
reverts still surface the error explicitly.
2026-07-10 13:49:29 -04:00
kirillk e0bfed308c fix: harden Kilo CLI shutdown and prevent orphaned processes
Confirm process-tree exit after SIGKILL on the non-Windows kill path, and
escalate SIGTERM to SIGKILL on the shutdown-hook (no-wait) path so a
SIGTERM-ignoring tree is not orphaned on JVM exit. Deflake the process-tree
kill test by capturing both children deterministically and add coverage for
the no-wait escalation.

Make JetBrains IDE app-close teardown non-blocking: send SIGTERM and return,
letting the JVM shutdown hook confirm exit, so quitting the IDE no longer
stalls the EDT for up to several seconds. Stop plugin-unload teardown from
waiting on the lifecycle mutex behind an in-flight download.

Add a parent-death watchdog to `kilo serve`: the VS Code extension and
JetBrains plugin pass their PID via KILO_PARENT_PID and the server exits when
that process disappears, covering hard client kills where no signal or
shutdown hook runs.
2026-07-10 13:40:30 -04:00
kirillk af0297087d fix(jetbrains): make revert cancel and timeout end-to-end safe
Address review feedback on inline revert progress:

- Backend revert/unrevert now use a cancellable OkHttp call with a bounded
  request timeout, so coroutine cancellation aborts the in-flight request and
  a stuck request can no longer lock the session indefinitely.
- Cancel now actually cancels the active rollback/redo job instead of only
  relabeling the progress text; the UI stays locked on the operation until the
  backend request returns, then clears or reports the final outcome.
- The revert watchdog cancels the timed-out job and releases the operation
  lock via failReverting rather than leaving revertOp alive forever.
- TurnOpen/TurnClose no longer clobber an active revert operation state.
- The revert banner represents active rollback (not just redo) with inline
  progress and disabled redo controls so progress never silently disappears.
- Clear the mounted hover copy overlay when reverting starts so the rollback
  toolbar no longer lingers next to the progress row.
2026-07-10 13:15:11 -04:00
Jean du Plessis 117695689f Merge pull request #12106 from Kilo-Org/feat/scan-model-usage
feat(cli): improve model usage layout
2026-07-10 18:50:03 +02:00
kirillk 8afc161f50 fix(jetbrains): confirm CLI exit and rescan tree on kill
Address PR review: honor wait on the Windows tree-kill path so a
reported success is verified against actual process exit; re-enumerate
descendants before SIGKILL so children forked during the grace period
are escalated too. Rework the process-tree test to use a parent that
does not clean up its children so the assertions prove the tree kill.
Add a test for the disposal terminal-state guard.
2026-07-10 12:49:29 -04:00
kirillk a4a66b0e1e fix(jetbrains): log CLI process shutdown 2026-07-10 12:30:40 -04:00
kirillk 8b54e34414 test(jetbrains): stabilize revert progress tests 2026-07-10 12:22:34 -04:00
marius-kilocode 26f573d441 fix(vscode): preserve seccomp license resources 2026-07-10 18:20:29 +02:00
Jean du Plessis 1fd73ba2c0 fix(cli): space model usage sections 2026-07-10 17:58:53 +02:00
kirillk 12f510fcec test(jetbrains): reap CLI child in kill test 2026-07-10 11:46:57 -04:00
kirillk 465adb6fbf fix(jetbrains): translate revert status strings 2026-07-10 11:44:06 -04:00
Jean du Plessis b6b55d1a34 feat(cli): improve model usage layout 2026-07-10 17:43:26 +02:00
kirillk 3a26cb844b fix(jetbrains): harden revert operation state 2026-07-10 11:38:08 -04:00
kirillk 073d08179b fix(jetbrains): force lingering CLI children 2026-07-10 11:37:04 -04:00
kirillk 4458c5223b test(jetbrains): wait for killed child process 2026-07-10 11:27:25 -04:00
kirillk 8ceeb0fb99 fix(jetbrains): stop CLI on app close 2026-07-10 11:12:01 -04:00
kirillk c1b206b161 fix(jetbrains): show revert progress inline 2026-07-10 10:57:01 -04:00
Marius 2031f946b7 Merge pull request #12093 from Kilo-Org/fix-slow-settings-save
fix(vscode): speed up settings saves
2026-07-10 15:59:40 +02:00
marius-kilocode 643dc9e3a4 fix: log concurrent settings cleanup failures 2026-07-10 14:18:38 +02:00
marius-kilocode 202ed66527 fix(sandbox): address security review findings 2026-07-10 14:12:58 +02:00
marius-kilocode 50aad1715c fix(sandbox): wire activation services in HTTP API 2026-07-10 14:12:58 +02:00
marius-kilocode 78ebb2598b fix(sandbox): harden destination activation boundaries 2026-07-10 14:12:58 +02:00
marius-kilocode 1d6293d8ee test(vscode): skip unstable sandbox screenshots 2026-07-10 14:12:58 +02:00
marius-kilocode 98a067df53 test(sandbox): assert unsupported backend denial 2026-07-10 14:12:58 +02:00
marius-kilocode 10f6c744c9 test(sandbox): accept platform socket denial errors 2026-07-10 14:12:58 +02:00
marius-kilocode b38d31fee8 fix(sandbox): enable relay capability in bundled bwrap 2026-07-10 14:12:57 +02:00
marius-kilocode 4fa7491a85 fix(sandbox): use canonical capability name 2026-07-10 14:12:57 +02:00
marius-kilocode 66cf185853 fix(sandbox): address platform test failures 2026-07-10 14:12:57 +02:00
marius-kilocode 1e0b25a134 feat: allow sandbox network destinations 2026-07-10 14:12:57 +02:00
kilo-maintainer[bot] 0ab18c2bd4 chore: update nix node_modules hashes 2026-07-10 11:59:53 +00:00
Christiaan Arnoldus 7a5563e71a Merge pull request #12095 from Kilo-Org/revert/bedrock-buffer-pin
revert(cli): undo Bedrock buffer pin
2026-07-10 13:44:40 +02:00
Christiaan Arnoldus 1cfc1c1ee9 Merge pull request #12040 from rakshith1928/fix/hide-models-oauth
fix(codex): hide gpt-5.5-pro for Codex OAuth users
2026-07-10 13:31:56 +02:00