Commit Graph

4577 Commits

Author SHA1 Message Date
Marian Alexandru Alecu 852b52e846 Merge pull request #9118 from Kilo-Org/kilocode-model-switcher
fix(cli): preserve per-agent model overrides
2026-04-17 14:43:48 +03:00
Alex Alecu 07df796591 fix(cli): wrap auto-apply effect in change markers 2026-04-17 14:12:48 +03:00
Josh Holmer 31808ccc64 fix: improve GPT and Codex subagent usage (#9076) 2026-04-17 12:36:21 +02:00
Marius 530125828e Add folder mentions (#9023)
* feat(vscode): add folder mentions

* fix(vscode): harden folder mentions

* refactor(vscode): tighten folder mention plumbing

* fix(cli): annotate kilo-specific read.ts exports
2026-04-17 11:59:31 +02:00
Alex Alecu 343455b878 fix(cli): preserve per-agent model overrides (#9050)
Gate the agent-change auto-apply effect on model.json load and skip it when a per-agent pick already exists, so user-selected models for agents with a configured default no longer revert on agent switches or restarts.
2026-04-17 12:47:35 +03:00
Alex Alecu 9dfa2ae352 Merge remote-tracking branch 'origin/main' into kilocode-suggest-code-review
# Conflicts:
#	bun.lock
#	package.json
#	packages/app/package.json
#	packages/desktop-electron/package.json
#	packages/desktop/package.json
#	packages/extensions/zed/extension.toml
#	packages/kilo-docs/package.json
#	packages/kilo-gateway/package.json
#	packages/kilo-i18n/package.json
#	packages/kilo-telemetry/package.json
#	packages/kilo-ui/package.json
#	packages/kilo-vscode/CHANGELOG.md
#	packages/kilo-vscode/package.json
#	packages/kilo-vscode/src/KiloProvider.ts
#	packages/kilo-vscode/webview-ui/src/context/session.tsx
#	packages/opencode/CHANGELOG.md
#	packages/opencode/package.json
#	packages/opencode/src/session/prompt.ts
#	packages/plugin/package.json
#	packages/script/package.json
#	packages/sdk/js/package.json
#	packages/storybook/package.json
#	packages/ui/package.json
#	packages/util/package.json
#	script/upstream/package.json
#	sdks/vscode/package.json
2026-04-17 12:46:12 +03:00
Alex Alecu a120efdc44 refactor(cli): drop client-gated blocking flag from suggest tool
Webview now ignores the blocking field entirely, and the CLI TUI treats
undefined as blocking (s.blocking !== false), so setting
blocking: Flag.KILO_CLIENT !== 'vscode' is redundant. Drop the line and
the now-unused Flag import — CLI takeover behavior is preserved, webview
behavior is unchanged.
2026-04-17 12:12:37 +03:00
Christiaan Arnoldus 8c2e586e05 Merge pull request #9069 from Kilo-Org/fix/opus-4.7-adaptive-reasoning
fix(cli): add opus-4.7 adaptive reasoning and xhigh effort
2026-04-17 10:22:00 +02:00
kiloconnect[bot] e60c326319 fix(cli): add opus-4.7 adaptive reasoning and xhigh effort variant 2026-04-17 07:59:52 +00:00
Alex Alecu 226f9e3483 fix(cli): drop state.cancel from prompt enqueue path
The prompt queue already serializes follow-up loops, so canceling the
in-flight loop on every new prompt breaks the queue contract (see
session-prompt-queue.test.ts). Keep only Suggestion.dismissAll so a
previous loop blocked on a suggestion can settle.
2026-04-17 10:12:14 +03:00
Alex Alecu 04a3db91ec Merge remote-tracking branch 'origin/main' into kilocode-suggest-code-review
# Conflicts:
#	packages/opencode/src/session/prompt.ts
2026-04-17 10:11:41 +03:00
Marian Alexandru Alecu ca6f4bc450 Merge pull request #9039 from Kilo-Org/fix/restore-tsgo-lightweight-diagnostics
fix(cli): restore tsgo lightweight diagnostics
2026-04-17 09:32:56 +03:00
Marius bea88788f4 fix(cli): continue queued follow-up prompts (#9047)
* fix(cli): continue queued follow-up prompts

* test(cli): stabilize local model persistence test

* fix(cli): preserve queued prompt order

* fix(cli): persist queued prompts before processing

* chore(cli): clarify prompt queue settling

* fix(cli): preserve queued prompt history order

* fix(cli): clear queue state on release and test abort
2026-04-16 18:27:34 +02:00
Alex Alecu 158b65d5fe fix(cli): throw 404 on unknown suggestion dismiss 2026-04-16 16:57:05 +03:00
Alex Alecu 030adeea9a fix(cli): remove misleading TsClient fallback in experimental mode 2026-04-16 16:31:41 +03:00
Alex Alecu 83a4a0927d fix(cli): add dedup guard to TsClient creation in Block A
Prevent duplicate TsClient instances from accumulating in s.clients
on repeated getClients calls by checking for an existing client before
creating a new one.
2026-04-16 15:05:21 +03:00
Alex Alecu d5d8344c7d fix(cli): restore tsgo lightweight TypeScript diagnostics
Re-introduce the lightweight TypeScript diagnostic mode that was lost
during upstream OpenCode merges. Fixes the buggy server.ts spawn (leaked
process, wrong args) and re-adds TsClient integration in index.ts.
2026-04-16 15:00:32 +03:00
Alex Alecu ea507a4544 Merge remote-tracking branch 'origin/main' into kilocode-suggest-code-review
# Conflicts:
#	packages/kilo-vscode/webview-ui/src/components/chat/AssistantMessage.tsx
#	packages/kilo-vscode/webview-ui/src/stories/chat.stories.tsx
2026-04-16 14:59:46 +03:00
Imanol Maiztegui faebb41b74 Merge pull request #9034 from Kilo-Org/imanol/snapshot
Add heap snapshot command to VSCode extension
2026-04-16 13:49:09 +02:00
Catriel Müller 28aebeb157 Merge pull request #8986 from Kilo-Org/catrielmuller/fix-memory-webfetch-test
fix: Flaky tests
2026-04-16 08:31:29 -03:00
Imanol Maiztegui 71852f2466 feat(vscode): add heap snapshot command for bundled CLI
Introduce a "Take Heap Snapshot" command in the VS Code Command Palette
that triggers the bundled CLI process to write a V8 heap snapshot to the
log directory. This includes:

- New server route POST /kilocode/heap/snapshot in opencode
- HeapSnapshot module using node:v8 writeHeapSnapshot
- VS Code command registration and client-side fetch logic
- Generated SDK types and client methods for the new endpoint
2026-04-16 12:58:37 +02:00
kiloconnect[bot] 0885367a3d fix(cli): add pnpm-lock.yaml and yarn.lock to .kilo/.gitignore
The .gitignore generated in .kilo/ config directories was missing
pnpm-lock.yaml and yarn.lock patterns, causing these lockfiles to
appear as untracked files in users' projects.
2026-04-16 09:28:46 +00:00
Alex Alecu 2f3408acd2 feat: restore suggest code review tool
Re-applies #6404 and #8988 (reverted in #8994).
2026-04-16 09:22:18 +03:00
kiloconnect[bot] 2c25720ec3 fix(cli): restore model.prompt-based system prompt selection
The switch(model.prompt) block in SystemPrompt.provider() was
accidentally dropped during merge conflict resolution in fa2c979ac.
This meant the prompt property set by the Kilo gateway (e.g. codex,
anthropic, beast) was stored on the model but never read, causing all
Kilo-routed models to fall back to model.api.id string matching.
2026-04-15 19:29:17 +00:00
Catriel Müller 3faed47516 fix: fix git test 2026-04-15 13:51:05 -03:00
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
Alex Alecu 3b96485dc1 fix(cli): dismiss suggestions on new message to prevent stuck session 2026-04-15 17:47:25 +03: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 5062339220 docs(cli): clarify stripNulls jsdoc 2026-04-15 15:09:33 +03:00
Alex Alecu 3fd8357af4 fix(cli): propagate suggestion accept failure to remote clients 2026-04-15 14:59:09 +03:00
Alex Alecu ef435ebba1 fix(cli): restrict suggest tool to code-review-only
Narrow suggest tool prompts so the LLM only uses it to offer local
code review, not generic next steps like committing, pushing, or
running tests.
2026-04-15 14:53:36 +03:00
Alex Alecu e937894829 fix(cli): fix type errors from accept return type 2026-04-15 14:42:13 +03:00
Alex Alecu c61846b618 fix(cli): return 404 when suggestion accept no-ops 2026-04-15 14:35:21 +03:00
Alex Alecu 61c0105565 fix(cli): reject promise on invalid action index 2026-04-15 14:35:21 +03:00
Alex Alecu 1b5832ce3f fix(cli): limit concurrent git processes for untracked files 2026-04-15 14:35:21 +03:00
Alex Alecu 3d74441b7e fix(cli): delete only nested sentinel to preserve other wildcard rules 2026-04-15 14:31:39 +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
Christiaan Arnoldus cada8a95bc Fix typecheck 2026-04-15 11:55:17 +02:00
Christiaan Arnoldus ee66ba1984 Merge branch 'main' into session/agent_9864f1dc-ca7c-4243-877b-14d089b66f92 2026-04-15 11:49:58 +02:00
Christiaan Arnoldus e01716a2d8 Pick variants from the model 2026-04-15 11:48:57 +02:00
Marian Alexandru Alecu 9df0dbea22 Merge branch 'main' into feat/suggest-code-review 2026-04-15 12:48:31 +03:00
Alex Alecu ee12fb5283 fix(cli): skip output truncation for suggest tool to fix test failures 2026-04-15 12:07:12 +03:00
Alex Alecu 543660bc8d fix(cli): parallelize git diff for untracked files in review
Sequential git diff --no-index per untracked file was slow in repos
with many untracked files (e.g. after build or codegen). Run all
diffs concurrently with Promise.all.
2026-04-15 11:56:48 +03:00
Marius 22806d4966 fix(cli): avoid worktree diff patch generation (#8953) 2026-04-15 10:41:00 +02:00