Commit Graph

15390 Commits

Author SHA1 Message Date
hdcode.dev 438316b09a fix(cli): stop hardcoding opencode in kilo pr (#6824)
* fix(cli): stop hardcoding opencode in kilo pr

* fix(cli): stop hardcoding opencode in kilo pr

* fix pr command cli resolution for subcommand args
2026-04-27 13:14:47 +02:00
Scuttle Bot f7bea4f520 docs: add @git-changes to VS Code context mentions (#9505)
* docs: add @git-changes mention to VS Code context mentions page

* Apply suggestion from @kilo-code-bot[bot]

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>

---------

Co-authored-by: scuttlebot <scuttlebot@olearycrew.com>
Co-authored-by: Marius <marius@kilocode.ai>
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-04-27 13:14:47 +02:00
Alex Alecu 2704656e39 refactor(cli): simplify stats cost 2026-04-27 13:14:10 +02:00
Alex Alecu 12e92fa247 chore(cli): mark stats cost line 2026-04-27 13:14:10 +02:00
Alex Alecu 9e419b3e86 fix(cli): count subagent stats 2026-04-27 13:14:10 +02:00
Alex Alecu 2a94a0cc11 fix(cli): ignore deleted cost sync 2026-04-27 13:14:10 +02:00
Alex Alecu af0227b1ab fix(cli): exclude subagent sessions from stats aggregate
The task tool propagates each child session's total cost into the parent's tool-wrapper assistant message. Counting both root and child sessions in `kilo stats` would double-count that contribution. Filter `getAllSessions()` to root sessions (parent_id IS NULL), matching how the TUI session list and web sidebar already treat child sessions.
2026-04-27 13:14:10 +02:00
Alex Alecu d9bed85e78 fix(cli): sync processor cost after subagent propagation
finish-step and cleanup previously re-wrote the parent assistant message with a stale in-memory cost, clobbering the subagent cost written by task.ts during tool execution. Refresh from DB before each write so the propagated cost is preserved across steps. Verified live via side-by-side `kilo serve` vs dev `bun serve` with 2 parallel subagents; parent now shows own LLM + children, matching real spend.
2026-04-27 13:14:10 +02:00
Alex Alecu f57479c657 fix(cli): serialize concurrent subagent cost propagation 2026-04-27 13:14:10 +02:00
Alex Alecu aaaa191b76 fix(cli): include subagent costs in session total (#6321)
When a session spawned subagents via the task tool, the displayed cost reflected only the parent's own LLM steps. Propagate each subagent's total up to the invoking assistant message so every UI sums the full tree.
2026-04-27 13:14:10 +02:00
Imanol Maiztegui 6d5f686b8d Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.22 2026-04-27 12:30:06 +02:00
Marius b344ac97c6 fix(vscode): restore disabled provider management (#9551)
* fix(vscode): restore disabled provider management

* fix(vscode): allow disabling Kilo Gateway

* fixup! fix(vscode): allow disabling Kilo Gateway

* fixup! fixup! fix(vscode): allow disabling Kilo Gateway

* chore: update kilo-vscode visual regression baselines

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-27 12:22:43 +02:00
Mark IJbema fc9cf245a5 Merge pull request #9310 from Kilo-Org/mark/mercury-autocomplete-integration
feat(autocomplete): add Mercury Edit by Inception as selectable autocomplete model
2026-04-27 12:18:20 +02:00
Mark IJbema 60e8aafe80 Merge pull request #9552 from Kilo-Org/mark/9527-clear-agent-model-override
fix(vscode): allow clearing agent model override
2026-04-27 12:10:31 +02:00
Imanol Maiztegui b938e7d042 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.22 2026-04-27 12:05:36 +02:00
Marius c5614cc54e feat(vscode): open config files from settings (#9548)
* feat(vscode): open config files from settings

* fix(vscode): localize config file picker

* chore(kilo-docs): update source links

* fix(vscode): reuse settings translations for config picker

* chore: update kilo-vscode visual regression baselines

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-27 10:00:14 +00:00
Mark IJbema 99493f42a7 test(vscode): ensure autocomplete model enum and registry stay in sync 2026-04-27 11:46:53 +02:00
Mark IJbema dddc92a01a Merge pull request #9426 from Kilo-Org/fix/statusbar-kilo-logo
fix(vscode): add Kilo logo icon to status bar
2026-04-27 11:25:01 +02:00
Imanol Maiztegui a63a27a366 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.22 2026-04-27 11:23:37 +02:00
kiloconnect[bot] 3f0bf322c1 fix(vscode): allow clearing agent model override by sending null
Clearing the Model Override field for native agents (e.g. Explore,
General) sent the patch as `{ model: undefined }`. JSON.stringify drops
undefined, so the backend received an empty patch, the override stayed
in kilo.json, and the next configUpdated push repopulated the field.

Send `null` instead — the backend's patchJsonc already treats null as
a delete sentinel (matches the pattern already used in ModelsTab and
AutoApproveTab). Fixes #9527.
2026-04-27 09:18:42 +00:00
Marius a5bca011a1 Allow ChatGPT login over OpenAI provider config (#9549)
* fix: allow ChatGPT login over OpenAI provider config

Let users with inherited or globally configured OpenAI API keys sign in with ChatGPT for Codex without first removing their existing provider setup.

* fix: satisfy provider login ci checks

Annotate Kilo-specific shared CLI changes and apply webview formatting so the existing ChatGPT login flow passes CI.
2026-04-27 11:17:04 +02:00
Marius dbf113524e fix(cli): guard external directory boundaries (#9484)
* fix(cli): guard external directory boundaries

* test(cli): move boundary regressions to kilocode tests

* fix(cli): scope root guard to permission prompts

* test(cli): isolate boundary regression fixtures

* test(cli): simplify boundary regression coverage
2026-04-27 11:15:57 +02:00
kilo-maintainer[bot] 6965d56918 release: v7.2.25 2026-04-27 08:58:51 +00:00
kiloconnect[bot] db1227da2c fix(vscode): validate autocomplete model settings 2026-04-27 08:55:44 +00:00
kiloconnect[bot] 7ac2a01068 test(vscode): cover autocomplete model selection 2026-04-27 08:54:51 +00:00
kiloconnect[bot] 1f8d9aac64 Merge branch 'main' into mark/mercury-autocomplete-integration 2026-04-27 08:54:17 +00:00
Marian Alexandru Alecu a2b72044e0 Merge branch 'main' into fix/queued-messages-test 2026-04-27 11:48:19 +03:00
Imanol Maiztegui 2d3827996e Merge pull request #9284 from Kilo-Org/docs/plugins
docs(kilo-docs): add plugins documentation page
2026-04-27 10:11:16 +02:00
Imanol Maiztegui bd92a02300 Merge branch 'main' into docs/plugins 2026-04-27 09:58:19 +02:00
Imanol Maiztegui 94f47d452e Merge branch 'main' into fix/openrouter-deepseek-reasoning 2026-04-27 09:54:31 +02:00
kiloconnect[bot] f631338576 chore(cli): add kilocode_change markers to ported shell cwd fix 2026-04-27 07:38:01 +00:00
kiloconnect[bot] e8c13e0ee8 fix(cli): preserve shell cwd after login startup 2026-04-27 07:31:57 +00:00
Alex Alecu 778c5a84e0 test(cli): guard queued prompt request tail (#9492)
Strengthen the Kilo queue integration test to capture each LLM
request body and assert the second request ends with the queued
user message, not a prior-turn assistant tail. Update the skipped
upstream prompt-effect active-run test comment to reference #9492
and point at the Kilo-specific authoritative coverage.
2026-04-27 10:22:03 +03:00
Josh Lambert 604f44854a fix(gateway): use updated OpenRouter SDK for DeepSeek reasoning 2026-04-26 20:04:03 -04:00
Josh Lambert 55ddf87040 Revert "fix(cli): also skip interleaved reasoning transform for @kilocode/kilo-gateway"
This reverts commit 1dd436d61a.
2026-04-26 19:55:56 -04:00
Josh Lambert 1dd436d61a fix(cli): also skip interleaved reasoning transform for @kilocode/kilo-gateway
The gateway wraps @openrouter/ai-sdk-provider internally, so the same
openrouter SDK-side reasoning handling applies. Without this, users
routing through api.kilo.ai still see DeepSeek 400 'reasoning_content
must be passed back' errors.
2026-04-26 11:29:26 -04:00
Josh Lambert a1557d1a1f chore: annotate cherry-picked upstream changes with kilocode_change markers 2026-04-26 11:09:07 -04:00
Aiden Cline c884cea5ba fix: ensure openrouter behaves correctly 2026-04-26 10:55:41 -04:00
Aiden Cline be25acb17a fix: bump openrouter sdk version to resolve deepseek reasoning issue (bug was in sdk pkg) 2026-04-26 10:55:36 -04:00
Aiden Cline f724b8f3af fix: ensure assistant messages always have reasoning on them for deepseek (#24180) 2026-04-26 10:54:59 -04:00
Aiden Cline 3d219b5ff0 fix: support max for deepseek (#24163) 2026-04-26 10:54:54 -04:00
Aiden Cline 67de590e71 fix: deepseek variants (#24157) 2026-04-26 10:54:48 -04:00
Joshua Lambert ef9b09cd90 Merge branch 'main' into docs/plugins 2026-04-25 17:04:28 -04:00
kilo-maintainer[bot] f6be4ee44e release: v7.2.24 2026-04-25 17:45:18 +00:00
Josh Lambert 50f35690d9 docs(kilo-docs): correct kilo plugin config file paths
The command writes to .opencode/opencode.jsonc and .opencode/tui.jsonc
(or ~/.config/kilo/* for --global), not kilo.json. See #9503 for the
underlying bug — when fixed, this doc must be updated in the same PR.
2026-04-25 13:26:18 -04:00
Josh Lambert fcfaec28ed docs(kilo-docs): inline plugin availability note into intro 2026-04-25 13:17:45 -04:00
Josh Lambert 0472e8555f docs(kilo-docs): drop kilo serve reference from plugins page
Address review feedback: refer to plugin availability in terms of the
CLI and VS Code extension instead of the kilo serve internals.
2026-04-25 13:10:34 -04:00
Imanol Maiztegui 44f463fdba test: skip ripgrep-dependent tests on windows 2026-04-25 18:05:56 +02:00
Imanol Maiztegui 09513e09a7 fix(prompt): clean up shell invocation comments and simplify cwd handling
Remove explanatory block comments and intermediate variable assignment
(`__oc_cwd`) that were left over from the previous iteration. Use
`cd -- "$1"` directly instead of the two-step capture-then-cd pattern,
and rename the argv[0] placeholder from `_opencode` to `opencode`.
2026-04-25 13:18:02 +02:00
Imanol Maiztegui b21778dec1 refactor(session): pass cwd as positional arg to login shells instead of capturing it
Replace the `pwd -P` approach with an explicit positional argument (`$1`)
for zsh and bash login shell invocations. Login shells source profile
scripts (`/etc/profile`, `~/.profile`, `~/.bashrc`) before the `-c`
script executes, and those scripts may change the working directory
(e.g. nvm, direnv), making both `$PWD` and `pwd -P` unreliable at
script evaluation time. By passing `ctx.directory` as `$1` and falling
back to `$PWD` when unset, the shell script always receives the correct
session directory regardless of profile side effects.

Simplify the corresponding integration test by removing verbose CI
debug probes and replacing them with a straightforward `pwd` assertion.
2026-04-25 11:09:17 +02:00