Skip to content

OpenCode Merge v1.18.16…v1.18.18 - #13368

Merged
marius-kilocode merged 63 commits into
mainfrom
johnnyeric/kilo-opencode-v1.18.18
Sep 21, 2026
Merged

marius-kilocode merged 63 commits into
mainfrom
johnnyeric/kilo-opencode-v1.18.18

Conversation

@johnnyeric

@johnnyeric johnnyeric commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

OpenCode v1.18.18

Core

Bugfixes

  • Select the Kimi system prompt correctly for official Moonshot and Kimi providers
  • Fix xhigh reasoning effort for xai models

OpenCode v1.18.17

Core

Bugfixes

  • Made session compaction keep complete recent turns and produce clearer summaries for smaller models.
  • Added MERGE Gateway reasoning variants so those model options work correctly.
  • Capped automatic session retries and added jitter to reduce repeated retry storms.
  • Enabled PDF attachments for GitHub Copilot models that advertise PDF vision support.
  • Applied the correct sampling defaults to DeepSeek V4 Flash on supported providers.
  • Routed all Muse family models to the correct Meta system prompt.

Desktop

Bugfixes

  • Updated Chinese developer terminology to use more widely recognized translations.
  • Used the server's current default model instead of stale local config when choosing the default model.

OpenCode v1.18.16

Core

Bugfixes

  • Ignore unknown top-level config fields instead of failing config parsing
  • Register projects opened from Home so they are available to the rest of the app

Desktop

Improvements

  • Open the project menu with a right-click in Home

Bugfixes

  • Fall back to listing and matching local directories when the project picker server does not support search
  • Use 词元 instead of 令牌 for token-related labels in Simplified Chinese
  • Keep the macOS app running after the last window closes and reopen a window when the app is activated

arvsrn and others added 30 commits August 7, 2026 12:11
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: 侯秀凯 <9627034+hoooou@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: vimtor <vn4varro@gmail.com>
@johnnyeric
johnnyeric force-pushed the johnnyeric/kilo-opencode-v1.18.18 branch from e5a9d8c to c9861e9 Compare August 24, 2026 13:08
@johnnyeric
johnnyeric marked this pull request as ready for review August 24, 2026 13:11
@johnnyeric johnnyeric changed the title OpenCode v1.18.16…v1.18.18 OpenCode Merge v1.18.16…v1.18.18 Aug 24, 2026
@johnnyeric
johnnyeric marked this pull request as draft August 24, 2026 14:00
@kilo-code-bot

kilo-code-bot Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/kilocode/config/config.ts 91 Project .json config writes skip the deprecated-key cleanup that global writes apply

Detail: preserve() only calls retireExperimentalFlags, while the global write path runs normalizeLoadedConfig() first, which also strips the deprecated theme, keybinds, and tui keys. A project-level save therefore leaves those retired keys in kilo.json, whereas a global save removes them, so the project file keeps producing the "tui keys in the main config are deprecated" warning that a global write would have cleaned up. Routing the project write through the same normalization (or documenting why project files intentionally retain retired keys) would keep the two write paths consistent.

Note: this finding was carried forward from the previous review and re-verified at a8b16a88; it is unchanged. An inline comment could not be attached because a stale pending review blocks new review submissions.

Files Reviewed (13 files)
  • packages/core/src/plugin/agent.ts
  • packages/core/src/session/compaction.ts
  • packages/core/src/v1/config/config.ts
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/config/parse.ts
  • packages/opencode/src/config/tui.ts
  • packages/opencode/src/kilocode/config-validation.ts
  • packages/opencode/src/kilocode/config/config.ts - 1 issue
  • packages/opencode/src/kilocode/config/excess.ts
  • packages/opencode/src/kilocode/config/writer.ts
  • packages/opencode/src/kilocode/session/compaction-chunks.ts
  • packages/opencode/src/kilocode/session/compaction-payload-recovery.ts
  • packages/opencode/src/session/compaction.ts
  • packages/opencode/src/session/retry.ts
  • packages/opencode/src/session/system.ts
  • packages/opencode/src/provider/transform.ts
  • packages/opencode/src/provider/provider.ts
  • packages/opencode/src/plugin/github-copilot/models.ts
  • script/upstream/transforms/transform-package-json.ts
  • tests, patches, and config/asset changes for the v1.18.16–v1.18.18 merge

Fix these issues in Kilo Cloud

Previous Review Summaries (5 snapshots, latest commit 4cd817a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 4cd817a)

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/kilocode/config/config.ts 91 Project JSON writes skip deprecated-key cleanup used by global writes
Files Reviewed (1 files)
  • packages/opencode/src/provider/provider.ts

Fix these issues in Kilo Cloud

Previous review (commit 0bea46c)

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/kilocode/config/config.ts 91 Project JSON writes skip deprecated-key cleanup used by global writes
Files Reviewed (3 files)
  • bun.lock
  • nix/hashes.json
  • packages/opencode/src/kilocode/config/config.ts - 1 issue

Fix these issues in Kilo Cloud

Previous review (commit dae08d0)

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/kilocode/config/config.ts 91 Project JSON writes skip deprecated-key cleanup used by global writes
Files Reviewed (15 files)
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/config/tui.ts
  • packages/opencode/src/kilocode/config/config.ts - 1 issue
  • packages/opencode/src/kilocode/config/excess.ts
  • packages/opencode/src/kilocode/config/writer.ts
  • packages/opencode/src/provider/transform.ts
  • packages/opencode/src/session/compaction.ts
  • packages/opencode/src/session/retry.ts
  • packages/opencode/test/kilocode/config/config.test.ts
  • packages/opencode/test/kilocode/project-config-update.test.ts
  • packages/opencode/test/kilocode/server/config-overlay.test.ts
  • packages/opencode/test/kilocode/server/tui-config.test.ts
  • packages/opencode/test/kilocode/session-processor-retry-limit.test.ts
  • packages/opencode/test/provider/transform.test.ts
  • packages/opencode/test/session/compaction.test.ts

Fix these issues in Kilo Cloud

Previous review (commit 46da388)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (17 files)
  • artifacts/glm52-rise-video/package.json
  • nix/hashes.json
  • packages/httpapi-codegen/package.json
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/kilocode/config-validation.ts
  • packages/opencode/src/session/retry.ts
  • packages/opencode/test/kilocode/config-resilience.test.ts
  • packages/opencode/test/kilocode/config-validation.test.ts
  • packages/opencode/test/kilocode/config/config.test.ts
  • packages/opencode/test/kilocode/session-processor-retry-limit.test.ts
  • packages/opencode/test/session/prompt.test.ts
  • packages/opencode/test/session/system.test.ts
  • packages/protocol/package.json
  • packages/schema/package.json
  • packages/sdk-next/package.json
  • script/upstream/transforms/transform-package-json.test.ts
  • script/upstream/transforms/transform-package-json.ts

Previous review (commit 5d120f0)

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/config/config.ts 336 Unknown-key warnings are skipped for trusted user configs
Files Reviewed (46 files)
  • .changeset/opencode-v1-18-16-to-v1-18-18.md
  • .opencode-version
  • artifacts/glm52-rise-video/package.json
  • bun.lock
  • package.json
  • packages/core/src/plugin/agent.ts
  • packages/core/src/session/compaction.ts
  • packages/core/src/v1/config/config.ts
  • packages/core/test/provider-groq.test.ts
  • packages/core/test/provider-mistral.test.ts
  • packages/core/test/provider-xai-responses.test.ts
  • packages/core/test/session-compaction.test.ts
  • packages/core/test/session-runner.test.ts
  • packages/httpapi-codegen/package.json
  • packages/opencode/src/agent/prompt/compaction.txt
  • packages/opencode/src/config/config.ts - 1 issue
  • packages/opencode/src/config/parse.ts
  • packages/opencode/src/kilocode/config-validation.ts
  • packages/opencode/src/kilocode/config/excess.ts
  • packages/opencode/src/kilocode/session/compaction-chunks.ts
  • packages/opencode/src/kilocode/session/compaction-payload-recovery.ts
  • packages/opencode/src/plugin/github-copilot/models.ts
  • packages/opencode/src/provider/transform.ts
  • packages/opencode/src/session/compaction.ts
  • packages/opencode/src/session/prompt/meta.txt
  • packages/opencode/src/session/retry.ts
  • packages/opencode/src/session/system.ts
  • packages/opencode/test/config/config.test.ts
  • packages/opencode/test/kilocode/compaction-payload-recovery.test.ts
  • packages/opencode/test/kilocode/config-resilience.test.ts
  • packages/opencode/test/kilocode/config-validation.test.ts
  • packages/opencode/test/kilocode/session-compaction-chunks.test.ts
  • packages/opencode/test/plugin/github-copilot-models.test.ts
  • packages/opencode/test/provider/provider.test.ts
  • packages/opencode/test/provider/transform.test.ts
  • packages/opencode/test/server/httpapi-instance-context.test.ts
  • packages/opencode/test/session/compaction.test.ts
  • packages/opencode/test/session/retry.test.ts
  • packages/opencode/test/session/system.test.ts
  • packages/protocol/package.json
  • packages/schema/package.json
  • packages/sdk-next/package.json
  • packages/session-ui/src/context/data.tsx
  • packages/ui/src/theme/themes/oc-2.json
  • packages/ui/src/v2/components/button-v2.css
  • patches/@ai-sdk%2Fgroq@3.0.31.patch
  • patches/@ai-sdk%2Fmistral@3.0.51.patch
  • patches/@ai-sdk%2Fxai@3.0.102.patch

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0

Review guidance: REVIEW.md from base branch main

@johnnyeric
johnnyeric marked this pull request as ready for review August 25, 2026 10:23
@johnnyeric

Copy link
Copy Markdown
Contributor Author

Report

  • Config compatibility: Adopted upstream’s forward-compatible handling of unknown config fields while
    preserving Kilo warnings so configuration typos remain visible. Global and project writes retain
    unknown future fields, reject unsupported console writes, clean up retired experimental keys
    consistently, and preserve layered unset behavior.

  • Compaction and retry reliability: Adopted upstream’s conversation-aware compaction, clearer smaller-
    model instructions, complete recent-turn preservation, bounded retries, and jitter. Kilo’s configurable
    tail turns, oversized-payload recovery, chunked compaction, offline reconnect handling, and explicit
    no-retry cases were adapted to the new flow rather than replaced.

  • Provider compatibility: Added reasoning-effort support for Groq, Mistral, xAI, and Merge Gateway;
    corrected DeepSeek V4 Flash sampling; enabled advertised GitHub Copilot PDF support; and fixed Kimi and
    Muse prompt routing. Kilo Gateway transforms, provider-specific behavior, branding headers, and
    kilocode_change markers were preserved.

  • Conflict resolution: Shared runtime conflicts were resolved upstream-first. The upstream compaction,
    retry, provider, prompt-routing, and config architectures were retained, then the still-required Kilo
    hooks were reapplied in their new shapes. Kilo-owned compaction recovery remained isolated under
    kilocode/, while shared-file changes stayed narrow and annotated.

  • Stack and generated state: The upstream release ancestry was preserved through the v1.18.18 merge
    commit. The branch was then merged with the updated v1.18.15 stack base; that reconciliation had only a
    bun.lock conflict. Package transforms were kept Kilo-compatible, Nix hashes were regenerated after
    lockfile changes, and the release changeset and OpenCode version were synchronized.

  • Not relevant to Kilo: Upstream desktop Home/project-picker/macOS lifecycle work, console and stats
    services, deployment changes, and upstream documentation updates are absent from the effective Kilo
    CLI/VS Code change set. The applicable shared UI theme and provider response compatibility changes were
    retained.

@johnnyeric
johnnyeric force-pushed the johnnyeric/kilo-opencode-v1.18.18 branch from d4f1e17 to bf1cf50 Compare August 27, 2026 13:31
Base automatically changed from johnnyeric/kilo-opencode-v1.18.15 to main September 21, 2026 12:33
The v1.18.18 merge adopted upstream's description that compaction retention is limited only by the preserved token budget, but the Kilo CLI still resolves an unset tail_turns to 2 turns. Restore an accurate description.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.