Commit Graph

3682 Commits

Author SHA1 Message Date
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 cb13cb5606 fix: fix binary names 2026-02-11 14:33:27 -03: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
kilo-maintainer[bot] f623423b8d chore: generate 2026-02-11 16:14:28 +00:00
Catriel Müller 04ee7c527c Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.55 2026-02-11 11:45:25 -03:00
Igor Šćekić 19b781df6a Merge pull request #239 from Kilo-Org/add-task-header 2026-02-11 15:34:23 +01: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
opencode edcfd562af release: v1.1.57 2026-02-11 13:45:34 +00:00
Igor Šćekić ce50833ddf chore(opencode): alphabetize package.json dependencies 2026-02-11 13:24:08 +01: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
opencode 1bbbd51d48 release: v1.1.56 2026-02-10 22:12:25 +00: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
opencode fbc41475b4 release: v1.1.55 2026-02-10 20:21:34 +00:00
Igor Šćekić bc2b7d5ea5 Merge branch 'dev' into add-o11y-phase-1b 2026-02-10 21:03:52 +01:00
Dax Raad a0673256db core: increase test timeout to 30s to prevent failures during package installation 2026-02-10 14:25:25 -05:00
Adam fc37337a3e fix(app): memory leak with platform fetch for events 2026-02-10 13:18:33 -06:00
Dax 8bdf6fa359 fix: show helpful message when free usage limit is exceeded (#13005) 2026-02-10 19:04:10 +00:00
opencode 1d11a0adfd release: v1.1.54 2026-02-10 19:04:02 +00:00
John Fawcett 1762590ff4 feat(opencode): add project ID resolution and tracking
refactor(opencode): improve project ID resolution and normalization
Implement logic to resolve a unique project identifier with priority given
to `.kilocode/config.json` and falling back to the git origin remote URL.
The resolved ID is normalized, cached per-instance, and sent as a header
to the Kilo Gateway provider to enable project-specific tracking.
2026-02-10 12:10:00 -06:00
Adam 659f15aa9b fix(app): no changes in review pane 2026-02-10 11:53:33 -06:00
Adam 3929f0b5bd fix(app): terminal replay (#12991) 2026-02-10 10:15:19 -06:00
Dax 27fa9dc843 refactor: clean up dialog-model.tsx per code review (#12983) 2026-02-10 15:13:37 +00:00
Marius 337c05849b fix: use 'max' instead of 'xhigh' as highest reasoning effort for Anthropic models on Kilo Gateway (#213)
* fix: use 'max' instead of 'xhigh' as highest reasoning effort for Anthropic models on Kilo Gateway

Anthropic's native effort levels are low/medium/high/max, not xhigh.
The upstream merge replaced the Kilo-specific effort mapping with
OPENAI_EFFORTS which uses xhigh. This restores 'max' as the
user-facing variant name while mapping it to 'xhigh' on the wire
for OpenRouter API compatibility.

* fix: clarify comment about OpenRouter effort naming vs Anthropic naming
2026-02-10 11:47:14 -03:00
Marius c8464fbc98 feat: add Kilo soul prompt for consistent personality across all models (#214)
* feat: add Kilo soul prompt for consistent personality across all models

* fix: gate soul prompt behind Codex check to match existing prompt delivery pattern

Codex sessions deliver prompts via options.instructions, not system messages.
Prepend the soul to options.instructions for Codex, and skip it from the
system array, matching how SystemPrompt.provider() is already handled.
2026-02-10 14:03:55 +00:00
Peter Dave Hello 87795384de chore: fix typos and GitHub capitalization (#12852) 2026-02-10 06:53:38 -06:00
Marius 7c548fa4b6 fix: make Ctrl+C interrupt instead of kill, require double-press to exit (#195)
* fix: make Ctrl+C interrupt instead of kill, require double-press to exit

* fix: revert config changes, handle ctrl+c double-press in event handlers only

Reverts keybind default changes (unnecessary — ctrl+c overlap is handled
by event priority in onKeyDown). Adds missing preventDefault() in
child-session ctrl+c handler to prevent SIGINT.
2026-02-10 12:32:18 +00:00
Adam 4a73d51acd fix(app): workspace reset issues 2026-02-10 05:52:34 -06:00
kiloconnect[bot] 025dbcb4df fix: use object-based reasoning format for Codex models with Kilo provider (#206)
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
2026-02-10 10:41:12 +00:00
kiloconnect[bot] 7ac6852a46 feat: add x-kilocode-machineid header to API requests
Add the x-kilocode-machineid HTTP header to outgoing requests when using
the kilo-gateway. This enables the cloud backend to track machine IDs
in the microdollar_usage_metadata table (Kilo-Org/cloud#90).

The header is set alongside the existing x-kilocode-mode header when
the model API uses @kilocode/kilo-gateway.
2026-02-10 10:00:17 +00:00
Dax Raad 63cd763418 Revert "feat: add version to session header and /status dialog (#8802)"
This reverts commit ac54535486.
2026-02-10 00:01:28 -05:00