Commit Graph

16394 Commits

Author SHA1 Message Date
kirillk 7115a4b5ee moving things 2026-04-13 10:07:46 -04:00
kirillk 23745d2553 chore(jetbrains): bump kotlinx-serialization to 1.8.1 (latest for Kotlin 2.1.x)
openapi-generator is already at the latest version (7.21.0).
kotlinx-serialization 1.9.0+ requires Kotlin 2.2.0, so 1.8.1 is the
correct ceiling for our Kotlin 2.1.20 toolchain.
2026-04-13 09:58:06 -04:00
kirillk 8b880ed2d9 fix(jetbrains): forward health flag from server, restrict profile fallback to 401
health() was hardcoding healthy=true instead of forwarding the server's
response. fetchProfile() was catching all exceptions as NOT_LOGGED_IN,
silently hiding 500s, timeouts, and deserialization failures. Now only
401 is treated as not-logged-in; other failures surface as Error state
with a profile LoadError.
2026-04-13 09:36:10 -04:00
Kirill Kalishev c807564bd5 Merge branch 'main' into lime-dormouse 2026-04-13 09:30:28 -04:00
kirillk 7530e33b3c refactor(jetbrains): strip KiloBackendProjectService to project-only shell 2026-04-13 09:29:49 -04:00
kirillk ac87871442 feat(jetbrains): add IntelliJ-independent backend test suite
Extract CliServer interface and KiloLog abstraction to decouple backend
classes from IntelliJ platform APIs, enabling tests that run as plain
JVM/JUnit without the IDE test framework. Includes a raw-socket mock
HTTP+SSE server, 41 tests covering connection lifecycle, data loading,
retry logic, serialization roundtrips, and HTTP client configuration.
2026-04-13 09:10:20 -04:00
Joshua Lambert df2908b577 Merge pull request #8816 from Kilo-Org/docs/fix-openai-compatible-cli-config
docs(kilo-docs): fix CLI config example for OpenAI-compatible providers
2026-04-13 08:38:25 -04:00
Joshua Lambert 5ca0f6d515 Apply suggestion from @kilo-code-bot[bot]
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-04-13 08:35:16 -04:00
Imanol Maiztegui 9ec96a3cce Merge pull request #8845 from Kilo-Org/imanolmaiztegui/kilo-opencode-v1.3.12
OpenCode v1.3.12
2026-04-13 14:30:59 +02:00
Imanol Maiztegui ade788ebc5 resolve merge conflicts 2026-04-13 14:15:39 +02:00
Imanol Maiztegui 3202375a3f refactor: kilo compat for v1.3.12 2026-04-13 14:12:43 +02:00
Imanol Maiztegui 40cf7ae5f5 Merge pull request #8843 from Kilo-Org/imanolmaiztegui/kilo-opencode-v1.3.11
OpenCode v1.3.11
2026-04-13 14:10:52 +02:00
Imanol Maiztegui 16d2ebd36d test(tool): add models-api fixture for provider testing 2026-04-13 14:01:49 +02:00
Imanol Maiztegui 1d057a51a5 chore: rebrand kimi prompt to Kilo and remove models-api fixture
Rename agent identity from "OpenCode" to "Kilo" in the kimi system
prompt and delete the large models-api.json test fixture file that is
no longer needed.
2026-04-13 13:56:30 +02:00
Imanol Maiztegui f4eaacfa55 resolve merge conflicts 2026-04-13 13:42:50 +02:00
Geir Mjosund c1e672f4b7 fix: improve Azure provider config handling and GPT-5.4 reasoning variants (#8566)
* fix: pass resourceName to Azure provider from env or config

The azure custom loader was returning empty options, causing the
@ai-sdk/azure SDK to fail with 'Azure OpenAI resource name setting is
missing' when AZURE_RESOURCE_NAME is set in the environment.

Read resourceName from provider config options, AZURE_RESOURCE_NAME, or
AZURE_OPENAI_RESOURCE_NAME env vars (in that order of precedence) and
pass it explicitly to the SDK options, consistent with how
azure-cognitive-services handles its resource name.

Fixes #8273

* fix: also support baseURL for azure provider to avoid resourceName requirement

Users with a full endpoint URL (e.g. https://resource.openai.azure.com/openai/v1)
can now set baseURL in provider options or AZURE_OPENAI_ENDPOINT env var.
Per @ai-sdk/azure docs, baseURL takes precedence over resourceName and makes
it optional, fixing the 'resource name setting is missing' error for both
configuration styles.

* fix: add xhigh reasoning effort to Azure provider for GPT-5.4+

Azure variant logic was missing xhigh even though @ai-sdk/openai adds it
for models with release_date >= 2025-12-04. Azure GPT-5.4 now exposes
the same xhigh effort level as OpenAI/Kilo Gateway.

* fix(cli): annotate Azure reasoning changes

---------

Co-authored-by: marius-kilocode <marius@kilocode.ai>
2026-04-13 13:41:12 +02:00
Mark IJbema c0b0efa6d0 Merge pull request #8835 from Kilo-Org/refactor/extract-settings-css
refactor(vscode): split chat styles into component files
2026-04-13 13:37:46 +02:00
Imanol Maiztegui 4ff09d8c8e refactor: kilo compat for v1.3.11 2026-04-13 13:24:46 +02:00
Imanol Maiztegui ab6b9ab033 Merge pull request #8834 from Kilo-Org/johnnyamancio/kilo-opencode-v1.3.10
OpenCode v1.3.10
2026-04-13 13:22:46 +02:00
Imanol Maiztegui 38b8796ccb fix(provider): preserve additional model properties during merge
Propagate recommendedIndex, prompt, isFree, and ai_sdk_provider
properties when merging model configurations, and simplify the
changelog generation script.
2026-04-13 13:13:02 +02:00
kiloconnect[bot] 19ec5ff95f refactor(vscode): split chat styles into component files 2026-04-13 10:16:41 +00:00
kiloconnect[bot] 1e2bb0de4d fix(vscode): import settings.css in Storybook preview 2026-04-13 10:06:30 +00:00
kiloconnect[bot] 460dee7ffb refactor(vscode): extract settings CSS from chat.css to settings.css 2026-04-13 10:06:30 +00:00
Christiaan Arnoldus b3df82a253 Merge pull request #8830 from Kilo-Org/fix/vscode-editor-name-header
fix(vscode): include VS Code name and version in editor name header
2026-04-13 12:01:26 +02:00
Johnny Amancio 2195ed5f66 fix: Rename opencode to kilo 2026-04-13 11:59:18 +02:00
Johnny Amancio 12a56f5191 Merge remote-tracking branch 'origin/main' into johnnyamancio/kilo-opencode-v1.3.10 2026-04-13 11:55:03 +02:00
Johnny Amancio 32e244bb05 resolve merge conflicts 2026-04-13 11:46:32 +02:00
kiloconnect[bot] 7c72892561 fix(vscode): pass full editor name verbatim to avoid corrupting User-Agent version 2026-04-13 09:30:20 +00:00
Mark IJbema 5ad9fcc8b8 Merge pull request #8764 from Kilo-Org/docs/update-autocomplete-docs
docs(kilo-docs): update autocomplete docs for VSCode vs Legacy
2026-04-13 11:26:17 +02:00
kiloconnect[bot] f654d44cf9 fix(vscode): include VS Code name and version in editor name header 2026-04-13 09:23:46 +00:00
Mark IJbema c53e93588c Merge pull request #8822 from Kilo-Org/mark/tooltip-subsession-aggregation
fix(vscode): reverse and aggregate subsession costs in TaskHeader tooltip
2026-04-13 11:00:12 +02:00
Joshua Lambert c65c56e2cb docs(cli): document how to disable built-in providers (#8702)
* docs(cli): document how to disable built-in providers

* fix provider IDs in docs: ollama->ollama-cloud, remove incorrect local models notes

* docs(kilo-docs): add section on disabling built-in providers to AI providers page

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Joshua Lambert <25085430+lambertjosh@users.noreply.github.com>

* docs: shorten skill provider table, fix enabled/disabled interaction wording, mention kilo.jsonc

---------

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-04-13 10:56:56 +02:00
Mark IJbema 96daf25e57 chore(kilo-docs): refresh source-links.md 2026-04-13 10:55:55 +02:00
Mark IJbema 22e009c46f fix(vscode): remove dead guard in collapseCostBreakdown 2026-04-13 10:51:59 +02:00
Mark IJbema 097211d544 chore(vscode): bump KiloProvider max-lines to 3350 2026-04-13 10:43:51 +02:00
kiloconnect[bot] 8d423e3932 test(vscode): add snapshot tests for collapseCostBreakdown tooltip behavior
Cover both the few-subagents case (all shown individually in reverse
order) and the many-subagents case (older sessions aggregated into a
summary line). This commit can be cherry-picked independently.
2026-04-13 10:42:59 +02:00
kiloconnect[bot] c6cab10bb9 fix(vscode): reverse and aggregate subsession costs in TaskHeader tooltip
Show the most recent subsessions on top in the cost tooltip and
aggregate older entries into a summary line when there are more than 8
child sessions, keeping the tooltip readable with many subagents.

Fixes #8787
2026-04-13 10:42:59 +02:00
kiloconnect[bot] 550ff7987b docs(kilo-docs): clarify current model limitation alongside future plans
Keep the fact that users cannot select a different model today, while
noting additional FIM models are planned.
2026-04-13 08:41:00 +00:00
kiloconnect[bot] 1a5dfe2e9f docs(kilo-docs): soften provider/model language for autocomplete
Avoid overly definitive wording since more FIM models are planned.
2026-04-13 08:37:22 +00:00
kiloconnect[bot] a0f06e7870 docs(kilo-docs): fix status bar tooltip wording per review
Clarify that cost tracking is visible in the status bar tooltip (hover),
not in the status bar text itself.
2026-04-13 08:32:09 +00:00
kiloconnect[bot] d632c2390d docs(kilo-docs): remove api/npm fields from reference, soften limit requirement
The api and npm fields are internal/advanced and not needed for typical
custom provider setup — remove them to keep the docs focused. Clarify
that name and limit are recommended (not required) since the schema
accepts partial models, but note the defaults to 0 will limit context
management.
2026-04-13 03:33:49 +00:00
kiloconnect[bot] f0539a59e8 docs(kilo-docs): fix api field description and remove incorrect example value
The api field is a URL (fallback base URL), not a protocol identifier like
"openai". Remove it from the example since options.baseURL takes priority,
correct the field description, and document the npm field which controls
SDK/protocol selection.
2026-04-13 03:24:24 +00:00
kiloconnect[bot] ac396c0af2 docs(kilo-docs): fix CLI config example for OpenAI-compatible providers
The documented config had baseURL at the wrong nesting level and was
missing required model definitions, causing the example to not work.
2026-04-13 02:13:40 +00:00
kirillk 6496c74fa6 refactor(jetbrains): clean up section divider comments and simplify build-tasks plugin
Remove box-drawing section comments from build scripts, task classes,
and KiloBackendAppService. Simplify build-tasks plugin ID and fix
circular property evaluation in CheckCliTask configuration.
2026-04-12 18:20:44 -04:00
kirillk f7f6a270f5 refactor(jetbrains): move buildSrc to build-tasks composite build
Extract all custom Gradle task classes (FixGeneratedApiTask,
PrepareLocalCliTask, CheckCliTask) into a build-tasks/ composite build
exposed via includeBuild. This keeps backend/build.gradle.kts purely
declarative and co-locates build logic in its own compilable module.
2026-04-12 18:10:33 -04:00
kirillk 0a4aa192aa feat(jetbrains): switch generated HTTP client from Moshi to kotlinx.serialization
Upgrade openapi-generator 7.12.0 → 7.21.0 and switch the generated API
client serialization library from Moshi to kotlinx.serialization to unify
with the RPC DTOs in shared/ which already use kotlinx.

- Extract PrepareLocalCliTask to buildSrc/ to fix Gradle configuration
  cache error (non-static inner class)
- Remove moshi/moshi-kotlin deps, add kotlinx-serialization-json
- Map bare number types to kotlin.Double (avoids BigDecimal + @Contextual)
- Rewrite fixGeneratedApi task for 7 kotlinx codegen bugs: boolean const
  enums, double-parens on HashMap classes, private Double constructor,
  missing @Contextual on Any, nullable OkHttp body, AnySerializer for
  dynamic JSON, and empty anyOf wrapper classes replaced with JsonElement
2026-04-12 17:41:25 -04:00
kirillk c2d6a0a08d fix(jetbrains): move findBun into PrepareLocalCliTask to avoid non-static inner class error 2026-04-12 15:45:27 -04:00
kirillk 8a617ee8dc fix(jetbrains): resolve bun path for Gradle daemon, fix Config.model deserialization
Add findBun() to build.gradle.kts to probe common install locations
(/opt/homebrew/bin, ~/.bun/bin, etc.) so localCli task works even
when Gradle daemon's PATH doesn't include bun.

Fix Config.model and Config.small_model deserialization: the spec
defines these as anyOf[string, null] but codegen produced empty wrapper
classes. Extend fixGeneratedApi to delete ConfigModel/ConfigSmallModel
and replace field types with kotlin.String?.

Add response body logging on fetch failures for easier debugging.
2026-04-12 15:43:53 -04:00
kirillk 600f4df93b feat(jetbrains): add KiloAppState with loading phase, retry, and error details
Introduce KiloAppState lifecycle: Disconnected → Connecting → Loading →
Ready → Error. Config and notifications are required (retried 3×),
profile 401 is treated as not-logged-in (not an error).

Each failed fetch captures HTTP status code and error detail from
ClientException/ServerException. The tool window displays granular
loading progress per resource and detailed error information including
HTTP status and response messages.
2026-04-12 15:29:47 -04:00
Johnny Amancio 1bf073f9c6 refactor: kilo compat for v1.3.10 2026-04-12 21:09:24 +02:00