Commit Graph

5591 Commits

Author SHA1 Message Date
Marian Alexandru Alecu 490df21393 Merge pull request #9887 from Kilo-Org/fix/queued-compaction-marker
fix(cli): process queued compaction markers
2026-05-05 15:05:25 +03:00
Marius 59e8effc3d Make codebase indexing setting project-specific (#9855)
* fix: make indexing enablement project-specific

* chore: annotate indexing config changes

* fix: save TUI indexing toggle per project

* fix: move indexing scope logic to Kilo config
2026-05-05 14:04:56 +02:00
kilo-code-bot[bot] 008387a8ac fix(cli): restore kilo branding in MCP auth toast and client name (#9892)
* fix(cli): restore kilo branding in MCP auth toast and client name

The 'Run: opencode mcp auth' popup / toast and the MCP protocol client
'name' field were reverted to 'opencode' by an upstream refactor
(opencode PR #22913, pulled in via Kilo PR #9346). Re-apply the
Kilo-branded strings with narrow kilocode_change markers and add a
regression test in packages/opencode/test/kilocode/ so the next upstream
merge fails a Kilo-owned test instead of shipping an 'opencode' popup.

* fix: use kilocode_change block markers for startAuth signature

---------

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: marius-kilocode <marius@kilocode.ai>
2026-05-05 14:04:37 +02:00
Christiaan Arnoldus 12d2c08e8f Merge pull request #8732 from shssoichiro/cli-cost
feat(cli): show model costs in model picker
2026-05-05 11:54:44 +02:00
Marius 27d14d432c fix(cli): keep env reads behind ask (#9843)
* fix(cli): keep env reads behind ask

* fix(cli): protect pending env reads

* fix(cli): share permission rule helpers
2026-05-05 11:24:34 +02:00
Alex Alecu d9453f0da2 fix(cli): process queued compaction markers 2026-05-05 11:00:55 +03:00
Mark IJbema 302470e4ce Merge pull request #9840 from Kilo-Org/fix/restore-kilo-env-var
fix: restore KILO env var (regression from #9014)
2026-05-04 21:37:49 +02:00
Catriel Müller 1bb2042c22 Merge pull request #9869 from Kilo-Org/catrielmuller/fix-9823
fix(cli): restore question tool availability in code mode
2026-05-04 15:04:06 -03:00
Catriel Müller 27fd7a46d7 fix: kilocode_change 2026-05-04 14:55:41 -03:00
Catriel Müller e82f56176c fix: tests 2026-05-04 14:49:43 -03:00
Imanol Maiztegui e7e3e39746 refactor(config): use explicit undefined guard in agent normalize function
The nullish coalescing operator (??) treats null as a falsy value and
falls through to the right-hand operand. Switch to a strict undefined
check so that a null assignment on `steps` is forwarded as-is, allowing
callers to express an intentional reset of the steps configuration.
2026-05-04 19:28:45 +02:00
Catriel Müller 532a16c9f9 Merge branch 'main' into catrielmuller/fix-9823 2026-05-04 14:26:28 -03:00
Catriel Müller 1c15a07464 chore: annotate kilocode_change on filesystem.ts import 2026-05-04 14:17:34 -03:00
Catriel Müller 4ed9fc0d8d fix(cli): atomic write in Filesystem.write to prevent partial JSON reads 2026-05-04 14:11:26 -03:00
Imanol Maiztegui 2c1a8d882c Merge branch 'main' into fix/agent-toggle-false-persistence 2026-05-04 19:09:55 +02:00
Catriel Müller 896d8d0d82 fix: fix code question on code mode 2026-05-04 13:55:46 -03:00
Marius f499257c32 fix(cli): honor external directory allows in Ask mode (#9838)
* fix(cli): honor external directory allows in ask mode

* chore(cli): annotate external directory permission fix
2026-05-04 18:17:54 +02:00
Josh Holmer 2999e9f56e feat(cli): show model costs in model picker 2026-05-04 12:09:21 -04:00
Imanol Maiztegui ef9c1f3d9e Merge branch 'main' into fix/agent-toggle-false-persistence 2026-05-04 17:57:17 +02:00
Imanol Maiztegui 213c40cc3c fix(cli): use block kilocode_change markers for nullable agent schema changes 2026-05-04 17:42:18 +02:00
Imanol Maiztegui 21cef5013b Merge origin/main into fix/agent-toggle-false-persistence
Resolve conflicts after main's config.ts refactor to @effect/schema and
the messages.ts → messages/ directory split:

- Port AgentConfig nullable fields + default_agent nullable to the new
  packages/opencode/src/config/agent.ts and config.ts Effect schemas.
  The null delete sentinel for steps is already preserved by main's
  normalize() (steps excluded from spread when undefined).
- Move AgentConfig nullable fields and Config.default_agent nullable to
  the new messages/agents.ts and messages/config.ts.
- Re-apply the core fix to ModeEditView.tsx hidden/disable toggles:
  send explicit false instead of val || undefined so deepMerge
  overwrites a previously-saved true. Keep default_agent clear via
  null delete sentinel when hiding/disabling the current default.
- Drop configSaved/configSaveFailed messages; main's retry + optimistic
  fallback in KiloProvider and configUpdateFailed + saveError signal in
  ConfigProvider subsume the PR's save-outcome split.
2026-05-04 17:05:07 +02:00
Mark IJbema 05964c0de5 Merge branch 'main' into fix/restore-kilo-env-var 2026-05-04 16:57:40 +02:00
Mark IJbema 9a336b8640 Merge branch 'main' into fix/restore-kilo-env-var 2026-05-04 16:44:57 +02:00
Catriel Müller 50d7543f4c Merge branch 'main' into catrielmuller/fix-big-repos 2026-05-04 11:24:57 -03:00
Imanol Maiztegui 446d51cccd fix(sdk): preserve null sentinel for agent steps config
Replace nullish coalescing with explicit undefined check so that
`steps: null` is not collapsed to `maxSteps`, preserving the ability
to clear the steps override via a null sentinel value.
2026-05-04 16:14:53 +02:00
Marius fc2545ceb4 Fix OAuth callback port flake (#9841)
* fix(cli): avoid OAuth callback port bind without redirect

* fix(cli): clean up failed OAuth callback binding
2026-05-04 16:06:54 +02:00
kiloconnect[bot] 2995a308e3 chore(cli): annotate KILO env var with kilocode_change 2026-05-04 13:24:23 +00:00
Catriel Müller 206eaa7142 fix: kilocode_change 2026-05-04 10:19:11 -03:00
kiloconnect[bot] db26be6b5d fix(cli): restore KILO env var (regression from #8808) 2026-05-04 13:18:57 +00:00
Catriel Müller 40079cd21c fix: type imports 2026-05-04 10:11:01 -03:00
Catriel Müller 2c2f03f604 fix: regenerate sdk 2026-05-04 10:11:01 -03:00
Catriel Müller fcb5b02557 Merge branch 'main' into catrielmuller/fix-big-repos 2026-05-04 09:57:27 -03:00
Mark IJbema 6b4bc40b81 Merge pull request #9751 from Kilo-Org/markijbema/kilo-opencode-v1.14.29
Merge opencode v1.14.29
2026-05-04 14:21:23 +02:00
Emilian Olbrych 8472f90528 Fix/vscode mcp oauth sign in (#8910)
* fix(vscode): restore MCP OAuth sign-in from settings UI

- Add Sign in control when MCP status is needs_auth; posts authenticateMcp
  to run CLI POST /mcp/{name}/auth/authenticate.
- On SSE mcp.browser.open.failed, open the auth URL via
  vscode.env.openExternal (CLI subprocess open() often fails under VS Code).
- Dedupe openExternal when multiple webviews receive the same event.

Fixes UI regression described in GitHub issue #8904.

Made-with: Cursor

* fix(vscode): satisfy ESLint max-lines and complexity for MCP OAuth

- Move MCP connect/disconnect/authenticate and openExternal dedupe to
  kilo-provider/mcp-oauth.ts.
- eslint-disable-next-line complexity for the webview message router.

Made-with: Cursor

* fix: restore MCP OAuth sign-in in VS Code

* fix: simplify MCP OAuth callback delegation

* fix: clarify MCP OAuth callback delegation

---------

Co-authored-by: e.olbrych <e.olbrych@mkmc.pl>
Co-authored-by: marius-kilocode <marius@kilocode.ai>
2026-05-04 11:54:07 +00:00
Catriel Müller 029425590b Merge branch 'main' into catrielmuller/fix-big-repos 2026-05-04 07:57:09 -03:00
Mark IJbema bccc27ce61 Merge remote-tracking branch 'origin/main' into markijbema/kilo-opencode-v1.14.29 2026-05-04 11:58:03 +02:00
Mark IJbema 75dfebcf28 fix semantic merge conflicts 2026-05-04 11:48:00 +02:00
Marius a858f001ba fix(cli): warn on output length stops (#9820)
* fix(cli): warn on reasoning-only length stops

* fix(cli): warn on output length stops
2026-05-04 09:42:47 +00:00
kilo-code-bot[bot] b8b915739c refactor(prompts): hoist Kilo model-specific prompt checks to the front (#9815)
* refactor(cli): hoist Kilo model-specific prompt checks to the front

Extract the Kilo metadata-driven prompt selection into a dedicated
kiloPrompt() helper and invoke it with an early return at the top of
provider(). This ensures Kilo-specific prompt routing takes priority
over upstream heuristics and leaves the upstream if-chain untouched,
reducing future merge conflicts when opencode adjusts its own
model-specific prompt branching.

No behavior change.

* fix(cli): preserve Ling prompt fallback precedence

* fix(cli): keep prompt annotations scoped

---------

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: marius-kilocode <marius@kilocode.ai>
2026-05-04 10:55:19 +02:00
Marius 7ad1bf66d0 docs(cli): expand config skill with agent manager workflows (#9813) 2026-05-04 10:40:15 +02:00
Mark IJbema a16e0560c7 Merge remote-tracking branch 'origin/main' into markijbema/kilo-opencode-v1.14.29 2026-05-04 10:27:37 +02:00
Catriel Müller 284886ded4 refactor: fix kilocodechanges 2026-05-01 19:59:15 -03:00
Catriel Müller 3384b6736c refactor: address comments 2026-05-01 19:23:10 -03:00
Catriel Müller 33476e5050 feat: handle snapshot initialization on big repos 2026-05-01 18:44:16 -03:00
Marius da3d79a688 fix(cli): scope GPT-5.5 prompt behavior (#9745)
* fix(cli): scope GPT-5.5 prompt behavior

* fix(cli): route GPT-5.5 prompt by metadata

* fix(cli): allow prompt metadata in provider config
2026-04-30 17:29:50 +02:00
Mark IJbema 5d5fab36bb fix(cli): repair broken imports and typecheck after opencode v1.14.29 merge
Fixes 257 typecheck errors surfaced after the upstream merge:

- Update imports to new module paths after upstream PR #24554 removed
  module barrel files (@/config, @/session, @/util, etc.) and PR #24309
  renamed @opencode-ai/shared to @opencode-ai/core.
- Migrate loadMode to use Info.zod.safeParse for consistency with
  loadAgents and ConfigCommand (unblocks KilocodeConfig.handleInvalid).
- Drop removed Npm.outdated mock from tests.
- Add missing Config.defaultLayer to bash-permission-metadata test runtime.
- Fix Tips component signature (kilocode drops upstream's 'connected' prop).
- Fix toast.tsx undefined 'duration' reference (should be toastOptions.duration).
- Move filesystem-containment test from deleted shared package to core.
2026-04-30 17:16:31 +02:00
Marius d5fb9eb226 Add experimental Agent Manager tool (#9737)
* feat: add experimental agent manager tool

* fix(agent-manager): sanitize tool worktree names

* fix(cli): validate agent manager tool tasks
2026-04-30 16:32:28 +02:00
Mark IJbema 3f7037549e resolve merge conflicts 2026-04-30 16:25:46 +02:00
Marius 26e4c1148f fix: scope commit prompt config to project (#9460)
* fix: scope commit prompt config to project

* fix: address commit prompt review feedback

* fix: address project config review feedback

* fix: adapt project config update to schema statics

* fix(vscode): keep provider under line cap
2026-04-30 16:22:54 +02:00
Marius 80535d4ed6 fix(cli): persist command permission approvals (#9746) 2026-04-30 14:55:02 +02:00