Commit Graph

1804 Commits

Author SHA1 Message Date
marius-kilocode 722eb44d63 feat(vscode): enable voice input for signed-in Kilo users 2026-05-26 15:45:48 +02:00
Imanol Maiztegui bacfa4ae62 Effect Migration for Kilo callsites (#10572)
* refactor(opencode): migrate agent promise helpers to kilocode module and adopt Effect-based tests

Remove legacy promise-based helpers (`get`, `list`, `defaultAgent`, `remove`)
from the core agent module and update callsites to use the dedicated
`@/kilocode/agent` module directly. Migrate kilocode-specific tests from
`WithInstance.provide` patterns to the `testEffect` helper with Effect
generators for cleaner, more idiomatic test code.

- Remove `makeRuntime` import and exported promise helpers from agent.ts
- Update HTTP API handlers to import from `@/kilocode/agent` instead of
  re-exported `Agent` namespace
- Rewrite agent tests to use `load()` helper or Effect service access
- Convert agent-global-config-dirs and agent-skill-permissions tests to
  `testEffect` pattern
- Reorder SDK type definitions (BackgroundProcessLogs/WorkspaceWarpError)

* chore(auth): remove legacy promise helpers and replace with direct Effect service access

Eliminate the exported promise-based convenience functions (`get`, `all`,
`set`, `remove`) from the Auth module and replace all callsites with
explicit `AppRuntime.runPromise` or `makeRuntime` invocations that access
`Auth.Service` directly through Effect's service pattern.

- Delete `makeRuntime`-backed promise helpers from auth/index.ts
- Update CLI entrypoint, kilo-sessions, indexing, and server instance to
  use `AppRuntime.runPromise(Auth.Service.use(...))` for auth access
- Inject `Auth.Service` as a dependency into the ModelsDev layer and
  consume it via Effect generator instead of promise wrapper
- Create a local `makeRuntime` instance in model-cache.ts for non-Effect
  callsites that still need promise-based auth access
- Rewrite tests to manipulate auth.json directly on disk with proper
  save/restore semantics instead of relying on removed helpers

* refactor(suggestion): convert suggest tool to Effect-native with injected Command dependency

Transform the suggestion tool from async/promise-based implementation to
idiomatic Effect generators with explicit dependency injection of the
Command service rather than importing and calling module-level helpers.

- Convert `resolvePrompt` from async function to Effect generator that
  accepts a `Command.Interface` parameter
- Refactor `SuggestTool` definition to yield `Command.Service` from the
  Effect context and thread it through to `resolvePrompt`
- Add `Command.Service` as a dependency to the tool registry layer and
  provide `Command.defaultLayer` in both production and test wiring
- Remove unused `makeRuntime` import and exported `get` helper from
  command/index.ts
- Add explicit type annotations to Auth delegate in server instance
- Rewrite suggestion tests to use `testEffect` helper with a mock
  `Command.Service` layer instead of spying on module exports

* feat(git): migrate WorktreeFamily to Effect service and wire Git.Service as dependency

Convert WorktreeFamily.list from an async function using legacy promise
helpers to an Effect generator that yields Git.Service from context,
eliminating the need for the removed `run` promise wrapper in git/index.

- Replace `WorktreeFamily.list()` async function with Effect.fn generator
  that obtains Git.Service and InstanceState from the Effect context
- Remove legacy `makeRuntime`/`run`/`runPromise` exports from git module
- Update RecallTool to thread Git.Service through to WorktreeFamily calls
  via EffectBridge
- Add Git.Service as a required dependency in tool registry and HTTP
  server route layers
- Update all test layers to provide Git.defaultLayer

* chore(mcp): replace legacy promise helpers with Effect-native AppRuntime calls

Remove exported promise-based `status`, `connect`, and `disconnect`
helpers from MCP module and convert the network recovery callsite in
SessionNetwork to use AppRuntime.runPromise with Effect.gen directly.

* refactor(auth): adopt makeRuntime helper for Auth service resolution in kilo modules

Replace AppRuntime.runPromise with locally scoped makeRuntime instances
in kilo-sessions and kilocode/indexing modules, removing the dependency
on the global AppRuntime singleton for Auth service access.

* fix(test): simplify cleanup error handling in provider test

Replace try-catch block with promise .catch() for file unlink operation
during test teardown.
2026-05-26 12:51:21 +02:00
Marius d00bdbf5df Merge pull request #10485 from Kilo-Org/fix-subagent-error-recovery
fix(cli): surface failed subagent task errors
2026-05-26 10:59:01 +02:00
Marius bcda744dfc Merge pull request #10443 from Kilo-Org/subagent-model-reasoning-config
feat: configure task subagent model defaults
2026-05-26 10:58:57 +02:00
marius-kilocode a416b40273 Merge remote-tracking branch 'origin/main' into fix-subagent-error-recovery
# Conflicts:
#	packages/opencode/src/tool/task.ts
#	packages/opencode/test/tool/task.test.ts
2026-05-26 10:42:07 +02:00
kirillk 936bb25f2a test(cli): annotate Windows skip call sites 2026-05-25 11:30:54 -04:00
kirillk 4c90e6f03b test(cli): skip Windows-incompatible opencode tests 2026-05-25 11:28:07 -04:00
Marian Alexandru Alecu 0ef52d5d5a Merge branch 'main' into local-review-base-picker 2026-05-25 11:05:47 +03:00
Joshua Lambert ea1479ccb0 Merge branch 'main' into rambunctious-chicory 2026-05-24 15:55:34 -04:00
Alex Alecu 57c291f68c fix(cli): keep workspace patch test scoped 2026-05-23 22:43:00 +03:00
Alex Alecu 51ee32f286 fix(cli): stabilize workspace patch test on Windows 2026-05-23 10:36:10 +03:00
Alex Alecu d41324c084 Merge remote-tracking branch 'origin/main' into local-review-base-picker
# Conflicts:
#	packages/opencode/test/acp/agent-interface.test.ts
2026-05-22 22:44:11 +03:00
Alex Alecu f19d8ef6e5 fix(cli): harden local review suggestion handling 2026-05-22 22:14:53 +03:00
Catriel Müller b52a2115d3 Merge pull request #10513 from Kilo-Org/dynamic-department
Add background process support
2026-05-22 15:17:54 -03:00
Alex Alecu df786a7264 fix(cli): type ACP runtime methods 2026-05-22 19:39:23 +03:00
Alex Alecu 80f3d65e33 fix(cli): accept free-form local-review input 2026-05-22 19:35:37 +03:00
Catriel Müller b96bf3da31 fix: tests / gradle 2026-05-22 13:19:07 -03:00
Marian Alexandru Alecu 538960f420 Merge branch 'main' into local-review-base-picker 2026-05-22 19:16:55 +03:00
Catriel Müller 72854fab76 Merge pull request #10510 from Kilo-Org/dust-cork
fix(cli): reset terminal modes on TUI exit
2026-05-22 11:46:09 -03:00
Alex Alecu ab923c8ab5 fix(cli): focus local reviews on high-signal issues 2026-05-22 17:15:36 +03:00
Marian Alexandru Alecu ccfec216a0 Merge pull request #10502 from Kilo-Org/track-accepted-suggestion-telemetry
feat: track accepted review suggestions
2026-05-22 16:56:27 +03:00
Catriel Müller 5696a1937e fix: test 2026-05-22 10:52:14 -03:00
Catriel Müller a1ff9105a3 Merge branch 'main' into dynamic-department 2026-05-22 10:41:45 -03:00
Imanol Maiztegui 8ee9512ac3 Merge pull request #10507 from Kilo-Org/imanolmaiztegui/kilo-opencode-v1.14.41
OpenCode v1.14.41
2026-05-22 15:31:34 +02:00
Sascha Buehrle 42844e5054 Merge pull request #8403 from saschabuehrle/fix/issue-8288
fix: accept `env` alias in local MCP config
2026-05-22 14:52:43 +02:00
Catriel Müller 45f653f43d feat: background process on vscode 2026-05-22 09:50:50 -03:00
Catriel Müller 3e8f6d7bc7 fix: fix cleanup mouse events 2026-05-22 08:59:50 -03:00
Catriel Müller 656572c2cf fix: fix kitty proto on old terminals 2026-05-22 08:18:48 -03:00
Imanol Maiztegui 4a28a5f88f Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.41 2026-05-22 13:15:04 +02:00
Alex Alecu c6f3b9cba8 docs(cli): link base branch order 2026-05-22 13:50:43 +03:00
Alex Alecu 2030323c64 feat: track shown review suggestions 2026-05-22 13:36:19 +03:00
Imanol Maiztegui 913d6cb07b fix(opencode): correct provider ID references and update TaskPromptOps cancel signature
Use providerID variable instead of provider.id in dialog-provider to
fix incorrect property access after destructuring. Update cancel method
in TaskPromptOps stubs to return Effect.void matching the expected
interface. Remove obsolete workspace-restore test file and add missing
fixture import.
2026-05-22 12:27:18 +02:00
Imanol Maiztegui 7b94fbb95b style: format code with prettier across multiple packages
Reformat multiline arrays, JSX props, CSS transitions, and test
indentation to comply with the project's prettier configuration.
Also reorder auto-generated SDK type imports alphabetically and
relocate type definitions to match updated openapi.json output.
2026-05-22 11:58:24 +02:00
Alex Alecu 0d12909a9e refactor(cli): make local-review commands regular 2026-05-22 12:36:24 +03:00
Alex Alecu c791ccf440 feat: track accepted review suggestions 2026-05-22 11:08:22 +03:00
Imanol Maiztegui b6523c0d91 resolve merge conflicts 2026-05-22 09:01:40 +02:00
Josh Lambert 6a41985d5a fix(cli): brand xAI OAuth as Kilocode 2026-05-22 00:27:53 -04:00
Josh Lambert 4ef371768a feat(cli): add xAI Grok OAuth 2026-05-22 00:03:08 -04:00
Catriel Müller c076058bfc fix: fix logo on old windows terminal 2026-05-21 18:26:01 -03:00
Catriel Müller ac61526d7b fix(cli): brand OpenAI OAuth flow as Kilo 2026-05-21 14:19:48 -03:00
Catriel Müller fca2afcf1e refactor: kilo command branding 2026-05-21 14:08:24 -03:00
Catriel Müller 1f24a39ae9 refactor: address the comments 2026-05-21 14:04:39 -03:00
Catriel Müller 06a6bf715d refactor: improve implementation 2026-05-21 13:58:30 -03:00
Imanol Maiztegui f7816a9eeb refactor: kilo compat for v1.14.41 2026-05-21 14:48:36 +02:00
marius-kilocode 2caa5489f2 chore(cli): annotate task failure test import 2026-05-21 14:15:50 +02:00
marius-kilocode 7025c779f7 fix(cli): surface failed subagent task errors 2026-05-21 14:15:04 +02:00
Catriel Müller cd009c3d8f feat: background process 2026-05-21 09:13:55 -03:00
Alex Alecu abf1c88b25 fix(cli): preserve local-review command context 2026-05-21 14:42:59 +03:00
Alex Alecu 1fa486a268 fix(cli): preserve local-review placeholder guidance 2026-05-21 11:21:24 +03:00
Alex Alecu a5f6eea0ec fix(cli): keep quoted review guidance as instructions 2026-05-21 11:19:34 +03:00