Commit Graph

5498 Commits

Author SHA1 Message Date
Catriel Müller 7df2904b60 fix: vscode read tool align title 2026-04-14 13:52:10 -03:00
Imanol Maiztegui 7ccf624a82 feat(vscode): resolve diff content from patch field in UI components
Update DiffVirtualApp and PermissionDiff to reconstruct before/after
content from the patch field when explicit before/after values are not
provided. Export the `text` helper from kilo-ui session-diff and add
`patch` to the PermissionFileDiff type.

In message-v2, refine stripMessageMetadata to only strip oversized
patches (exceeding MAX_DIFF_SIZE) rather than all patches, preserving
small patches so the UI can render inline diffs without additional
fetches.
2026-04-14 18:39:59 +02:00
Imanol Maiztegui 4e115bf884 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.4.0 2026-04-14 18:25:59 +02:00
Imanol Maiztegui 0208a8880c feat: migrate diff schema to use patch field and consolidate model variant
Replace before/after content fields with unified patch field across
the diff pipeline. WorktreeDiff now generates patch strings via
createTwoFilesPatch, and all consumers (summary stripping, size
checks, content hashing, TUI sync, ingest queue) operate on the
patch field instead of before/after.

Consolidate model variant into the model object, removing the
separate variant field from MessageV2.User, PlanFollowup inject,
and resolveCodeModel interfaces.

Additional changes:
- Add session-diff module export to kilo-ui package
- Remove batch tool (batch.ts deleted)
- Fix WebSocket proxy to convert Uint8Array to ArrayBuffer
- Switch VscodeSessionTurn from useDiffComponent to useFileComponent
- Update SnapshotFileDiff type references in vscode extension
2026-04-14 17:33:06 +02:00
kilo-maintainer[bot] 4c038b17d2 release: v7.2.6 2026-04-14 15:19:03 +00:00
Imanol Maiztegui fb48b5eae4 feat(sdk): add before and after fields to WorktreeDiffItem schema
Extend WorktreeDiffItem with `before` and `after` string properties
across the OpenAPI spec, generated TypeScript types, and the Zod
schema in worktree-diff.ts. Both fields are marked as required in
the JSON schema definition.
2026-04-14 16:28:45 +02:00
Marian Alexandru Alecu c36e91f278 Merge pull request #8782 from Kilo-Org/fix/cli-error-boundary-no-renderer
fix(cli): guard ErrorComponent against missing renderer context
2026-04-14 17:26:48 +03:00
Alex Alecu a828e1a1ee fix(cli): restore onBeforeExit in ErrorComponent 2026-04-14 17:10:03 +03:00
Imanol Maiztegui cc2a03b2a0 refactor: align codebase with v1.4.0 upstream and update SDK schema
Remove stale ai-sdk patched dependencies, reformat code style
across i18n files, docs markdown tables, and TypeScript sources.
Update OpenAPI schema to rename FileDiff to SnapshotFileDiff,
replace before/after fields with patch, rebrand SDK code samples
from opencode to kilo, and add --dangerously-skip-permissions
CLI flag. Regenerate models snapshot.
2026-04-14 16:05:22 +02:00
Alex Alecu f2cb0d7055 fix(cli): add kilocode_change markers and regenerate source-links 2026-04-14 17:02:11 +03:00
Thomas Brugman ddb2bba027 fix(tui): show progress indicators while subagent is initializing (#8807)
* fix(tui): show progress indicators while subagent is initializing

Show '↳ Starting...' in the parent session's Task entry when the
subagent is running but has not yet made any tool calls, and show
'↳ Initializing...' in the subagent session view when it has no
messages yet. Prevents the UI from appearing frozen during the
LLM thinking phase on startup.

Closes #8422

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tui): annotate kilocode changes for CI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(webview): show progress indicators while subagent is initializing

Mirror the TUI fix for the VS Code extension webview:

- TaskToolExpanded: show "Starting..." when the task tool is running
  but the child session has no tool calls yet (previously the expanded
  body was empty/blank).

- MessageList/ChatView: propagate the readonly flag so the subagent
  viewer shows "Initializing..." instead of the generic welcome screen
  when the session has no messages yet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: add i18n translations for Initializing and Starting strings

Replace hardcoded 'Initializing...' and 'Starting...' strings in
webview components with language.t() calls. Add
session.messages.initializing and session.messages.taskStarting keys
to all 19 locale files.

Note: The TUI (packages/opencode) has no i18n framework — all strings
are hardcoded throughout the codebase, so the 'Initializing...' string
in the TUI session view remains as-is.

* fix: localize Initializing/Starting strings in all locale files

Replace English placeholder strings with proper translations in all
19 non-English locale files.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 16:00:39 +02:00
Imanol Maiztegui 9f4f0ba899 resolve merge conflicts 2026-04-14 15:58:28 +02:00
Alex Alecu 407f601373 Merge remote-tracking branch 'origin/main' into fix/cli-error-boundary-no-renderer
# Conflicts:
#	packages/opencode/src/cli/cmd/tui/app.tsx
2026-04-14 16:53:21 +03:00
Christiaan Arnoldus 75207ad11c Merge branch 'main' into remove-fix-duplicate-reasoning 2026-04-14 14:38:39 +02:00
Marius 4a69a3e0d1 fix(cli): invalidate provider state after auth changes (#8898)
* fix(cli): invalidate provider state after auth changes

After the Effect migration in #8870, provider state is cached via
InstanceState/ScopedCache. The hasKey check that determines which
models are available ran once at init and was never re-evaluated.
When auth changed (login, logout, org switch), only ModelCache was
cleared but the provider state retained the stale hasKey decision,
causing authenticated users to be stuck on the free model.

* chore: add changeset

* fix(gateway): scope disposeAll to KiloRoutesDeps, not ImportDeps
2026-04-14 10:57:44 +00:00
Imanol Maiztegui 4fc1e0263c refactor: kilo compat for v1.4.0 2026-04-14 12:17:20 +02:00
Imanol Maiztegui a1bd03d773 Merge pull request #8893 from Kilo-Org/imanolmaiztegui/kilo-opencode-v1.3.17
OpenCode v1.3.17
2026-04-14 12:16:22 +02:00
Mark IJbema b3af983439 Merge pull request #8889 from Kilo-Org/session/agent_a5acac3d-bd3b-4da4-98db-0ef22a1f9fe9
fix: suppress OpenRouter reasoning warning
2026-04-14 11:59:46 +02:00
kiloconnect[bot] 32e9c2934d fix(cli): remove fixDuplicateReasoning workaround now that @openrouter/ai-sdk-provider is updated 2026-04-14 09:45:21 +00:00
Imanol Maiztegui 76093d53a2 test(session): rename agent references from "build" to "code" in prompt-effect tests
Align test fixtures with the agent naming convention change
where the "build" agent identifier was replaced by "code"
across all prompt and session interactions.
2026-04-14 11:35:43 +02:00
Imanol Maiztegui cd79db8a8d refactor: update sdk imports and fix type signatures for v1.3.17 compat
- Update `@kilocode/sdk` imports to use `@kilocode/sdk/v2` path
- Replace `@opencode-ai/sdk/v2` import with `@kilocode/sdk/v2`
- Change theme color types from `string` to `RGBA` in renderApiDescription
- Fix `build` return type in KiloToolRegistry to `Effect.Effect<T, never, any>`
2026-04-14 10:52:25 +02:00
Imanol Maiztegui 170889e951 resolve merge conflicts 2026-04-14 10:44:13 +02:00
Marius 1b0ccd52f4 fix(vscode): keep worktree sessions across project id changes (#8875)
* fix(vscode): keep worktree sessions across project id changes

* fix(cli): isolate session directory fallback
2026-04-14 10:35:04 +02:00
kiloconnect[bot] 5816eeac42 chore(deps): update @openrouter/ai-sdk-provider to 2.5.1 in kilo-gateway and opencode
update @openrouter/ai-sdk-provider to 2.5.1 in kilo-gateway
and opencode package to keep dependencies in sync
2026-04-14 08:29:57 +00:00
Imanol Maiztegui 73b6d9a6c9 refactor: kilo compat for v1.3.17 2026-04-14 09:35:34 +02:00
Catriel Müller 1606d64398 fix: kilo models test 2026-04-14 03:54:38 -03:00
Catriel Müller 528ec937ab refactor: fix home test config mocks 2026-04-14 03:06:12 -03:00
Catriel Müller d7515f6aec refactor: fix prompt / config tests 2026-04-14 02:25:00 -03:00
Catriel Müller a8607965b5 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.3.14 2026-04-13 23:59:46 -03:00
Catriel Müller da8f05ec75 fix: core tests 2026-04-13 23:58:00 -03:00
kilo-maintainer[bot] ad74e9bf81 release: v7.2.5 2026-04-13 22:33:12 +00:00
Catriel Müller bfec6b7945 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.3.14 2026-04-13 15:44:28 -03:00
Imanol Maiztegui 615dcc743e fix(cli): restore kilo branding in terminal wordmark
Replace upstream opencode ASCII art with Kilo-branded wordmark
in the CLI startup banner.
2026-04-13 20:33:11 +02:00
Imanol Maiztegui 7fb55e45f1 refactor: align kilo codebase with opencode v1.3.14 upstream
Resolve merge conflicts across e2e tests, UI components, and core
packages. Clean up conflict markers in test specs by adopting the
upstream `project` fixture pattern over the legacy `withProject`
approach. Alphabetically sort package.json dependencies, apply
consistent code formatting across i18n files, flag declarations,
and TSX components. Update internal API calls to use current
signatures (Permission.defaultLayer, MessageV2.parts, Git.run).

Key changes:
- Remove Windows-specific test.skip guards and conflict markers
- Replace deprecated `git` util import with `Git.run` in worktree-family
- Drop unused SDK type import from share-next
- Add lib entries to kilo-gateway and kilo-telemetry tsconfigs
- Regenerate models-snapshot.js and SDK types with reordered events
- Fix SDK openapi.json code sample to reference @kilocode/sdk
- Add onCleanup import to popover component
2026-04-13 20:20:47 +02:00
Imanol Maiztegui 6d224ad390 resolve merge conflicts 2026-04-13 19:49:10 +02:00
Mark IJbema bcb009807a create changelog file 2026-04-13 17:48:01 +02:00
Christiaan Arnoldus a92b7bb629 Fix reasoning toggle not working for some Responses API models 2026-04-13 16:23:53 +02:00
Imanol Maiztegui bcafd7a24e refactor: kilo compat for v1.3.14 2026-04-13 15:50:50 +02:00
Imanol Maiztegui 747b820d6b resolve merge conflicts 2026-04-13 15:29:52 +02:00
Imanol Maiztegui 2b583013d7 refactor: kilo compat for v1.3.13 2026-04-13 14:32:16 +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
Imanol Maiztegui 4ff09d8c8e refactor: kilo compat for v1.3.11 2026-04-13 13:24: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
Johnny Amancio 2195ed5f66 fix: Rename opencode to kilo 2026-04-13 11:59:18 +02:00