Commit Graph

4750 Commits

Author SHA1 Message Date
Josh Holmer 7db99c37eb fix: re-prevent plan file corruption for OpenAI models by preserving write tool (#9188) 2026-04-20 09:46:33 +02:00
Marian Alexandru Alecu bec6b03d4c Merge pull request #9193 from Kilo-Org/extreme-cauliflower
docs(cli): require final summary before local review suggestion
2026-04-20 10:40:00 +03:00
marius-kilocode f025e34b6a docs(cli): require final summary before local review suggestion 2026-04-20 09:26:34 +02:00
Imanol Maiztegui 2ee8394cf1 feat: add workspace API endpoints, sanitize export flag, and update SDK types
Add experimental workspace adaptor list and status endpoints to the
OpenAPI spec. Add --sanitize flag to CLI export command for redacting
sensitive data. Update SDK types to reorder session status types before
suggestion types. Remove deprecated /global/sync-event endpoint.

Includes formatting fixes across i18n files, opencode source, and
tests, plus a warpgrep import path correction.
2026-04-17 22:51:24 +02:00
Imanol Maiztegui 5a2789167f Merge branch 'main' into johnnyamancio/kilo-opencode-v1.4.4 2026-04-17 22:35:10 +02:00
Johnny Amancio 8aa490c66e chore: Add kilocode_change marker 2026-04-17 20:17:57 +02:00
Johnny Amancio 2172616229 fix: Remove Bash string appearing before commands - brought back on earlier opencode merge 2026-04-17 20:17:57 +02:00
Marius 72fc5d9918 docs(cli): note cloud schema mirror when adding kilocode_change config keys (#9117)
* docs(cli): note cloud schema mirror when adding kilocode_change config keys

Points devs to apps/web/src/app/config.json/extras.ts in the cloud repo
so new Kilo-only config keys get recognised by $schema references.

Closes #9115

* docs: add CLI config schema page and AGENTS.md mirror rule

Short page under Contributing → Architecture explaining how the cloud
overlays Kilo extras on top of the upstream opencode JSON Schema, with
the step-by-step for adding a new Kilo-only config key. AGENTS.md gains
a one-liner in the Fork Merge Process section pointing to it.
2026-04-17 17:57:24 +02:00
Christiaan Arnoldus 11343c4473 Merge pull request #9067 from Kilo-Org/fix/queued-prompt-reorder
fix(cli): move queued user prompts to end of history
2026-04-17 13:55:38 +02:00
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
Johnny Amancio eb89a1966f chore: Keep scope by project_id to prevent cross-project leakage 2026-04-17 13:20:51 +02:00
Alex Alecu 07df796591 fix(cli): wrap auto-apply effect in change markers 2026-04-17 14:12:48 +03:00
Johnny Amancio 3c7b0a7d3c fix: Regenerage sdk and port tests to new v1.4.4 style 2026-04-17 12:47:27 +02:00
Josh Holmer 31808ccc64 fix: improve GPT and Codex subagent usage (#9076) 2026-04-17 12:36:21 +02:00
Johnny Amancio 8bff3718aa fix: Fix proxy removal that was moved in v1.4.4 2026-04-17 12:30:12 +02:00
Johnny Amancio 0c3e31f6d2 Merge remote-tracking branch 'origin/main' into johnnyamancio/kilo-opencode-v1.4.4 2026-04-17 12:23:18 +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
Johnny Amancio 2e1836a91e Merge remote-tracking branch 'origin/main' into johnnyamancio/kilo-opencode-v1.4.4 2026-04-17 11:42:27 +02: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
Johnny Amancio 0eb10ac23d fix: Fix issue caused by kilo code not yet been ported to effect 2026-04-16 22:44:27 +02:00
kiloconnect[bot] 959a8b498d fix(cli): move queued user prompts to end of history
When a user queued a prompt while the previous turn was still streaming,
the message's time_created fell before later assistant steps of that
turn. Ordering by time_created alone left the queued prompt in the
middle of the prior turn's history, so the next request ended with an
assistant message and tripped Anthropic's prefill rejection.

Reorder inside KiloSessionPromptQueue.scope so the target user message
and any of its own turn's assistants are always placed at the end.
2026-04-16 19:35:17 +00:00
Johnny Amancio 689f810705 Merge remote-tracking branch 'origin/main' into johnnyamancio/kilo-opencode-v1.4.4 2026-04-16 20:30:42 +02: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
Johnny Amancio c78f492025 fix: Fix unit tests 2026-04-16 02:19:20 +02:00
Johnny Amancio 501ebbf0eb fix: Fix typecheck issues 2026-04-16 01:39:31 +02:00
Johnny Amancio 87aaac92cb Merge remote-tracking branch 'origin/main' into johnnyamancio/kilo-opencode-v1.4.4 2026-04-15 23:07:46 +02:00
Johnny Amancio 915f12c7e2 resolve merge conflicts 2026-04-15 22:51:15 +02: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