Commit Graph

6473 Commits

Author SHA1 Message Date
Imanol Maiztegui 2a6c4294eb fix(opencode): remove mistral from reasoning model check and rebrand cache paths
Remove mistral from the provider reasoning variant detection list
and update bare repo test assertions to use "kilo" cache directory
naming instead of "opencode".
2026-04-24 21:59:56 +02:00
Imanol Maiztegui 0a9b293a40 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.22 2026-04-24 19:28:28 +02:00
Imanol Maiztegui 6e0e2783eb build(sdk): regenerate SDK types and sort package.json dependencies
Re-run code generation to emit the SnapshotSummaryFileDiff named type
and replace inline anonymous diff objects across Session,
SyncEventSessionUpdated, and GlobalSession. Alphabetically sort
dependency entries in the opencode package.json and add previously
appended Kilo-specific packages into their correct positions.
2026-04-24 19:23:40 +02:00
Imanol Maiztegui 3cec1ffa87 refactor(snapshot): introduce SummaryFileDiff schema and tighten Kilo type annotations
Add a lightweight SummaryFileDiff derived from FileDiff via
Struct.omit(["patch"]) to keep session summary DB payloads small.
Replace inline anonymous object types in session.sql.ts, revert.ts,
and session.ts with the new schema. Cast SessionPrompt input in
remote-sender to satisfy narrowed PromptInput type, guard against
null in permission normalizeInput, and switch remaining bare .parse
calls to .zod.parse for Effect Schema compatibility.

Include unit tests verifying SummaryFileDiff field exclusion and
round-trip parsing behavior.
2026-04-24 19:15:13 +02:00
Imanol Maiztegui eea72116be fix(kilocode): update schema references to use .zod accessor after effect migration
Replace direct Zod schema calls (Config.Info.parse, Config.Info.safeParse,
Snapshot.FileDiff, WorktreeDiff.Item) with their .zod counterparts to
align with the Effect Schema migration that wraps schemas via withStatics.

Migrate WorktreeDiff.Item from Zod's z.object/extend to Effect's
Schema.Struct with annotate and zod bridge. Add missing return statement
in TsClient notify.open stub and widen waitForDiagnostics input type to
match updated upstream interface.
2026-04-24 17:26:59 +02:00
Marian Alexandru Alecu 7767673432 Merge pull request #9418 from Kilo-Org/feat/show-pr-in-cli
feat(cli): show branch pr in sidebar (rename test)
2026-04-24 18:07:45 +03:00
Christiaan Arnoldus ef209e0877 Merge pull request #9470 from Kilo-Org/fix/cli-preserve-empty-reasoning-content
fix(cli): preserve empty reasoning_content in interleaved transform
2026-04-24 17:07:13 +02:00
Imanol Maiztegui 5e519256d2 resolve merge conflicts 2026-04-24 16:58:05 +02:00
Alex Alecu a5baf2988c fix(cli): detect fork parent repo 2026-04-24 17:34:37 +03:00
heimoshuiyu 439cba7879 fix(cli): preserve empty reasoning_content in interleaved transform
DeepSeek thinking mode may return empty reasoning_content on assistant
messages in a tool call chain, which must be sent back in subsequent
requests. The interleaved transform's truthy check was dropping it.

Always set providerOptions.openaiCompatible[field] for assistant
messages so the AI SDK's metadata spread carries it through.

Cherry-picked from anomalyco/opencode#24146 (931e6ed).
2026-04-24 14:30:54 +00:00
Alex Alecu 4381d58dde fix(cli): find fork prs in sidebar 2026-04-24 17:30:13 +03:00
dependabot[bot] 33416eee4b chore(deps): bump @hono/node-server in /packages/opencode (#8927)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.11 to 1.19.13.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.11...v1.19.13)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.13
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-24 16:18:14 +02:00
Marian Alexandru Alecu bd8fe57692 Merge branch 'main' into feat/show-pr-in-cli 2026-04-24 16:37:15 +03:00
Imanol Maiztegui 5bd50c6fe2 refactor: kilo compat for v1.14.22 2026-04-24 14:18:25 +02:00
Imanol Maiztegui 8eb0bb3e84 fix(read): skip binary detection for UTF-16 BOM encoded files
Add a check for UTF-16 byte order marks before the NUL/control-char
heuristic so that legitimate UTF-16 encoded files are not incorrectly
classified as binary. Also update Opus 4.7 transform test to expect
the `display: "summarized"` property in xhigh reasoning config.
2026-04-24 13:49:10 +02:00
Imanol Maiztegui 6d14264b1f fix(opencode): remove unused imports from read tool
Remove unused `open` from fs/promises and `readDirectoryFiles` from
kilocode read-directory module to clean up dead imports in the
compatibility layer.
2026-04-24 13:38:29 +02:00
Imanol Maiztegui 258fe2c8a3 Merge branch 'main' into imanolmaiztegui/kilo-opencode-v1.14.17 2026-04-24 13:31:41 +02:00
kilo-maintainer[bot] ad1cdb550c release: v7.2.22 2026-04-24 10:20:41 +00:00
Imanol Maiztegui a2ae026f50 test(tui): trim verbose backstory from slot reactivity test header
Remove implementation history paragraph from the test file's doc
comment, keeping only the concise description of what the test
validates.
2026-04-24 11:24:02 +02:00
Imanol Maiztegui 07024a0341 fix(tui): preserve SolidJS prop reactivity in Slot wrapper
Replace object spread (`{...props}`) with `mergeProps` when forwarding
props through the plugin Slot wrapper. Spreading props in SolidJS
evaluates each prop once at mount time, freezing reactive values like
`ref`, `visible`, `disabled`, and `on_submit`. This caused handlers to
bind against stale closures after overlay transitions, breaking Enter
submission on the session_prompt slot.

Add regression tests verifying the wrapper uses `mergeProps` (not
spread) and that reactive prop tracking is preserved at runtime.
2026-04-24 11:22:30 +02:00
Imanol Maiztegui 93a1a00361 refactor: adapt kilo compat layer for v1.14.17 API changes
- Switch ConfigCommand validation from Zod to Effect Schema using
  StandardSchemaV1 interface
- Fix toConfig permission merging to avoid mutating shared object
- Wrap saveAlwaysRules route handler with jsonRequest/Effect generator
- Update Typescript.spawn call sites to pass InstanceContext parameter
- Fix Npm import path in config-gitignore test
2026-04-24 10:30:50 +02:00
Imanol Maiztegui 7d1c046f10 resolve merge conflicts 2026-04-24 10:06:31 +02:00
Marian Alexandru Alecu ccb02d8e10 Merge pull request #9455 from Kilo-Org/fix/cli-sync-ready-debug-leftover
fix(cli): fix slow CLI startup
2026-04-24 10:27:54 +03:00
Alex Alecu 3d6db134f0 docs(cli): keep ready debug note 2026-04-24 10:19:58 +03:00
Marian Alexandru Alecu 1f4d238436 Merge pull request #9425 from Kilo-Org/fix/input-text-dismiss-question
fix(cli): preserve prompt text on dismiss
2026-04-24 09:51:19 +03:00
Alex Alecu 567ca0d341 fix(cli): remove unreachable return true in sync.ready
Drop a debug short-circuit shipped upstream in #23037 that flipped `sync.ready` before sync actually finished, producing a 1-2s delay before home content (agents, news, tips) appeared in the TUI. Bisected from origin/main.
2026-04-24 09:43:41 +03:00
Alex Alecu 0fb7b8a43d perf(cli): replace gh probe subprocess with Bun.which
Swap the gh --version spawn for a cached Bun.which("gh") lookup so the sidebar PR plugin costs one fewer subprocess per session mount.
2026-04-24 07:01:31 +03:00
Marian Alexandru Alecu 0612739a54 Merge branch 'main' into feat/show-pr-in-cli 2026-04-24 06:07:16 +03:00
Alex Alecu 33b90038f2 fix(cli): guard autocomplete dismiss 2026-04-24 06:04:36 +03:00
Alex Alecu cea4d0e933 fix(cli): limit sha lookup 2026-04-24 05:52:04 +03:00
Alex Alecu 5521ffee26 refactor(cli): share pr lookup deadline 2026-04-24 05:23:21 +03:00
Alex Alecu bf154a3b42 feat(cli): add sha pr lookup fallback 2026-04-24 05:23:21 +03:00
Alex Alecu 6c1e6f3631 feat(cli): add gh availability probe 2026-04-24 05:23:21 +03:00
Alex Alecu 8b52600836 chore(cli): fix annotation markers 2026-04-24 05:13:34 +03:00
Josh Lambert fa9be90915 feat(cli): allowlist gpt-5.5 in Codex OAuth plugin 2026-04-23 17:48:04 -04:00
Kirill Kalishev a16799d7c3 Merge branch 'main' into legend-trombone 2026-04-23 15:00:33 -04:00
kilo-maintainer[bot] 9bbef8756e release: v7.2.21 2026-04-23 18:58:18 +00:00
kirillk fd9d5ca739 fix(cli): add local jschardet module declaration for typecheck
Add a minimal ambient module declaration for jschardet so the repo
pre-push typecheck hook passes in worktrees where upstream dependency
typings are not resolved by tsgo.
2026-04-23 13:22:53 -04:00
opencode 596145a71d release: v1.14.22 2026-04-23 15:56:36 +00:00
Christiaan Arnoldus 415dc311fd Merge pull request #9424 from Kilo-Org/tests/expand-encoding-coverage
test(cli): expand encoding preservation coverage
2026-04-23 17:38:31 +02:00
Alex Alecu 852eb58c75 fix(cli): dismiss hidden autocomplete 2026-04-23 18:12:49 +03:00
Marian Alexandru Alecu ad2386f2a2 Merge branch 'main' into feat/show-pr-in-cli 2026-04-23 18:10:58 +03:00
Alex Alecu 4e1d49f6ac fix(cli): bound gh timeout 2026-04-23 17:58:06 +03:00
Alex Alecu 6ee160f89c fix(cli): preserve prompt text on dismiss 2026-04-23 17:56:56 +03:00
kiloconnect[bot] bde1a4ae88 test(cli): expand encoding preservation coverage
Add unit tests for the Encoding namespace and extend the tool integration
suite with ApplyPatch delete and EditTool replaceAll paths for non-UTF-8
files.
2026-04-23 14:49:05 +00:00
kiloconnect[bot] c4df6b80cb chore(cli): refine kilocode_change markers on encoding-preservation code
Narrow overly-broad blocks, combine adjacent single-line markers, and
expand inline comments to note what the replaced upstream code did.
2026-04-23 14:28:12 +00:00
Shoubhit Dash 38deb0f3ee fix(npm): respect npmrc config (#24001) 2026-04-23 19:54:01 +05:30
Christiaan Arnoldus 529c3a57f3 Merge pull request #8587 from Kilo-Org/feat/encoding-preservation
feat(cli): preserve original text encoding when editing files
2026-04-23 16:20:23 +02:00
Marian Alexandru Alecu dbe0f920a8 Merge pull request #9332 from Kilo-Org/fix/queue-messages
fix(cli): fix queued messages
2026-04-23 17:18:37 +03:00
Alex Alecu 12c2d86c84 feat(cli): show open PR for current branch in sidebar 2026-04-23 16:46:22 +03:00