Skip to content

fix(cli): restore OpenCode plugins and verify Kilo runtime hooks - #971

Merged
blafourcade merged 23 commits into
nextfrom
fix/opencode-plugin-loading
Oct 8, 2026
Merged

blafourcade merged 23 commits into
nextfrom
fix/opencode-plugin-loading

Conversation

@blafourcade

@blafourcade blafourcade commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What & why

OpenCode V2 rejected context/telemetry plugins. Both now load and execute, preserving V1 >= 1.18.29. Kilo hooks now cover a complete turn.

How it works

Default id/server/setup; one shared V2 adapter outside discovery. Install/update repair missing helpers, including already-current plugins, while preserving user files. Kilo deduplicates session/tool/idle hooks. Mutation assets load as text; Windows checkout retains LF. Obsolete parser removed; thresholds and bundle budget unchanged.

Architecture follows marketplace → plugin → components; adapter details belong to CLI documentation. A Claude-only rule keeps durable documentation concise without dropping contracts or safeguards. Project memories remain unchanged.

How to verify

  • Final-head checks: CLI suites, architecture, Knip, mutations, Windows, real Kilo and CodeQL.
  • Independent code/behavior/relevance review found two issues, both corrected and rechecked: same-version helper restoration and repository-relative fixture resolution.
  • Restoration regression failed before the fix; 36 targeted tests passed afterward. The compiled CLI also restored exact helper bytes without changing user configuration, installed plugin or unique ownership.
  • Real OpenCode 1.18.29/2.0.22 and Kilo 7.7.5 verified memory, read, hooks and cleanup with local deterministic inference. Evidence and limits.

Heads-up

Kilo telemetry unsupported. Paid providers, global profiles, hot reload and Windows Kilo runtime untested. Historical research/implementation chronology was not independently reconstructed in the final review.

Linked issue

Closes #953

I certify

  • I DO CERTIFY I READ EACH LINE OF THE PULL REQUEST BECAUSE I AM A SOFTWARE ENGINEER, NOT A AI PUPPY.

OpenCode V2 requires a default definition and emits a different event lifecycle. Keep the V1 server entrypoint while adapting measured V2 tool and execution events.

Closes #953

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
@blafourcade blafourcade changed the title fix(cli): restore OpenCode V1/V2 hooks and telemetry fix(cli): restore OpenCode plugins and verify Kilo runtime hooks Oct 7, 2026
Comment thread cli/tests/e2e/kilo-runtime.e2e.test.ts Fixed
Comment thread cli/tests/e2e/kilo-runtime.e2e.test.ts Fixed
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Preserve operational contracts, verification commands and Kanban metadata while removing repetition and transient snapshots.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Link implementation protocols to canonical sources instead of duplicating them in the framework overview.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Explain core concepts visually and keep operational safeguards visible while linking detailed implementation contracts.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Keep responsibilities, usage, interpretation and safeguards in their own sections while preserving linked anchors and contracts.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Keep the same documentation safeguards in fewer instructions.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Give each plugin component a clear role, keep adapter details with the CLI, and correct conflicting public documentation.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Keep the architecture focused on stable relationships and responsibilities, with concise prose and preserved safeguards.

Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
Refs #953.

AIDD-Session-Id: 01a11696-08a4-78b1-b05c-c456b9fbceb3
@blafourcade
blafourcade marked this pull request as ready for review October 8, 2026 18:04
@blafourcade
blafourcade requested a review from a team as a code owner October 8, 2026 18:04
@blafourcade
blafourcade merged commit 12777d0 into next Oct 8, 2026
39 checks passed
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.

2 participants