Commit Graph

3604 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Catriel Müller 50121e0e20 feat: merge opencode v1.1.53 2026-02-09 13:07:23 -03:00
Catriel Müller afe2638ed2 refactor: kilo compat for v1.1.53 2026-02-09 13:02:30 -03:00
Marius fb2b39d701 fix: prevent startup banner layout shift and improve text rendering (#194)
Replace setTimeout polling loop with reactive createEffect to wait for
sync completion. Reserve space with a placeholder fallback to prevent
layout shift when notifications load. Fix banner icon consistency and
title overflow handling.
2026-02-09 10:10:47 -05:00
Marius 185f9d0500 fix: rebrand remaining OpenCode user-facing strings to Kilo (#192)
Replace OpenCode/opencode with Kilo/kilo in all user-facing CLI strings,
TUI dialogs, and error messages. String-only changes with kilocode_change
markers for upstream merge tracking.
2026-02-09 10:09:24 -05:00
Marius d173377a2b fix: use OAuth accountId for enterprise model list filtering (#193)
Enterprise users logging in via OAuth had their organization ID stored
in auth.accountId but the model fetch code never read it, causing the
model list to be fetched from the personal endpoint instead of the
org-specific endpoint that applies the allow list.
2026-02-09 10:08:19 -05:00
Catriel Müller e659015022 Merge pull request #149 from Kilo-Org/catrielmuller/kilo-opencode-v1.1.52
OpenCode v1.1.52
2026-02-09 11:47:24 -03:00
Igor Šćekić 77b6ba667c Merge branch 'dev' into add-o11y-phase-1b 2026-02-09 13:58:15 +01:00
Igor Šćekić cb84cb0439 fix(session): align close reason type and publish turn close reliably
Unify ingest queue and session close reasons via `Session.CloseReason` and
ensure `TurnOpen`/`TurnClose` publishing is awaited; mark close reason as
`error` on unexpected exceptions and handle abort-induced stops correctly.

Add ingest queue tests for stable-key coalescing of session open/close and for
including `?v=1` on flush requests.
2026-02-09 13:58:09 +01:00
Marius ec5c16310c docs: improve AGENTS.md with build commands, monorepo map, and architecture patterns (#185)
Add high-value, stable knowledge that saves discovery time:
- Root: build/dev commands, monorepo package table, SDK regen workflow
- Package: import aliases, key patterns (namespace modules, Instance.state,
  fn, Tool.define, BusEvent, NamedError, iife), storage model, TUI/server/
  provider stack info

Properly split root (repo-level) vs package (opencode-specific) concerns.
2026-02-09 13:34:35 +01:00
Marius 4adc994e10 feat: add debug and orchestrator built-in agents (#186)
* feat: add debug and orchestrator built-in agents

Add two new primary agents that legacy Kilo Code users expect:

- debug: systematic debugging methodology (reflect on causes, narrow
  down, add logs, confirm before fixing). Same permissions as code agent.
- orchestrator: coordinates complex tasks by delegating to explore and
  general subagents in parallel. Read-only + task delegation permissions.

Both are enabled by default and can be disabled via opencode.json:
  { "agent": { "debug": { "disable": true } } }

* docs: document debug and orchestrator agents in agents.mdx

* refine orchestrator prompt: add planning phase, wave-based execution, and file conflict avoidance
2026-02-09 13:32:46 +01:00
Marius 80495b755e fix: wrap auth list handler in Instance.provide to fix crash (#189)
`kilo auth list` crashes with "No context found for instance" because
ModelsDev.get() calls Config.get() when injecting the kilo provider,
which requires an Instance context. AuthLoginCommand and AuthLogoutCommand
already have this wrapper but AuthListCommand was missed.
2026-02-09 12:09:31 +00:00
Igor Šćekić 4a179f85c0 fix(session): mark turn close reason as interrupted on abort 2026-02-06 23:16:11 +01:00
Igor Šćekić 6ba626be19 fix(session): set turn close reason on abort/error
Ensure TurnClose is published with an accurate reason by marking aborted
turns as "interrupted" and stop-with-error turns as "error".
2026-02-06 23:02:51 +01:00
Igor Šćekić de05fea01b feat(session): track turn open/close in kilo ingest
Add session.turn.open and session.turn.close bus events and publish them
from the prompt loop with a close reason (completed/error/interrupted).
Extend the ingest queue to sync session_open/session_close items and
version the ingest endpoint with ?v=1.
2026-02-06 23:00:49 +01:00
opencode 579902ace6 release: v1.1.53 2026-02-05 23:08:56 +00:00
Dax Raad 9ff423bebf senior engineer senior engineering 2026-02-05 17:51:12 -05:00
Aiden Cline 1824db13cf tweak: load user plugins after builtin (#12373) 2026-02-05 22:49:48 +00:00
Aiden Cline 36637b3be0 chore: rm hardcoded conditional that was used for testing (#12371) 2026-02-05 16:31:52 -06:00
Dax a45841396f core: fix unhandled errors when aborting with queued messages (#12369) 2026-02-05 22:27:27 +00:00
Akshar Patel 102d8e72bb fix(tui): allow mouse escape via "esc" labels in dialogs (#11421) 2026-02-05 16:14:49 -06:00
Rafi Khardalian 09a0e921ce fix(plugin): user plugins override built-in plugins for same provider (#12361) 2026-02-05 16:04:02 -06:00
Aiden Cline b551195818 tweak: move codex 5.3 model definition to the plugin so that models.dev doesnt have to show unsupported model for others (#12344) 2026-02-05 20:53:26 +00:00
Catriel Müller f8193095d0 fix: fix GitlabAuth Plugin definition 2026-02-05 16:46:39 -03:00
Catriel Müller eb213cb635 feat: merge opencode v1.1.52 2026-02-05 16:43:43 -03:00
Catriel Müller e61999fc4b refactor: kilo compat for v1.1.52 2026-02-05 16:16:59 -03:00
Marius 390b479fcd Add kilo provider model configuration (#148) 2026-02-05 20:13:01 +01:00
Steffen Deusch 8ddef975b7 feat(acp): add session usage (#12299)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
2026-02-05 12:58:09 -06:00
Aiden Cline 2f78705f6e tweak: update transforms for gpt-5.3 (#12325) 2026-02-05 12:49:40 -06:00
opencode a0bc656215 release: v1.1.52 2026-02-05 18:48:54 +00:00
Dax Raad 47f00d23b3 enable 5.3 codex 2026-02-05 13:23:58 -05:00
Goni Zahavy 40ebc34909 feat(tui): add running spinner to bash tool in TUI (#12317) 2026-02-05 12:23:02 -06:00
Catriel Müller d76782e3ca fix: fix publish legacy 2026-02-05 15:15:51 -03:00
Dax Raad 7c748ef089 core: silently ignore proxy command failures to prevent config initialization crashes 2026-02-05 12:47:32 -05:00
Aiden Cline fba5a79c45 fix: ensure that github copilot plugin properly sets headers when used in other clients than tui (#12316) 2026-02-05 11:40:29 -06:00
Dax Raad 9adcf524e2 core: bundle GitLab auth plugin directly instead of dynamic install
Remove dynamic installation of built-in plugins. GitLab auth is now imported

directly as an internal plugin, eliminating network requests during startup

and simplifying the plugin loading logic.

Removes the need for test mocks since plugins are no longer

dynamically installed at runtime.
2026-02-05 11:29:00 -05:00