Skip to content

OpenCode v1.14.46#10822

Merged
marius-kilocode merged 54 commits into
mainfrom
marius-kilocode/kilo-opencode-v1.14.46
Jun 3, 2026
Merged

OpenCode v1.14.46#10822
marius-kilocode merged 54 commits into
mainfrom
marius-kilocode/kilo-opencode-v1.14.46

Conversation

@marius-kilocode
Copy link
Copy Markdown
Collaborator

1.14.46

Core

Improvements

  • Added a built-in customize-opencode skill so opencode config edits are less likely to break startup.

Bugfixes

  • Fixed numeric HTTP API query parameters in the generated OpenAPI spec and SDK for session and file endpoints.
  • Fixed boolean HTTP API query handling so SDK types and runtime validation stay aligned.
  • Tolerated legacy stored numeric values in sessions, diffs, and retry events instead of failing to load old data.
  • Fixed old sessions with negative token counts causing message loads and Desktop startup to fail.
  • Fixed MCP tool discovery when a server publishes broken outputSchema references.
  • Fixed workspace HTTP API query drift so workspace-routed endpoints expose the right query parameters in OpenAPI and the SDK.
  • Fixed a Plan Mode security bypass where subagents could ignore parent-agent deny rules.

1.14.45

Core

Bugfixes

  • Provider configs and API responses now accept models marked as active.
  • Read tool permission rules now match worktree-relative paths, so read allowlists and denylists apply correctly.
  • Workspace-routed HTTP API endpoints no longer reject valid directory and workspace query params.

TUI

Bugfixes

  • Startup errors now report every failed bootstrap request instead of only the first one.
  • Opening a session no longer crashes when the messages request fails.

Desktop

Bugfixes

  • Older migrated sessions with missing diff file details load again.
  • Older migrated sessions with missing diff patches load again.

SDK

Bugfixes

  • throwOnError: true now throws a real Error with the server message and preserves the response body in cause.

Extensions

Improvements

  • TUI plugins using the deprecated api.command API keep working while you migrate to api.keymap.

Bugfixes

  • Provider plugins can no longer mutate shared provider model state for the rest of the app.

1.14.44

Core

Bugfixes

  • Fixed upgrades failing for existing workspaces when adding the time_used field.

1.14.43

Core

Bugfixes

  • Keep provider and config API responses working when auth loaders add non-JSON options to providers.
  • Include tool image attachments in ACP updates and session replays.

opencode-agent Bot and others added 30 commits May 9, 2026 16:32
Adds regression coverage for request context inheritance in promptAsync and explicit context provisioning in stream bodies.
Read permission checks now use the same worktree-relative path basis as edit/write/apply_patch, so configured patterns apply consistently.
SDK throwOnError paths now convert structured response bodies into real Error instances while preserving the original body and status in cause.
TUI bootstrap now reports all parallel fetch failures together instead of losing sibling failures after the first rejection.
Comment thread packages/opencode/test/server/httpapi-sync.test.ts
Comment thread packages/opencode/src/cli/cmd/tui/plugin/command-shim.ts
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Jun 2, 2026

Code Review Summary

Status: 2 Issues Found (carried forward) | Recommendation: Address before merge

Overview

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

WARNING

File Line Issue
packages/opencode/test/server/httpapi-sync.test.ts 125 Test disabled with .todo without updating assertion to match new 400 error shape
packages/opencode/src/kilocode/session-export/workspace-provider.ts 133 writeFileSync in save() blocks the event loop on the main process — called synchronously on every remember() and capture() call

SUGGESTION

File Line Issue
packages/opencode/src/cli/cmd/tui/plugin/command-shim.ts 11 Module-level warned Set accumulates entries across test reloads; bounded in production
New Changes (incremental since 94fc422)

All new changes reviewed — no new issues found.

packages/opencode/src/tool/task.ts — cross-session resume guard + permission refresh: The session.parentID !== ctx.sessionID check (line 78-80) correctly blocks task hijacking. The KiloTask.merge call on resume (lines 91-99) puts session.permission first so first-seen-wins deduplication preserves existing child permissions, then appends freshly derived parent restrictions. Since evaluate uses findLast, a later deny override from the parent will still win against an older allow in the child — this is correct and the test at line 251-259 confirms stable deduplication across multiple resumes.

packages/opencode/src/kilocode/tool/task.tsKiloTask.merge: Clean first-seen-wins dedup keyed on permission\0pattern\0action. Works as expected with the evaluate last-wins evaluator.

packages/opencode/src/kilocode/session/prompt.tsmergeToolPermissions: Correctly replaces per-permission-name toggles (drops old entries with same .permission name, appends the new toggle), preserving unrelated existing rules. This is intentionally different from KiloTask.merge (which keys on permission+pattern+action) — it replaces by permission name so a user toggle always wins over a stale rule for the same tool. Well-tested.

packages/opencode/src/session/prompt.tsmergeToolPermissions wiring: The kilocode_change block replaces the previous direct session.permission = permissions overwrite with a merge call that preserves inherited task restrictions. Correct.

Kilo HTTP API WorkspaceRoutingQuery propagation: The directory/workspace query parameters are now consistently applied to all routed Kilo-owned endpoints (agent-builder, commit-message, enhance-prompt, network, telemetry, config-console). The new test in httpapi-public.test.ts verifies all 18 routes have both params in the OpenAPI spec. SDK types in sdk.gen.ts and types.gen.ts are updated to match. The connection-service.ts any-cast workaround is cleanly removed now that the SDK types include the network methods.

packages/opencode/test/kilocode/task-nesting.test.ts — new tests: Three new cases: (1) unit test for mergeToolPermissions logic, (2) live integration test for permission refresh on resume, (3) live test for cross-session resume rejection. All well-structured and test real behavior.

Changeset — description is user-facing and appropriately concise.

Files Reviewed (incremental — changes since 94fc422)
  • packages/opencode/src/tool/task.ts — cross-session guard + resume permission refresh, no issues
  • packages/opencode/src/kilocode/tool/task.ts — KiloTask.merge added, no issues
  • packages/opencode/src/kilocode/session/prompt.ts — mergeToolPermissions added, no issues
  • packages/opencode/src/session/prompt.ts — mergeToolPermissions wiring, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/agent-builder.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/commit-message.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/config-console.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/enhance-prompt.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/network.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/src/kilocode/server/httpapi/groups/telemetry.ts — WorkspaceRoutingQuery added, no issues
  • packages/opencode/test/kilocode/server/httpapi-public.test.ts — workspace routing query contract test, no issues
  • packages/opencode/test/kilocode/task-nesting.test.ts — 3 new tests, no issues
  • packages/kilo-vscode/src/services/cli-backend/connection-service.ts — any-cast removed, no issues
  • packages/sdk/js/src/v2/gen/sdk.gen.ts — directory/workspace params added to all relevant clients, no issues
  • packages/sdk/js/src/v2/gen/types.gen.ts — query types updated, no issues
  • packages/sdk/openapi.json — OpenAPI spec updated, no issues
  • .changeset/steady-worktree-routing.md — user-facing description appropriate, no issues

Fix these issues in Kilo Cloud


Reviewed by claude-4.6-sonnet-20260217 · 797,810 tokens

Review guidance: REVIEW.md from base branch main

…opencode-v1.14.46

# Conflicts:
#	packages/opencode/src/config/provider.ts
…opencode-v1.14.46

# Conflicts:
#	packages/opencode/src/kilocode/session/processor.ts
#	packages/opencode/src/server/routes/instance/httpapi/groups/session.ts
#	packages/opencode/src/session/processor.ts
#	packages/opencode/src/session/prompt.ts
@marius-kilocode marius-kilocode enabled auto-merge June 3, 2026 18:37
@marius-kilocode
Copy link
Copy Markdown
Collaborator Author

Did a quick brush test on the relevant domains. Looks all good, will merge.

@marius-kilocode marius-kilocode merged commit ac02d82 into main Jun 3, 2026
23 checks passed
@marius-kilocode marius-kilocode deleted the marius-kilocode/kilo-opencode-v1.14.46 branch June 3, 2026 18:54
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.

8 participants