Commit Graph

2965 Commits

Author SHA1 Message Date
Kevin van Dijk d05c15ce2a Resolve merge conflicts 2026-02-17 14:09:16 +01:00
Kevin van Dijk 48d2419513 refactor: kilo compat for v1.1.59 2026-02-17 14:03:04 +01:00
Catriel Müller 5ce1886661 fix: remove duplicate kilo provider injection
Ensure kilo provider is deleted before re-injection to prevent duplication in model provider list
2026-02-16 16:42:25 -03:00
Marius 50a6238baf feat: merge upstream opencode v1.1.58 (#323)
* fix(tui): prevent home wordmark corruption in height-constrained terminals (#13069)

* feat(prompt): mode-specific input placeholders (#12388)

* fix(tui): keep /share available to copy existing link (#12532)

* fix(tui): dismiss dialogs with ctrl+c (#12884)

* fix(app): terminal resize

* fix(console): translations

* fix(app): terminal PTY buffer carryover

* fix(app): notifications on child sessions

* Revert "feat(desktop): add WSL backend mode (#12914)"

This reverts commit 213a87234d.

* release: v1.1.58

* refactor: kilo compat for v1.1.58

---------

Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: opencode <opencode@sst.dev>
2026-02-16 13:50:12 +00:00
Imanol Maiztegui 79ce389a92 fix(tui): correct inaccurate tips for slash commands and config fields 2026-02-16 11:47:25 +01:00
Lucas 1f2ee7d875 docs: add MCP config file path (~/.config/kilo/opencode.json) (#319)
* docs: add MCP config file path (~/.config/kilo/opencode.json)

- README: state where MCP is configured and format (mcp object, type local, command array)
- migration.md: add config file location section for macOS/Linux/Windows and format

* docs(mcp): align with code — path, filenames, schema refs

- README: mention opencode.jsonc; optional fields (environment, enabled, timeout); link to global/index.ts and config.ts McpLocal
- migration.md: document config load order (config.json, opencode.json, opencode.jsonc); Windows note (xdg-basedir); Config.McpLocal and file refs
2026-02-16 08:43:59 +00:00
Catriel Müller 7975fe9e80 refactor: update desktop binaries 2026-02-13 12:36:53 -03:00
Catriel Müller 2c0f53a4c1 merge dev 2026-02-13 10:46:28 -03:00
Catriel Müller 9b6caa3707 refactor: disable github action 2026-02-13 10:24:36 -03:00
Marius d97fb9a6da fix: revert Claude reasoning additions for Kilo Gateway (#305)
Disable reasoning for Claude models via Kilo Gateway until the
OpenRouter AI SDK is upgraded to v2.x (which includes the fix for
reasoning_details duplication - OpenRouterTeam/ai-sdk-provider#344).

Changes:
- Remove hardcoded reasoning effort for Claude in options()
- Return empty variants for Claude in variants()
- Remove Claude-specific reasoning.effort in smallOptions()
- Keep thinking/reasoning block stripping code (prevents corrupt
  reasoning_details from being sent back to the API)
- Caching continues to work via model.api.id matching

Fixes #303
2026-02-13 10:38:01 +01:00
Catriel Müller c5e52c11bf feat: kilo github migration 2026-02-12 19:36:23 -03:00
Christiaan Arnoldus 1de8c6f3cd Revert "feat: add x-kilocode-machineid header to API requests" 2026-02-12 23:00:57 +01:00
Igor Šćekić 4865714719 Merge branch 'dev' into feat/vscode-question-support 2026-02-12 11:35:08 +01:00
Igor Šćekić 02fa9f6243 feat(vscode): add support for answering LLM questions in the extension
Enable the question tool for the vscode client and implement the full
question flow: SSE events, HTTP reply/reject endpoints, session state,
DataBridge wiring, and an inline QuestionDock component that replaces
the prompt input while a question is pending.

Closes #238
2026-02-12 11:32:59 +01:00
Christiaan Arnoldus e67630da55 Merge pull request #271 from Kilo-Org/re-enable-prompt-caching-openrouter
Re-enable prompt caching for Kilo Gateway and OpenRouter
2026-02-12 10:56:42 +01:00
Dax ed208a4799 Change USER_AGENT prefix from 'opencode' to 'kilo' (#260)
* Change USER_AGENT prefix from 'opencode' to 'kilo'

* fix: use KILO_VERSION/KILO_CHANNEL globals and add kilocode_change marker

---------

Co-authored-by: Marius <marius@kilocode.ai>
2026-02-12 09:40:51 +00:00
Christiaan Arnoldus 5714cbcaa7 Apply suggestion from @chrarnoldus 2026-02-12 10:13:30 +01:00
Christiaan Arnoldus 6400e30760 Apply suggestions from code review 2026-02-12 10:13:17 +01:00
kiloconnect[bot] 67e7abfff6 Re-enable prompt caching for Kilo Gateway and OpenRouter
Previously prompt caching via applyCaching() was disabled for both
OpenRouter and Kilo Gateway to avoid modifying thinking blocks. PR #270
re-enabled it for Kilo Gateway only. This change re-enables it for both
providers by including isOpenRouterOrKilo in the caching condition.

Thinking block stripping still applies to both providers before caching
is applied, so the original concern about modified thinking blocks is
addressed.
2026-02-12 09:07:29 +00:00
kiloconnect[bot] 3e3385fbb3 fix: support remote MCP server migration in mcp-migrator (#247)
* fix: support remote MCP server migration in mcp-migrator

The MCP migrator only handled stdio/local MCP servers. When a user
configured a remote streamable-http or sse MCP server in
.kilocode/mcp_settings.json, it failed with:
  The "file" argument must be of type string. Received undefined

This happened because convertServer() always assumed local servers,
building a command array from server.command (which is undefined for
remote servers).

Changes:
- Add remote transport type detection (streamable-http, sse)
- Convert remote servers to Config.McpRemote (type: "remote")
- Pass through url and headers fields
- Make command optional in KilocodeMcpServer interface
- Add comprehensive tests for remote server migration

* fix: validate url/command before use in mcp-migrator

Add guard clauses for missing url on remote servers and missing command
on local servers instead of using non-null assertions that could crash
on malformed config files.

---------

Co-authored-by: Kilo Agent <agent@kilo.ai>
Co-authored-by: marius-kilocode <marius@kilocode.ai>
2026-02-12 08:19:44 +00:00
kilo-maintainer[bot] 324a30e679 chore: generate 2026-02-12 08:01:36 +00:00
Catriel Müller 1eedad9213 Refactor publish workflow and environment variables (#261)
* feat: changelog generation

* refactor: rename all ENV variables to KILO prefix

* refactor: publish rework

* refactor: publish rework

* refactor: unify git commiter action

* refactor: add all kilobots to the team
2026-02-12 09:00:51 +01:00
Marius 142f423b76 feat: add ask agent for read-only Q&A mode (#256)
* feat: add ask agent for read-only Q&A mode

Add a new primary 'ask' agent that answers questions and explains code
without making changes. Permissions are read-only: read, grep, glob,
list, question, webfetch, websearch, codesearch — edit, bash, and task
are denied. Migrators already had 'ask' in their known mode lists.

* fix: preserve .env read gating in ask agent, clarify read-only prompt

Address PR review feedback:
- Re-state *.env pattern map in ask agent permissions so the blanket
  deny+allow doesn't bypass the default env file gating
- Update prompt to say 'this agent is read-only' instead of implying
  edits are possible on request
- Add .env gating assertions to ask agent test
2026-02-12 08:47:14 +01:00
Catriel Müller 52588386a4 feat: merge opencode v1.1.57 2026-02-11 14:26:25 -03:00
Catriel Müller 029bbb9dc2 refactor: kilo compat for v1.1.57 2026-02-11 14:18:32 -03:00
Marius 12418f64ff fix: update default $schema URL from opencode.ai to kilo.ai (#249) 2026-02-11 17:24:02 +01:00
Marius 1589e757b4 fix: handle AbortError during kilo login and org selection (#251)
* fix: handle AbortError during kilo login and org selection

Async onSelect handlers in DialogKiloOrganization and team selection
were not wrapped in try/catch. Since DialogSelect calls onSelect
without awaiting the returned promise, any rejection (e.g. AbortError
from SDK signal) became an unhandled rejection that Bun dumped raw to
the terminal. Wrap all async SDK calls in org/team selection with
proper error handling and silently ignore AbortErrors.

* fix: log non-abort errors during fallback sync reset
2026-02-11 16:14:37 +00:00
Catriel Müller bc3512892d Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.55 2026-02-11 11:30:10 -03:00
Catriel Müller 3080736471 Merge pull request #224 from Kilo-Org/catrielmuller/kilo-opencode-v1.1.54
OpenCode v1.1.54
2026-02-11 11:29:51 -03:00
Kit Langton 17bdb5d56a fix(tui): dismiss dialogs with ctrl+c (#12884) 2026-02-11 09:03:59 -05:00
Kit Langton 7a463cd193 fix(tui): keep /share available to copy existing link (#12532) 2026-02-11 08:58:24 -05:00
Kit Langton 352a54c698 feat(prompt): mode-specific input placeholders (#12388) 2026-02-11 08:57:59 -05:00
Kit Langton 93957da2c9 fix(tui): prevent home wordmark corruption in height-constrained terminals (#13069) 2026-02-11 08:52:14 -05:00
Igor Šćekić aa0e341d04 Merge pull request #155 from Kilo-Org/add-o11y-phase-1b 2026-02-11 12:46:17 +01:00
Igor Šćekić 978fb3d078 refactor(session): use finished flag instead of try/catch for turn close reason
Replace try/catch wrapping ~400 lines with a finished flag pattern to
minimize upstream merge conflicts. Combine multiple kilocode_change
markers into single blocks.

Addresses review feedback from marius-kilocode on PR #155.
2026-02-11 12:36:34 +01:00
Marius 61df9982ee fix(mcp-migrator): use correct project-level filename mcp.json instead of mcp_settings.json (#230)
The Kilocode extension stores project-level MCP settings in
.kilocode/mcp.json, but the migrator was looking for
.kilocode/mcp_settings.json (which is only used for global settings).
This meant local MCP servers were never picked up by the CLI.
2026-02-11 10:25:03 +00:00
Aiden Cline d98bd4bd52 fix: add additional context overflow cases, remove overcorrecting ones (#13077) 2026-02-10 23:30:29 -06:00
Aiden Cline 0fd6f365be fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (#12924)
Co-authored-by: James Lal <james@littlebearlabs.io>
2026-02-10 19:55:22 -06:00
Catriel Müller 6827756fa1 feat: merge opencode v1.1.55 2026-02-10 22:48:25 -03:00
Aiden Cline 60bdb6e9ba tweak: /review prompt to look for behavior changes more explicitly (#13049) 2026-02-10 19:44:42 -06:00
Catriel Müller ad7e6a1d0d refactor: kilo compat for v1.1.55 2026-02-10 22:40:05 -03:00
Dax 6e9cd576ea fix(tui): default session sidebar to auto (#13046) 2026-02-11 01:26:01 +00:00
Catriel Müller f8131c2e00 feat: merge opencode v1.1.54 2026-02-10 22:10:03 -03:00
OpeOginni 53ec15a56a fix(tui): improve amazon-bedrock check to include container credentials (#13037) 2026-02-10 18:51:49 -06:00
Catriel Müller bc7991e92e feat: regenerate sdk 2026-02-10 20:21:55 -03:00
Catriel Müller f14f1c306b Merge pull request #221 from Kilo-Org/catrielmuller/ci-migration-contrib
refactor: CI workflow improvements for Kilo
2026-02-10 20:08:59 -03:00
Christiaan Arnoldus 82de52e6d8 Merge branch 'dev' into feat/add-machineid-header 2026-02-10 22:50:43 +01:00
Catriel Müller 013e65126d fix: fix registry url 2026-02-10 18:00:48 -03:00
Igor Šćekić bc2b7d5ea5 Merge branch 'dev' into add-o11y-phase-1b 2026-02-10 21:03:52 +01:00
Adam fc37337a3e fix(app): memory leak with platform fetch for events 2026-02-10 13:18:33 -06:00