955 Commits
Author SHA1 Message Date
Marius d4ab3331c8 revert: remove suggest tool feature (#8994)
Reverts PR #6404 (feat: suggest code review tool) and PR #8988 (fix: dismiss suggestions on new message).
2026-04-15 16:13:42 +00:00
Marius ae8e7b6e1c test(cli): skip flaky "prompt submitted during active run" test (#8992)
The test has a timeout contradiction: inner poll allows 5s but
it.live timeout is 3s. Fails on slow CI runners. Tracked in #8990.
2026-04-15 17:58:18 +02:00
Marius 2f9467ee3e fix(cli): mock getGitContext in commit-message tests to fix Linux CI flake (#8989)
Tests relied on real git operations in temp directories which failed
silently on Linux CI runners, causing all 12 tests to see no staged files.
2026-04-15 15:34:39 +00:00
Marius c584eec1db fix(cli): remap child session references on fork to prevent subagent state leaks (#8956)
* fix(cli): remap child session references on fork to prevent subagent state leaks

When forking a session, task tool parts referencing child sessions were
copied verbatim, causing both original and forked sessions to share the
same subagent references. This led to SSE events and permission prompts
leaking across sessions in the Agent Manager.

* fix: remove redundant recursive remapChildren call

Session.fork() already calls remapChildren via the hook, so the explicit
recursive call inside remapChildren was double-forking nested descendants.
2026-04-15 11:12:35 -03:00
Marius 581bbbb319 feat(cli,vscode): add custom commit message prompt setting (#8974)
* feat(cli,vscode): add custom commit message prompt setting

Support user-configurable system prompt for AI commit message generation.
Adds a dedicated Commit Message tab in VS Code settings with a toggle
to override the built-in conventional commits prompt.

* fix: add missing kilocode_change annotation and fix i18n formatting

* refactor: move Config reading to route handler, add textarea max-height

Move kilo-specific Config.get() from shared generate.ts to the route
handler. The generator now accepts an optional prompt param instead.
Cap textarea height at 300px with scroll for long prompts.

* fix: resolve annotation gaps and prompt clear serialization bug

Add kilocode_change markers to JSDoc comment and extend block to
cover the generateCommitMessage call. Use empty string instead of
undefined when clearing the prompt so JSON serialization persists
the removal to disk.

* refactor(cli): move commit-message module to kilocode paths

Move src/commit-message/ to src/kilocode/commit-message/, route to
src/kilocode/server/routes/, and tests to test/kilocode/commit-message/.
Extract CommitMessageSchema to KilocodeConfig and reference it from
the main Config.Info. Removes all kilocode_change markers from moved
files since they are now in exempt paths.

* test(cli): fix moved commit-message tests
2026-04-15 16:09:05 +02:00
Marian Alexandru Alecu e8fd495708 Merge pull request #8972 from Kilo-Org/kilocode-auto-approve-permissions
fix(cli): fix disable auto-approve leaving stale config and UI
2026-04-15 16:49:39 +03:00
Marian Alexandru Alecu 6b77077167 Merge pull request #8971 from Kilo-Org/kilocode-worktree-session-list
fix(cli): worktree session list shows all worktrees
2026-04-15 16:47:18 +03:00
Marian Alexandru Alecu 5f7954c43f Merge pull request #6404 from Kilo-Org/feat/suggest-code-review
feat: Suggest code review after implementation
2026-04-15 15:30:29 +03:00
Alex Alecu 723344530b refactor(cli): move test to kilocode dir 2026-04-15 15:10:42 +03:00
Alex Alecu e937894829 fix(cli): fix type errors from accept return type 2026-04-15 14:42:13 +03:00
Alex Alecu 624be2310d fix(cli): fix disable auto-approve leaving stale config and UI 2026-04-15 14:09:24 +03:00
Marius 9dd1f631b4 revert: restore patch fields for diff compatibility (#8970)
Reverts #8967 and #8953. OpenCode is migrating to use patch strings as
the primary diff transport — dropping them breaks forward compatibility
with upstream's SessionReview rendering pipeline, which falls back to
patch when before/after are absent.
2026-04-15 13:05:44 +02:00
Alex Alecu 74288ef0c2 fix(cli): worktree session list ignoring SDK-injected directory filter
The SDK rewrite interceptor injects directory=<cwd> into every GET request.
The experimental session list endpoint was passing this to listGlobal even
when worktrees=true, restricting results to only the current directory.
Skip the directory filter when worktrees is active so all worktree sessions
are returned. Add regression test that includes directory in query params.
2026-04-15 13:54:49 +03:00
Marian Alexandru Alecu 9df0dbea22 Merge branch 'main' into feat/suggest-code-review 2026-04-15 12:48:31 +03:00
Marius 22806d4966 fix(cli): avoid worktree diff patch generation (#8953) 2026-04-15 10:41:00 +02:00
Marian Alexandru Alecu bab81482a9 Merge branch 'main' into feat/suggest-code-review 2026-04-15 11:40:13 +03:00
Marian Alexandru Alecu 5182ea6a44 Merge pull request #8919 from Kilo-Org/fix/internal-skills
fix(cli): restore built-in skill registration
2026-04-15 11:35:36 +03:00
Marian Alexandru Alecu c22eee3aba Merge branch 'main' into feat/suggest-code-review 2026-04-15 10:42:13 +03:00
Marian Alexandru Alecu b0a658ed11 Merge pull request #8671 from Kilo-Org/fix/skill-read-config-protection
fix(cli): stop config protection from blocking skill reads
2026-04-15 10:38:04 +03:00
Alex Alecu 4146932278 Merge remote-tracking branch 'origin/main' into feat/suggest-code-review
# Conflicts:
#	packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
#	packages/opencode/src/kilocode/tool/registry.ts
#	packages/opencode/src/session/processor.ts
#	packages/opencode/src/tool/registry.ts
2026-04-15 10:30:35 +03:00
Alex Alecu b7e1491eec test(cli): move config dir test to kilocode/ 2026-04-15 10:21:00 +03:00
Marian Alexandru Alecu b882d352e6 Merge branch 'main' into fix/internal-skills 2026-04-15 09:45:43 +03:00
Catriel Müller c32e7a860a fix: fix core tests 2026-04-14 19:20:25 -03:00
Catriel Müller 87ca280011 fix: typechecks 2026-04-14 17:25:37 -03:00
Catriel Müller 1c67e0fe71 resolve merge conflicts 2026-04-14 17:05:48 -03:00
Catriel Müller c9e0060e2a refactor: kilo compat for v1.4.3 2026-04-14 14:46:57 -03:00
Catriel Müller f3bc6e04f4 Merge pull request #8923 from Kilo-Org/imanolmaiztegui/kilo-opencode-v1.4.0
OpenCode v1.4.0
2026-04-14 14:42:45 -03:00
Alex Alecu 7ff38788ca fix(cli): add kilocode_change annotations to shared skill tests 2026-04-14 20:35:01 +03:00
Catriel Müller 9fe8b969e0 fix: windows http memory 2026-04-14 14:20:58 -03:00
Imanol Maiztegui ba3309b21f fix(opencode): merge variant into model object in plan-followup test seed
Pass variant as a property of the model object instead of as a separate
field, conditionally spreading it when input.variant is provided.
2026-04-14 19:00:52 +02:00
Alex Alecu 0f196e7af6 fix(cli): restore built-in skill registration lost in upstream merge 2026-04-14 18:48:08 +03: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
Alex Alecu b45811d7ae Merge origin/main and adapt token usage to plugin architecture 2026-04-14 17:20:25 +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
Imanol Maiztegui 9f4f0ba899 resolve merge conflicts 2026-04-14 15:58:28 +02:00
Alex Alecu 9bfe7dc20d fix: restore suggest tool registration, add kilocode_change markers, fix lint 2026-04-14 16:54:52 +03:00
Alex Alecu 54fe077158 Merge remote-tracking branch 'origin/main' into fix/skill-read-config-protection
# Conflicts:
#	packages/opencode/src/agent/agent.ts
#	packages/opencode/src/tool/apply_patch.ts
#	packages/opencode/test/agent/agent.test.ts
2026-04-14 16:25:32 +03:00
Alex Alecu 596bc9f83a Merge remote-tracking branch 'origin/main' into feat/suggest-code-review
# Conflicts:
#	packages/opencode/src/tool/registry.ts
2026-04-14 16:00:08 +03: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
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
Alex Alecu 208d73e4b3 fix(cli): resolve type errors after merge with main
Add Command.get() export for suggestion tool, fix branded SessionID
usage in question test.
2026-04-14 11:53:13 +03:00
Imanol Maiztegui 170889e951 resolve merge conflicts 2026-04-14 10:44:13 +02:00
Alex Alecu 54b5d124a4 Merge remote-tracking branch 'origin/main' into feat/suggest-code-review
# Conflicts:
#	packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
#	packages/opencode/src/tool/registry.ts
#	packages/opencode/test/kilocode/sessions/remote-sender.test.ts
2026-04-14 11:36:09 +03: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
Imanol Maiztegui 73b6d9a6c9 refactor: kilo compat for v1.3.17 2026-04-14 09:35:34 +02:00
Alex Alecu 07b4a4541e Merge remote-tracking branch 'origin/main' into feat/suggest-code-review 2026-04-14 10:26:49 +03: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