Commit Graph

4130 Commits

Author SHA1 Message Date
Alex Alecu 97fccc0abb test(memory): remove broad memory regression suite 2026-02-26 13:33:36 +02:00
Alex Alecu cd3bee9e05 test(memory): remove MCP-specific docs and lifecycle tests 2026-02-26 13:33:22 +02:00
Alex Alecu e54479d2cd fix: drop MCP transport monkey patching 2026-02-26 13:33:06 +02:00
Alex Alecu 9ee536c9c5 test(memory): replace orphan sleeps with exit waits 2026-02-26 09:47:34 +02:00
Alex Alecu d90548092d test(memory): wait for MCP process exit before counting 2026-02-26 09:44:57 +02:00
Alex Alecu f1932fcc14 test(memory): scope orphan baselines per test 2026-02-26 09:42:10 +02:00
Alex Alecu ed4e1394f0 test(memory): isolate MCP baseline per test 2026-02-26 09:40:07 +02:00
Alex Alecu 05c0847eb3 test(memory): remove unsafe LSP any casts 2026-02-26 09:35:55 +02:00
Alex Alecu 6cd5a4c904 test(memory): make isAlive errno-aware 2026-02-26 09:34:17 +02:00
Marian Alexandru Alecu d76d563226 Merge branch 'main' into fix/memory-leak 2026-02-26 09:09:19 +02:00
Alex Alecu db3cec1634 fix(tui): terminate orphaned CLI when terminal parent exits
Handle tab-close paths where the shell dies without forwarding SIGHUP/SIGTERM, which left `bun run ...` alive as an orphan. Add a parent-liveness watchdog in the TUI thread and route shutdown through a single idempotent `shutdownAndExit` path. Also guard the normal `process.exit(0)` path so signal/parent-exit codes are not overridden.
2026-02-26 08:29:22 +02:00
Kevin van Dijk d92b94e7ca Merge pull request #6354 from Kilo-Org/kevinvandijk/kilo-opencode-v1.2.11
OpenCode v1.2.11
2026-02-26 02:40:08 +01:00
Kevin van Dijk be21724abd Update packages/opencode/script/postinstall.mjs
Co-authored-by: Catriel Müller <catrielmuller@gmail.com>
2026-02-26 02:20:50 +01:00
Christiaan Arnoldus fbfd6c1ab4 Revert "Remove fixDuplicateReasoning function" 2026-02-25 23:18:32 +01:00
kilo-maintainer[bot] e44534e28e release: v7.0.30 2026-02-25 19:52:06 +00:00
Marius 41995929cd fix: resolve diff viewer race condition and add diagnostics for Agent Manager (#6352)
* fix: resolve diff viewer race condition and add diagnostics for Agent Manager

onRequestWorktreeDiff now awaits stateReady before resolving the diff
target, preventing a race where startDiffWatch fires before state loads
from disk. Added diagnostic logging to resolveDiffTarget, diff polling,
and the server-side /experimental/worktree/diff endpoint so silent
failures become visible in the output channel.

* fix: guard stateReady await so rejection doesn't break diff polling

* docs: clarify why .catch() is required on stateReady await
2026-02-25 18:07:42 +00:00
Kevin van Dijk 2b05e4f40b Resolve merge conflicts 2026-02-25 18:34:18 +01:00
Kevin van Dijk 42a7e019ef refactor: kilo compat for v1.2.11 2026-02-25 18:14:54 +01:00
Christiaan Arnoldus ea40081a56 Merge pull request #6337 from Kilo-Org/session/agent_2b4968a6-6808-4df7-9d6b-e11307fcadbb
Remove fixDuplicateReasoning function
2026-02-25 18:00:47 +01:00
Alex Alecu 7182d4c504 fix: Clear RPC channel for faster shutdown 2026-02-25 17:27:11 +02:00
Mark IJbema a8c693e8e8 use Anthropic prompt for kilo/auto model 2026-02-25 16:15:27 +01:00
Alex Alecu 748cee0b02 fix: ensure MCP process tracking cleanup runs even if close rejects
Wrap originalClose() and child-process cleanup in try/finally so that
delete processes[key] always executes. Previously, if originalClose()
threw, the process map entry would be left stale, risking incorrect
PID references in later lifecycle operations.
2026-02-25 15:44:36 +02:00
Alex Alecu a2d182ab23 fix: unref shutdown timer in TUI worker to avoid keeping process alive
The setTimeout fallback in terminateWorker can keep the event loop open
even when the worker exits promptly, delaying shutdown paths triggered
by signals. Unref the timer so normal fast shutdown is not blocked by
this fallback.
2026-02-25 15:44:19 +02:00
Christiaan Arnoldus a678a84bb2 Merge branch 'main' into session/agent_2b4968a6-6808-4df7-9d6b-e11307fcadbb 2026-02-25 14:41:29 +01:00
Alex Alecu 7e38aaa18f fix: replace empty catch blocks in memory test helpers with isAlive/trySendSignal utilities 2026-02-25 15:39:45 +02:00
Alex Alecu 5fe6b1eded fix: close existing MCP client before create() in add() to prevent process map corruption 2026-02-25 15:39:27 +02:00
Marius 8551d95447 perf: filter tool diagnostics to only edited files, reducing session payload 50-77% (#6241)
* perf: filter tool diagnostics to only edited files

Tools (edit, write, apply_patch) stored LSP diagnostics for ALL project
files in their metadata. In large projects this adds 100-500KB of
unrelated diagnostics per tool call, bloating session payloads by
50-77%.

The UI only renders diagnostics for the edited file(s), so the rest is
dead weight. Extract a filterDiagnostics utility that keeps only the
relevant files' diagnostics and use it in all three tools.

* add kilocode_change marker to diagnostics filter test
2026-02-25 14:32:42 +01:00
kilo-maintainer[bot] a971f7e480 release: v7.0.29 2026-02-25 12:19:23 +00:00
Alex Alecu 3ab63cf234 Merge branch 'fix/memory-leak' of https://github.com/Kilo-Org/kilocode into fix/memory-leak 2026-02-25 13:23:46 +02:00
Alex Alecu bc63efdd81 fix: close existing MCP client before spawning replacement in connect()
Previously, connect() called create() (which spawns a new child process
and writes processes[key]) before closing the existing client. The old
client's close handler would then delete processes[key], removing the
*new* process entry from the map — losing track of the new child.

Move the existing client close to before create(), matching the pattern
already used in add().
2026-02-25 13:17:31 +02:00
Alex Alecu 5d22ab6368 fix: document SDK version for private _process field access
Add a comment noting that (transport as any)._process relies on a private
implementation detail of StdioClientTransport from @modelcontextprotocol/sdk@1.25.2.
Future SDK upgrades should verify this field still exists.
2026-02-25 13:17:07 +02:00
Alex Alecu ee6325d559 fix: guard terminateWorker against multiple invocations
terminateWorker is registered on SIGHUP, SIGTERM, and used in onExit.
If a signal fires and then onExit triggers (or two signals arrive),
worker.terminate() and client.call('shutdown') would fire redundantly.

Cache the pending promise so subsequent calls return the same operation.
2026-02-25 13:16:48 +02:00
Marian Alexandru Alecu 0b635fd726 Merge branch 'main' into fix/memory-leak 2026-02-25 13:07:43 +02:00
Alex Alecu 779121f9e7 fix: resolve /exit hang caused by undelivered worker RPC response
The shutdown RPC call to the worker thread never resolved because the worker's event loop drained after cleanup, preventing the postMessage result from being delivered back to the main thread. This left process.exit() unreachable and the process hanging indefinitely.

Replace the blocking await with a fire-and-forget shutdown RPC that waits for the worker's close event (up to 5s timeout) before calling worker.terminate().
2026-02-25 12:51:59 +02:00
Marian Alexandru Alecu d8ce43fcf8 Merge pull request #6240 from Kilo-Org/fix/fix-plan-mode-suggestions
fix(plan): Show implementation suggestions only when LLM has all the information
2026-02-25 12:18:04 +02:00
Marius 138f1bd95f feat(vscode): add diff viewer panel to Agent Manager (#6335)
* feat(vscode): add diff viewer panel to Agent Manager

* Update translations

* Fix comments
2026-02-25 10:16:14 +00:00
Evgeny Shurakov 860534ccbe Update kilocode_change 2026-02-25 10:49:04 +01:00
kiloconnect[bot] d9b5b3e771 Remove fixDuplicateReasoning function
Remove the fixDuplicateReasoning workaround function and its call site
from the message transform pipeline. This function was a workaround for
@openrouter/ai-sdk-provider v1 duplicating reasoning, which was fixed
upstream in OpenRouterTeam/ai-sdk-provider#344.
2026-02-25 09:45:25 +00:00
Evgeny Shurakov 477434506f Config - Fix plugin package name from @opencode-ai/plugin to @kilocode/plugin 2026-02-25 10:45:00 +01:00
Alex Alecu 32ddfe4b0a fix: prevent MCP child process orphaning on close/dispose 2026-02-25 11:09:46 +02:00
Alex Alecu 67e0694039 Merge branch 'fix/fix-plan-mode-suggestions' of https://github.com/Kilo-Org/kilocode into fix/fix-plan-mode-suggestions 2026-02-25 09:46:20 +02:00
Alex Alecu 7143683e20 fix: Fix plan_exit call 2026-02-25 09:46:17 +02:00
Marian Alexandru Alecu 3653c79395 Merge branch 'main' into fix/fix-plan-mode-suggestions 2026-02-25 09:45:49 +02:00
kilo-maintainer[bot] 890c33cdda release: v7.0.28 2026-02-25 07:09:16 +00:00
opencode 29ddd55088 release: v1.2.11 2026-02-24 23:29:02 +00:00
James Long 2c00eb60bd feat(core): add workspace-serve command (experimental) (#14960) 2026-02-24 17:34:34 -05:00
Kevin van Dijk 8c852f7afe Resolve merge conflicts 2026-02-24 19:53:15 +01:00
Kevin van Dijk bd0148906c refactor: kilo compat for v1.2.10 2026-02-24 19:48:39 +01:00
Kevin van Dijk 0514802611 Resolve merge conflicts 2026-02-24 18:34:12 +01:00
Kevin van Dijk fca4c4ed61 refactor: kilo compat for v1.2.9 2026-02-24 18:32:20 +01:00