Commit Graph

2783 Commits

Author SHA1 Message Date
Catriel Müller 452320af42 feat: merge opencode v1.1.49 2026-02-04 17:06:38 -03:00
Catriel Müller 15ae2b1b1e refactor: kilo compat for v1.1.49 2026-02-04 16:43:32 -03:00
Catriel Müller 1a0b0077dc feat: merge opencode v1.1.48 2026-02-04 14:48:20 -03:00
Catriel Müller b0b442da2c refactor: kilo compat for v1.1.48 2026-02-04 14:43:20 -03:00
Catriel Müller e4163a0ff0 feat: merge opencode v1.1.46 2026-02-04 13:46:48 -03:00
Catriel Müller f5a1d5ce49 refactor: kilo compat for v1.1.46 2026-02-04 13:42:25 -03:00
Catriel Müller 017b6d04e2 Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.43 2026-02-04 15:15:26 +01:00
Catriel Müller 60f5d043fa fix: fix e2e test model selection 2026-02-04 11:13:39 -03:00
Igor Šćekić 83f9e45ea6 fix(provider): drop kilo/auto sort priority 2026-02-04 14:15:51 +01:00
Igor Šćekić 30c59a7336 fix(provider): remove injected kilo/auto virtual model 2026-02-04 13:24:49 +01:00
Catriel Müller a3cdff968c Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.43 2026-02-04 13:15:59 +01:00
Marius 452ab52d47 feat: enable reasoning for Claude models via Kilo Gateway (#101)
* feat: enable reasoning for Claude models via Kilo Gateway

Enable extended thinking/reasoning support for Claude models when using
Kilo Gateway (OpenRouter-based). This includes:

- Add Kilo Gateway to OpenRouter SDK key mapping
- Skip toolCallId normalization for OpenRouter/Kilo to preserve thinking blocks
- Strip thinking/reasoning blocks from messages before sending to avoid
  Anthropic API signature validation errors (blocks must be unchanged)
- Skip caching for OpenRouter/Kilo to avoid modifying thinking blocks
- Add Claude-specific reasoning effort variants for Kilo Gateway
- Enable default medium reasoning effort for Claude via Kilo Gateway
- Add proper smallOptions handling for Claude vs other models

The key insight is that Anthropic's API requires thinking blocks to be
EXACTLY unchanged with valid signatures. Since our storage reconstructs
messages, we strip thinking blocks (already shown to user) rather than
risk signature validation failures.

* fix: drop empty messages after stripping thinking blocks
2026-02-04 12:19:02 +01:00
Catriel Müller 88f06392d5 resolve merge conflicts 2026-02-03 19:28:35 -03:00
Catriel Müller 6131bb35e5 refactor: kilo compat for v1.1.43 2026-02-03 18:25:15 -03:00
Marius a1891e361e fix: rebrand OpenCode to Kilo in permission dialog (#100)
* fix: rebrand OpenCode to Kilo in permission dialog

* fix: rebrand remaining OpenCode reference in reject flow
2026-02-03 20:41:41 +01:00
Igor Šćekić 562207b8dc feat(kilo-sessions): allow overriding Kilo API URL via env 2026-02-03 16:27:25 +01:00
Igor Šćekić 289f1b2873 Merge pull request #92 from Kilo-Org/add-auto-model 2026-02-03 16:18:42 +01:00
Marius e0163ad054 feat: re-enable auto-update for npm with @kilocode/cli (#96)
* feat: re-enable auto-update for npm with @kilocode/cli

- Re-enable auto-upgrade but only for npm installations
- Update method detection to check for @kilocode/cli
- Update upgrade commands to use @kilocode/cli for npm/pnpm/bun
- Fetch latest version from @kilocode/cli on npm registry

* Also allow pnpm and bun
2026-02-03 15:20:30 +01:00
Igor Šćekić 5e729cd4f7 Merge branch 'dev' into add-auto-model 2026-02-03 14:26:28 +01:00
Marius e871803ff8 fix: use reasoningEffort instead of nested reasoning object for Kilo Gateway (#89) 2026-02-03 11:16:52 +01:00
Marius 70aba4ff96 fix: include encrypted reasoning content for GPT models via Kilo Gateway (#88)
GPT models accessed through Kilo Gateway were missing the
'include: ["reasoning.encrypted_content"]' option, causing
organization_id mismatch errors when encrypted reasoning content
was passed back in multi-turn conversations.

- Add reasoningSummary and include options to effortVariants for Kilo Gateway
- Extend options() condition to include @kilocode/kilo-gateway npm package
2026-02-03 10:45:43 +01:00
Marius f27c1a8277 Revert "feat: add Claude extended thinking variants for Kilo Gateway (#86)" (#87)
This reverts commit 38c6b26db9.
2026-02-03 10:22:12 +01:00
Marius 38c6b26db9 feat: add Claude extended thinking variants for Kilo Gateway (#86)
Enable reasoning effort level cycling (Ctrl+T) for Claude models through
Kilo Gateway by:

- Adding @kilocode/kilo-gateway to sdkKey() to use 'openrouter' key for
  provider options
- Adding dedicated variants() case for Claude/Anthropic models with full
  effort levels (none, minimal, low, medium, high, xhigh)
- Supporting grok-3-mini reasoning variants through Kilo Gateway
- Fixing smallOptions() to use correct reasoning.effort format

OpenRouter maps effort levels to budget_tokens percentages:
- xhigh: 95%, high: 80%, medium: 50%, low: 20%, minimal: 10%, none: 0%
2026-02-03 09:42:20 +01:00
Catriel Müller 9ab79857ce Code Agent (#84)
* refactor: rename build agent to code

* refactor: add backward compat for build config
2026-02-03 08:04:27 +01:00
Igor Šćekić 45020dfc13 feat(provider): increase kilo auto model limits 2026-02-03 00:40:46 +01:00
Igor Šćekić b8daf18f39 feat(llm): send x-kilocode-mode header for gateway 2026-02-03 00:29:35 +01:00
Igor Šćekić b928c22921 feat(provider): add kilo/auto virtual model
Expose `kilo/auto` as a virtual Kilo Gateway model for selectors, ensure it appears in recommended models, and sort it to the top of Kilo model lists.
2026-02-03 00:21:23 +01:00
Aiden Cline 188cc24bfc chore: cleanup external_dir perm logic (#11845) 2026-02-02 16:43:55 -06:00
opencode-agent[bot] 5e3162b7f4 chore: generate 2026-02-02 22:30:23 +00:00
Joseph Campuzano f9aa209131 fix: fixes issue where the autocomplete tui dialog flickers while typing (#11641) 2026-02-02 16:29:43 -06:00
Aiden Cline f86f654cda chore: rm dead code (#11849) 2026-02-02 16:22:03 -06:00
Aiden Cline aa6b552c39 Revert pr that was mistakenly merged (#11844) 2026-02-02 15:28:02 -06:00
John Fawcett 52be925b70 Add hide news option 2026-02-02 15:23:07 -06:00
Luiz Guilherme D'Abruzzo Pereira a9fca05d8b feat(server): add --mdns-domain flag to customize mDNS hostname (#11796) 2026-02-02 14:52:32 -06:00
Adam 3b93e8d95c fix(app): added/deleted file status now correctly calculated 2026-02-02 14:24:23 -06:00
Pablo P Varela 965f32ad63 fix(tui): respect terminal transparency in system theme (#8467) 2026-02-02 11:36:47 -06:00
Vladimir Glafirov cf8b033be1 feat(provider): add User-Agent header for GitLab AI Gateway requests (#11818) 2026-02-02 10:41:02 -06:00
Marius 6ecb406a32 feat: add kilo-gateway to thinking variants switch statement (#76) 2026-02-02 16:16:50 +01:00
GitHub Action 76ceaeafd9 chore: generate 2026-02-02 15:06:38 +00:00
Igor Šćekić d06d57c186 Merge pull request #73 from Kilo-Org/add-some-defensive-code-around-getting-org-id 2026-02-02 16:05:10 +01:00
Igor Šćekić b04e8e877c fix(kilo-sessions): handle sync throws in inflight cache
Wrap callback execution in a promise microtask so synchronous errors flow
through the existing `.catch()` and the in-flight entry is reliably cleaned
up. Update tests to await the microtask before asserting call count.
2026-02-02 15:41:37 +01:00
Dax 4369d79636 tui: truncate session title in exit banner (#11797) 2026-02-02 14:30:10 +00:00
Igor Šćekić cd62b61774 fix(kilo-sessions): cache client creation with shared ttl
Add an in-flight cache entry for getClient to avoid repeated token
validation and client recreation, and use a single ttl constant for
token and org lookups.
2026-02-02 15:23:32 +01:00
Igor Šćekić 13001c4f10 fix(kilo-sessions): cap token validity cache to 15 minutes 2026-02-02 15:08:59 +01:00
Igor Šćekić 6eb37d4305 fix(kilo-sessions): drop in-flight cache entry on errors 2026-02-02 15:06:50 +01:00
Igor Šćekić 6d53540a58 fix(kilo-sessions): update cache key only on token change 2026-02-02 15:06:04 +01:00
Igor Šćekić c5657260a3 refactor(kilo-sessions): make clearCache synchronous 2026-02-02 14:52:43 +01:00
Igor Šćekić 6834fe4380 fix(kilo-sessions): clear auth validity cache on token change
Ensure in-flight auth validity lookups are not reused across different tokens
by clearing the previous cache key when a new token is received.
2026-02-02 14:51:03 +01:00
Igor Šćekić fb552eddfe fix(kilo-sessions): key auth validity cache by token
Use a per-token cache key for auth validity to prevent different
sessions from sharing the same cached result.
2026-02-02 14:40:39 +01:00
Igor Šćekić 642d1c8477 fix(kilo-sessions): cache token and auth validity
Use in-flight cache for token retrieval and token validity checks, and
centralize cache clearing on auth errors to avoid reusing invalid
credentials while still allowing retries after transient failures.
2026-02-02 14:30:50 +01:00