GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — OpenCode 2 migration follow-through: port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork · Issue #2290 · developing-today-forks/opencode

OpenCode 2 migration follow-through: port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork #2290

New issue
Copy link
New issue
Copy link
Open
Open
OpenCode 2 migration follow-through: port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork#2290
Copy link
Labels
app/pluginPackage: plugin (pkgs/ or apps/ in this repo)designDesign record / living design doc tracking homedesign/opencode-2-migrationDesign: opencode-2-migration - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/design-registerEpic: design-register - all issues of this effort carry itepic/opencode-platformEpic: opencode-platform - all issues of this effort carry itkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item
Milestone
OpenCode 2 fleet migration

Description

@dezren39
dezren39
opened on Nov 12, 2026
Issue body actions

Drew's ask

2026-10-24 — "my fleet should be exclusively using opencode2. please immediately fix anywhere that isn't"

Migrate every fleet surface (sandbox server, laptop standalone, repo configs, plugins) from OpenCode v1 to v2. Three breaking changes were reconned at the time: the plugin API, the /api/* contracts, and tui.json → cli.json.

What happened, and what was left

The migration core landed — three coordinators ran the same night (sandbox server → 2.1.4; laptop standalone → 2.1.4, with OpenChamber's embedded v1 as a named exception; repo workstreams), and the fleet demonstrably runs OpenCode 2.x everywhere in the November records.

Explicitly left unstarted in the migration record, with no later record of them being done:

  1. Port the v1 plugins to the v2 plugin API: the mcpx bridge, mcpx-session, and subtask2.
  2. Rebase the fork onto current v2 upstream.

The 60-day design audit (register F3.1) also found the migration's origin tracking issue is not findable — this issue is the follow-through tracker so the residue stops living only in a day-file.

Scope

  • Port each of the three v1 plugins (mcpx bridge, mcpx-session, subtask2) to the v2 plugin API.
  • Rebase the fork onto current v2 upstream; any fleet patch that cannot be carried is named in a comment here rather than dropped silently.

Acceptance check

  • Each of the three plugins loads under OpenCode 2 and its v1 function is demonstrated working against the fleet's v2 server.
  • The fork is rebased; dropped patches (if any) are named on this issue.

Refs: 60-day design register, pm-stack/design-register-2026-11-11.md in developing-today/code, §F3.1 · tracking epic developing-today/code#8805

Acceptance criteria

  • The v1 plugins named in this issue (mcpx bridge, mcpx-session, subtask2) are ported to the OpenCode 2 plugin API.
  • The fork is rebased as the issue body scopes, and no fleet surface listed in the body still runs the v1 plugin API.
  • Ported plugins load and pass their existing tests on OpenCode 2.

Activity

  1. dezren39
    added
    kind/featureNew feature or capability request
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    meta/follow-upFollow-up spun out of earlier work
    app/pluginPackage: plugin (pkgs/ or apps/ in this repo)
    mode/onlineFully doable remotely: design, config, code, cloud
    designDesign record / living design doc tracking home
    on Nov 12, 2026
  2. dezren39
    added this to the OpenCode 2 fleet migration milestone on Nov 12, 2026
  3. dezren39
    added
    epic/opencode-platformEpic: opencode-platform - all issues of this effort carry it
    design/opencode-2-migrationDesign: opencode-2-migration - all issues of this effort carry it
    epic/design-registerEpic: design-register - all issues of this effort carry it
    on Nov 12, 2026
  4. dezren39
    added a parent issue on Nov 12, 2026
    • epic: opencode fork — platform work #2319
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    Author
    More actions

    agent-note:v1
    state: triaged
    task: 17596
    lane: any-m
    worker: repo-worker-code

    Triage verdict for issue #2290 (fresh GitHub state checked 2026-11-17T01:29Z): issue is OPEN, unheld (no held / user/owned / do-not-merge / do-not-auto-edit labels), no prior comments. Work kind: multi-part feature follow-through (epic-scale), priority/normal (unchanged — Drew's 2026-10-24 migration order residue, default band), effort: large. This is not a single-session small fix, so the fix is routed as a scoped follow-on packet per the triage protocol.

    Evidence gathered this run (laptop clone ~/git/opencode at 115283d):

    • Partial mcpx integration already exists in core v2: packages/core/test/tool-mcpx.test.ts, tool-mcpx-features.test.ts, mcpx-daemon-autostart.test.ts, and mcpx-daemon-client.test.ts are on main. The follow-on must verify what that covers before porting anything.
    • No subtask2 source found in packages/core/src or packages/plugin/src; packages/plugins contains only figma. The mcpx-session and subtask2 ports appear genuinely outstanding.
    • Fork remotes include upstream-anomalyco (anomalyco/opencode) — the rebase target named in the follow-on.

    First concrete step for the follow-on: inventory the v1 plugin surface of mcpx bridge, mcpx-session, and subtask2 against the v2 plugin API (packages/plugin/src), starting with what the existing core mcpx tests already demonstrate.

    Acceptance check (from the issue, carried into the follow-on): each of the three plugins loads under OpenCode 2 with its v1 function demonstrated against the fleet v2 server (or a comment here names, with evidence, what already exists in core v2 making that port unnecessary); the fork is rebased onto current v2 upstream and any fleet patch that cannot be carried is named here rather than dropped silently.

    Follow-on routed: task 19453 (queue repo-health-opencode-pilot, kind small_fix, dedupe repo-health:v1:fix:developing-today-forks/opencode:issue:2290), enqueued 2026-11-17T01:32Z after a dedupe check found no existing fix-family task for issue #2290.

  6. dezren39
    added
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 17, 2026
  7. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    More actions

    Second-pass verdict (queue task 22572, 2026-11-24): not resolved — the follow-through work remains, and it is now routed as two scoped packets (below).

    What the earlier record got wrong: the 2026-11-17 triage routed follow-on task 19453 to do this work; that task was completed the same day as a bookkeeping / already_done outcome 45 seconds after claim, citing the triage verdict as its artifact, with no implementation or evidence posted here. This pass re-verified everything from source instead.

    Fresh evidence (2026-11-24, fork main cd2ce27e53):

    • None of the three v1 plugins exists as a v2 plugin on main: packages/plugins/ contains only figma; subtask2 has zero hits anywhere under packages/; mcpx-session appears only as references inside core's mcpx code, not as a plugin.
    • Core v2 does carry a substantial mcpx integration: packages/core/src/tool/plugin/ holds mcpx.ts, mcpx-projection.ts, mcpx-diagnose.ts, mcpx-secrets.ts, mcpx-subagent.ts, with tests (tool-mcpx.test.ts, tool-mcpx-features.test.ts, mcpx-daemon-autostart.test.ts, mcpx-daemon-client.test.ts). How much of the v1 mcpx bridge / mcpx-session function that already covers is unverified — the inventory is the necessary first step, exactly as the 2026-11-17 triage specified.
    • Rebase: the fork is not rebased onto current upstream. Fresh GitHub compare anomalyco:dev...developing-today-forks:main = diverged, 2,774 ahead / 99 behind. At 2,774 fleet commits a literal rebase is not the realistic operation; the actionable form is a patch inventory + carry assessment naming anything that cannot be carried.

    Routing (queue repo-health-opencode-pilot):

    • Task 23361 (feature_slice 1, priority 50) — the plugin inventory: v1 surface of mcpx bridge / mcpx-session / subtask2 mapped against core v2 on main, per-plugin verdict (covered-by-core with evidence, or scoped port remainder routed onward).
    • Task 23362 (feature_slice 2, priority 70) — the rebase assessment: patch inventory of the ahead set grouped by area, the 99 behind assessed, recommended carry strategy with costs, uncarriable patches named here.

    This issue stays open as the tracker; it closes when the inventory's port remainders (if any) land and the carry strategy is executed or explicitly settled.

  8. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    More actions

    Plugin inventory — queue task 23361 (slice 1 of #2290), 2026-11-24.

    Method: v1 surfaces read from v1-era sources of record (developing-today/code pkgs/mcpx/plugin/ — the canonical plugin package, with .opencode/plugin/ dogfood copies — plus the installed-dist hook check recorded in code's event-system research doc, 2026-10-20). V2 surfaces read on fork main cd2ce27e53 in a detached worktree (the primary clone's in-progress pr-2640 merge was not touched). Per-plugin verdicts:

    1. mcpx bridge — verdict (a): covered by core v2

    V1 surface: pkgs/mcpx/plugin/core/daemon.ts — the bridge between opencode and the mcpx daemon: DaemonClient, daemon discovery via state-dir info files / sockets (stateDir, socketDirs, readInfoFiles, orphanSockets), authenticated requests (withDaemonAuth). The session plugin consumed it to project daemon tools into the session.

    V2 coverage on fork main: packages/core/src/tool/plugin/mcpx.ts (McpxTool, name mcpx) is a native core bridge: it registers mcpx_exec, mcpx_discover, mcpx_observe (the v1 trio, same names) plus mcpx_project / mcpx_retract; mcpx-projection.ts projects daemon tools into the tool registry and Code Mode (projectTools / retractTools / autoProjectFromScript, TTL-based retraction); daemon autostart is handled in core (gated on mcpx settings get daemon.autostart); mcpx-secrets.ts (JIT secrets), mcpx-diagnose.ts (self-healing diagnostics), mcpx-subagent.ts (subagent session leasing) complete the surface. Tests: packages/core/test/tool-mcpx.test.ts, tool-mcpx-features.test.ts, mcpx-daemon-autostart.test.ts, mcpx-daemon-client.test.ts, mcpx-daemon-recovery.test.ts. The bridging function — connect to the daemon, project its tools, execute/discover/observe — is core v2 behaviour now, beyond the v1 bridge's scope. No port remainder.

    2. mcpx-session — verdict (b): port remainder, routed as task 23380 (slice 3)

    V1 surface: pkgs/mcpx/plugin/opencode/mcpx-session.ts (a v1 Plugin from @opencode-ai/plugin, default export) plus mcpx-tui.tsx: six tools — mcpx_daemon_status, mcpx_daemon_select, mcpx_daemon_forget, mcpx_discover, mcpx_exec, mcpx_observe — an experimental.chat.system.transform hook injecting the mcpx system paragraph, per-directory remembered daemon choice, tool timing records, and the TUI daemon picker.

    What core v2 covers: the exec/discover/observe trio (above). What it does not cover: no mcpx_daemon_status / mcpx_daemon_select / mcpx_daemon_forget tools exist in core (grep of mcpx.ts confirms exactly five registered names), no remembered per-directory daemon choice, no picker, no permission gate, no sampling answers.

    The remainder is smaller than a port: the v2 port is already written — developing-today/code pkgs/mcpx/plugin/opencode/v2/ is a { id, setup } module against the v2 promise plugin API (packages/plugin/src/promise/plugin.ts in this fork carries the same setup(context) shape): session context hook replacing the system transform, tool.transform registering the v1 tool names, execute.after timing, permission gate, sampling watcher, and a daemon picker (mcpx_daemon_pick) riding the permission domain, with an extensive test suite (v2/*.test.ts). But it sits in the code repo, wired nowhere (no reference in .opencode/opencode.jsonc), and has never been demonstrated loading under this fork's v2 server. Remainder scope: wire it into the fleet plugin configuration and verify load + daemon tools against the v2 server and a live daemon. Routed: task 23380 (queue repo-health-opencode-pilot, feature_slice slice 3, priority 50).

    3. subtask2 — verdict (b): decision remainder, routed as task 23381 (slice 4)

    V1 surface: @openspoon/subtask2 (third-party npm plugin, in the fleet plugin array in code's .opencode/opencode.jsonc), configured by .opencode/subtask2.jsonc (replace_generic: true): when a subtask return specified no return prompt, v1's generic "Summarize..." prompt was replaced with a challenge-and-validate substitution prompt. Hooks (per the 2026-10-20 installed-dist check, v0.3.9): tool.execute.before/after, experimental.chat.messages.transform, experimental.text.complete.

    V2 position: subtask2 has zero hits under packages/ on fork main. The native subagent tool (packages/core/src/tool/plugin/subagent.ts) has a different completion model — foreground returns the child's final response; background returns a sessionID with <background-result kind="subagent"> notifications — and the generic summarize return prompt subtask2 patched does not exist in v2 core (no returnPrompt / generic_return config anywhere in packages/core/src or packages/plugin/src; session/subagent-completion.ts carries no prompt text). The v2 hook domains a port would use do exist (tool execute.before/after; session request hooks with mutable prompt/messages/system). So the honest verdict is not "uncovered" but "possibly obviated by the v2 architecture": the retire-or-port call needs a named decision, recorded here and on developing-today/code#3286, which already tracks the subtask2 decision. Routed: task 23381 (feature_slice slice 4, priority 70) — decision slice only; a port outcome gets routed onward from there.

    Slice 1 done check: per-plugin inventory with verdicts posted here; both (b) remainders routed as named packets (23380, 23381). Slice 2 (task 23362, rebase assessment) is separate and untouched by this record. This issue stays open until 23380/23381 (and any packet they route) land.

  9. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Author
    More actions

    Slice 3 record — mcpx v2 plugin wired + verified under the fork v2 server (task 23380, ITEM-WORK-100 lane, 2026-11-24)

    Verified — the v2 plugin loads and works under the fork v2 server

    Test surface: developing-today/code pkgs/mcpx/plugin/opencode/v2 (112 unit tests, 0 fail, bun test v2/), loaded as a local plugin entry {"package": "<dir>", "options": {"tools": true, "instructions": true, "daemonTools": true}} — the configured path must be the plugin directory (pointing at index.ts logs a load WARN).

    • Fleet binary (opencode 2.0.30+9acf714, the build the fleet runs): GET /api/plugin lists {"id":"mcpx","source":{"type":"local"},"state":{"status":"active"}} among 99 plugins.
    • Fork main from source (cd2ce27e53, version 2.3.2): same — mcpx active among 110 plugins.
    • Session context paragraph: with instructions: true, a live session's system prompt (captured at a scripted OpenAI-compatible stub model) contains the [mcpx:session-context] paragraph; with default options it is absent. Tools/instructions/daemon-tools are opt-in by design (plugin/core/options.ts); with defaults the plugin loads but stays inert.
    • Daemon tools against a live daemon: the plugin's four daemon tools are registered in the server's tool registry and reachable through the server's Code Mode execute tool. search("daemon") returns tools.mcpx.daemon_pick, tools.mcpx.daemon_status, tools.mcpx.daemon_select, tools.mcpx.daemon_forget. Executed live in a session:
      • tools.mcpx.daemon_status({}) → "3 daemons running. This session is using unix:///home/user/.local/state/mcpx/daemon-9ee50060cfd6.sock (resolved)." plus the full candidate table (code / mcpx / store daemons, real sockets, versions, 15 servers each).
      • tools.mcpx.daemon_pick({}) → the real picker menu: "mcpx daemon picker — 3 daemons running, best match first. * marks the one in use." with all three daemons listed.

    Named gap — plugin tools are not offered as direct model tools (fork host behavior)

    In the same sessions, the model's direct tool list contains only core's builtins mcpx_discover, mcpx_exec, mcpx_project, mcpx_retract — the plugin's transform-registered tools (and core's own mcpx_observe) are reachable only via Code Mode execute, not as native tools. The plugin's context hook fires in the same setup, so plugin setup demonstrably runs; registration lands in the tool registry (Code Mode search finds the tools) but the session's direct tool snapshot does not include host-registered plugin tools. This looks like fork host behavior in how SessionContext snapshots the tool registry for the direct list — named here per the slice's scope rule (no fork core changes in this slice); it wants its own fork issue if direct-tool offering for plugin tools is required. The v1 parity names (mcpx_daemon_status etc.) work today through execute.

    Two smaller observations from the same runs:

    • The v1 drop-in .opencode/plugin/mcpx-session.ts fails to load under the v2 server ("Cannot find module '../core/daemon.ts'") — the v1 session bridge does not survive the migration; the v2 plugin is its replacement, which makes wiring it (below) load-bearing rather than optional.
    • On a password-protected server, the plugin's session-environment send (PUT /api/session/<id>/environment) is answered 401 — sessions still work (the send is best-effort), but the environment registration silently does not land. Worth a plugin-side look in a later slice (server password is available to the host process env as OPENCODE_SERVER_PASSWORD).

    Wiring — landed

    The plugin is wired into the fleet plugin configuration that actually runs: developing-today/code .opencode/opencode.jsonc, as the first entry of its plugins array — PR #14331, merged 2026-11-24 (merge commit 2a6df1b12c65):

    {
      "package": "../pkgs/mcpx/plugin/opencode/v2",
      "options": { "tools": true, "instructions": true, "daemonTools": true }
    },

    Two wiring facts that cost real debugging time and are worth keeping:

    • The package path must start with ./ or ../ to be treated as a local path (resolved against the config file's directory, i.e. .opencode/). A bare pkgs/mcpx/plugin/opencode/v2 is parsed as an npm package spec and silently never loads — no error, no plugin entry.
    • Verified end-to-end from the repo config itself: a v2 server booted with the code repo as its directory lists {"id":"mcpx","source":{"type":"local","path":".../pkgs/mcpx/plugin/opencode/v2/index.ts"},"state":{"status":"active"}} (113 plugins total for that location).

    Caveat for the next location reload: the code repo primary clone currently carries uncommitted local changes to this same file (.opencode/opencode.jsonc, observed 2026-11-24, not this lane's) — whoever owns that dirt will meet this entry on their next pull.

    Remainder after this slice

    • Slice 2 (task 23362, rebase assessment) and subtask2 (slice 4) are untouched, as scoped.
    • The direct-tool gap above, if pursued, is a fork-core item, not a plugin item.
  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Author
    More actions

    Slice 2: fork rebase assessment (patch inventory + carry strategy)

    Counts re-taken 2026-11-24 ~14:50Z from GitHub compare anomalyco:dev...developing-today-forks:main: ahead 2783, behind 112, diverged (the packet's 2774/99 predates the last hour of fork and upstream merges). Local refs: fork origin/main = 6084ede794, upstream dev = af54caef70 (v2.4.1). Ahead set = 1771 non-merge commits plus 1012 merge commits, dated 2026-10-05 to 2026-11-24. Behind set = 112 non-merge commits, no merges, dated 2026-11-22 to 2026-11-24.

    1. Patch inventory (ahead, non-merge, 1771 commits)

    Buckets are a heuristic (first match wins: subject and touched paths), so treat them as approximate:

    Area Commits (approx.) Notes
    core / server / cli / ai runtime 590 packages/core 485 fork-only files, ai 114, cli 104, server 65
    routing, effort, variant, model route 301 route failover, variant maps, route Window decode
    CI, scripts, nix, deps, services 286 .github and services/ are mostly fork-only
    quota and providers 161 packages/ai/src/quota/*, core/src/provider-quota.ts, server/src/quota, cli quota handler
    plugins (fleet, subtask, plugin-github) 156 includes the v1 plugin port, mcpx hooks
    desktop, app, tui, web UI 124
    docs, roadmap, specs 108
    mcpx 43 fork-only: core/src/tool/plugin/mcpx*.ts (5 files), script/mcpx-cleanup.ts

    Fork-only subsystems that upstream does not have at all: the quota stack (packages/ai/src/quota/, core/src/provider-quota.ts, server/src/quota/), the mcpx tool plugins, and the route-failover code under packages/ai/src/route (the directory exists upstream, but the fork's files there do not). These carry without textual conflict.

    2. Behind assessment (112 upstream commits)

    Subject mix: 67 fix, 22 feat, 7 docs, 5 chore, 4 test, 3 refactor, 2 release. Material gaps for the fork:

    • Plugin automations (about 8 commits): plugins create, list and delete automations, plus validation, permission gating and abort handling in the Promise plugin API (packages/plugin/src/promise/*, core/src/plugin/host.ts).
    • Permission algebra (ca9e8f2, 84e357e): Permission.Policy replaces rule composition in core/src/permission.ts, and the fork edits that file.
    • Model speed, service tier and variants (about 11 commits): tier pricing, speed-to-variant keeping, legacy variants. This overlaps the fork's routing and variant work.
    • Session cwd, environments, worktrees (about 13 commits): experimental session cwd, unified Environments entry point, worktree shortcut.
    • Code Mode and cli-rs (b51482f v2.4.0 client bump, codemode fetch/interrupt).

    3. Conflict surface

    Files touched on both sides since the merge-base (9b1cdf0167, 2026-11-22): 127 files. By area: core 59, app 11, ai 10, cli-rs 8, protocol 5, schema 5, tui 5, plugin 4, client 3. Hot spots are core/src/model-resolver.ts, core/src/models-dev.ts, core/src/model.ts, core/src/permission.ts, core/src/plugin/host.ts, packages/ai/src/route/protocol.ts, packages/app/src/providers/models/*, and packages/tui/src/component/dialog-model.tsx.

    4. Carry strategy (recommendation)

    • Option A, literal rebase onto dev: not recommended. It replays about 1,771 non-merge commits and drops the 1,012 merge commits that carry the fork's PR lineage, so it is a rewrite of shared history for little gain.
    • Option B, staying diverged with no upstream intake: not recommended. The fork misses the plugin automation and permission algebra work, and the gap widens every upstream release.
    • Option C, merge-forward (recommended): merge upstream-anomalyco/dev into fork main with merge commits, once per upstream release (next: v2.4.1). Resolve the 127 overlap files in the reconciliation pass and keep fork-only subsystems untouched. This matches the repo's merge-commit rule and keeps every PR reachable.

    5. Named uncarriable patches

    None are uncarriable as patches. The fork-only subsystems carry cleanly. The cost sits in the 127 overlap files, mostly in core, where upstream's permission and model rework must be reconciled with fork routing and variant behaviour by hand, not by replay. No patch is dropped under Option C.

    6. Costs (estimates, not measured)

    • First merge-forward: one focused pass on the 127 overlap files, with the permission and model-resolver files the riskiest. Expect the largest share of the slice's effort here.
    • Each later release: a small merge, sized by how many overlap files that release touches.
    • Literal rebase (A): highest cost and highest risk; not scoped.

    7. Execution routing

    The merge-forward is settled as the recommended strategy, and it is not executed in this slice (no merge or rebase performed). The next packet is "merge-forward upstream-anomalyco/dev (af54caef70) into fork main", with the 127-file overlap list as its scope. Filing that packet is left for the queue owner.

    Evidence commands: git rev-list --count upstream-anomalyco/dev..origin/main (2783 incl. merges, 1771 non-merge) and origin/main..upstream-anomalyco/dev (112). Overlap: git diff --name-only for upstream-anomalyco/dev...origin/main intersected with merge-base..upstream-anomalyco/dev.

    Lane: any-o. Task 23362.

  11. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Author
    More actions

    Decided: subtask2 is retired — retired as obviated by the v2 subagent completion model, and not ported. The fleet config references to @openspoon/subtask2 (the .opencode/opencode.jsonc plugins array entry and .opencode/subtask2.jsonc) are named for removal; the array removal itself lands on the follow-on packet 23482 (below), not in this decision slice.

    Why (v1 behaviour → v2 evidence):

    • v1 behaviour it provided. subtask2 v0.3.9 (hooks verified in the installed dist, doc/2026-11-24T02-09-40Z_research_opencode-research/event-system-2026-10-20.md) ran tool.execute.before / tool.execute.after / experimental.chat.messages.transform / experimental.text.complete to replace v1's generic "Summarize …" return prompt — emitted when a subtask returned without a specified return — with a challenge-and-validate continuation prompt. .opencode/subtask2.jsonc set replace_generic: true.
    • The v1 prompt it patched no longer exists in v2. There is no returnPrompt / generic_return config and no generic "Summarize…" subagent-return prompt in fork v2 core. packages/core/src/plugin/agent.ts:131-137 only assigns the PROMPT_SUMMARY text ("Summarize what was done in this conversation. Write like a pull request description.") as the system prompt of the hidden summary agent, used for compaction summaries — not for a subtask return. Grep of packages/core/src and packages/plugin/src finds no subtask-return prompt and zero subtask2 hits.
    • v2 replaced the mechanism it hooked. The native subagent tool (packages/core/src/tool/plugin/subagent.ts) returns the child's actual final output: foreground output: result?.info.output ?? SubagentCompletion.NO_TEXT wrapped as <subagent sessionID="…" state="completed">…</subagent> (lines 311-322), and background returns a sessionID plus a <background-result> notification. packages/core/src/session/subagent-completion.ts carries no prompt text at all, only NO_TEXT and the <subagent …> delivery envelope. So the "subtask returned nothing specific" case subtask2 papered over with a generic summarize prompt is now handled by construction: the parent gets the child's real final text (or NO_TEXT), not a synthetic summarize turn to intercept.
    • It is also non-functional today regardless. @openspoon/subtask2@latest (0.3.9) fails the v2 loader with Plugin must export a default definition with an id and an effect or setup function (recorded on OpenCode 2 (#730 WS2 remainder): plugin-array v2 verdict pass + subtask2 decision developing-today/code#3286, task 17445 verdict pass: 7 v1-contract plugins fail this way, subtask2 among them). It is a v1-style plugin with no v2-native export, so keeping the entry only adds a failed load on every start and provides zero behaviour.
    • Porting would be manufacturing a problem v2 does not have. The v1 substitution patched a generic return prompt that no longer exists; a v2 port would have to invent the prompt (or hook the parent-side continuation flow) to recreate behaviour that the v2 completion model already makes unnecessary. That is not a small port — it is re-adding a layer v2 deliberately removed. If the challenge-and-validate behaviour is ever wanted again, the path is a v2-native plugin that hooks the parent-side continuation, not a revival of the v1 package.

    Undo: re-add @openspoon/subtask2@latest to the plugins array and subtask2.jsonc only if the v1 return-summary substitution is deliberately wanted back — in which case it must first be rebuilt as a v2-native plugin (export a default definition with id + setup/effect), since the v1 package does not load under v2. A later PR would therefore add a new v2 subtask plugin, not restore this entry.

    By: any-n (OpenChamber scheduled Fleet lane), queue task 23381, 2026-11-24.

    Named follow-on (config removal): task 23482 (repo-health:v1:fix:developing-today/code:issue:3286:dispatch:b38776ce, queue repo-health-code-pilot) already owns removing the 7 dead v1 plugins from the .opencode/opencode.jsonc plugins array (current origin/main line 2998 carries @openspoon/subtask2@latest), fixing opencode-mem's memoryProvider placement, and verifying via the laptop v2 plugin registry. This decision names that removal explicitly so 23482 carries the subtask2 entry out along with the other six; no separate packet is needed and this slice does not edit the shared config file (23482's write scope).

  12. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Author
    More actions

    Small correction to the decision above (same task 23381, checked against current origin/main af62171712): the foreground return reads the child's last assistant message text through SubagentCompletion.text(assistant) and falls back to NO_TEXT (packages/core/src/tool/plugin/subagent.ts:310-315 on af62171712), not a result.info.output field — the earlier draft's result?.info.output shape was from the older local cd2ce27e53 checkout. SubagentCompletion.text (session/subagent-completion.ts:28-38) joins the child's text parts and returns NO_TEXT when empty; nothing in it emits or substitutes a summarize prompt. The substance of the decision is unchanged: the parent receives the child's real final text (or NO_TEXT), so there is no generic "Summarize…" return turn for subtask2 to intercept. Also re-verified zero subtask2 hits and no generic_return/returnPrompt config under packages/ at af62171712.

  13. developing-today-fleet
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  14. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    More actions

    Intake review

    Related: opencode #2295 (migration tracking home), code #730 (WS2)

    Notes: Follow-through of Drew's 2026-10-24 Opencode-2 migration ask; priority/effort were already set, it lacked acceptance criteria. Live.

    Risks: Plugin API drift is the known breaking surface; silent load failures are the main risk.

    Suggested approach: Port one plugin at a time with a load smoke test each; keep #2295 as the tracking home.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25T02:14Z
    • Found via: monitor reconciliation
    • Task: intake enrichment (protocol §5)
    • Expectation: see the Intake review comment on this issue
  15. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    More actions

    Fresh scheduled-lane triage — 2026-11-26

    Keep #2290 open; migration follow-through is not complete. The routed slice tasks anomalyco#23362 (rebase assessment), anomalyco#23380 (mcpx v2 wire/verify), and anomalyco#23381 (subtask2 retirement decision) are terminal done. Their records establish: mcpx bridge behavior is covered by core and the mcpx-session v2 plugin was wired/verified; subtask2 is retired as obviated; merge-forward from upstream dev is the recommended carry strategy, but it was explicitly not executed in the assessment. The config cleanup task anomalyco#23482 / PR anomalyco#14562 is also terminal done in its queue record, but its progress still says production sync/registry verification remain outstanding; that is tracked on code#3286 and should not be mistaken for verified fleet state.

    The remaining #2290 acceptance item is execution of the merge-forward (or an explicit settled decision not to do it), with any uncarriable patches recorded. The 2026-11-24 inventory is dated evidence and must be refreshed against current refs before execution. No merge/rebase was attempted in this non-code triage pass. Keep the issue open until the remaining execution and production-sync status are resolved and evidenced.

    — agent-note:v1 · Agent: repo-worker-openchamber (fleet queue task 24996) · transition: triaged

  16. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    More actions

    🤖 Agent note · triage (queue task 25492, lane oc-code-02)

    Fresh recheck: #2290 stays OPEN, no new PRs or commits since the 2026-11-26 triage (task 24996). Slice record stands: anomalyco#23362 rebase assessment (merge-forward recommended, not executed), anomalyco#23380 mcpx v2 wire/verify, anomalyco#23381 subtask2 retirement decision — all terminal done. fleet queue verify-disposition 2290 returns invalid_no_work (open, no linked pulls in readback).

    Remaining acceptance item is execution of the merge-forward (or a settled decision not to do it), with refs refreshed — real code work beyond triage scope, no slice taken in this pass. Keep open; no label change.

  17. dezren39 commented on Nov 27, 2026

    @dezren39
    dezren39
    on Nov 27, 2026
    Author
    More actions

    Triage verdict — xaltha lane, queue task 25839

    🤖 Agent note · state: triaged

    • Agent: xaltha (fleet seat, hourly work-loop 2026-11-26 19:41 CST)
    • Task: 25839 — coverage-reconciliation triage (feat(tui): add vi basic mode extension for prompt and editor anomalyco/opencode#7016) of this issue.

    Verdict: keep OPEN — validated, partially complete; the one remaining acceptance item is already routed as its own execution packet (#2875), triaged this same run. No small fix applies; no PR and no duplicate packet from this triage lane.

    Fresh verification this run (2026-11-27T01:43Z claim; checks just now):

    • mcpx bridge — done. Slice 1 inventory (task 23361, 2026-11-24) verdict (a): covered by core v2 (packages/core/src/tool/plugin/mcpx.ts + projection/secrets/diagnose/subagent, with the mcpx test suite). No port remainder.
    • mcpx-session — done. Slice 3 (task 23380, 2026-11-24): the v2 plugin in developing-today/code pkgs/mcpx/plugin/opencode/v2 was wired into .opencode/opencode.jsonc (code PR docs: add Bangla README translation anomalyco/opencode#14331, merged) and verified loading/active under both the fleet binary (2.0.30) and fork main from source, with daemon tools executed live against a real daemon. One named gap was recorded there (plugin tools reachable via Code Mode execute, not the direct model tool list — a fork-host item, not a plugin remainder).
    • subtask2 — done (retired, not ported). Slice 4 decision (task 23381, 2026-11-24): retired as obviated by the v2 subagent completion model — the generic "Summarize…" return prompt it patched does not exist in v2 core, and the v1 package does not load under v2. Its config-removal follow-on was OpenCode 2 (#730 WS2 remainder): plugin-array v2 verdict pass + subtask2 decision developing-today/code#3286, which is now CLOSED (verified this run).
    • Fork rebase — NOT done, and not a literal rebase. Slice 2 assessment (task 23362) recommended Option C merge-forward instead. Fresh GitHub compare this run: anomalyco:dev...developing-today-forks:main = diverged, 2,876 ahead / 282 behind (was 2,783 / 112 at the 2026-11-24 assessment) — the gap is widening, so the dated inventory must be refreshed by the executing lane, exactly as Merge-forward upstream dev into fork main (carry strategy from #2290 slice 2) #2875 scopes.

    Routing / claim-check:

    • The remaining work already has a dedicated execution packet: Merge-forward upstream dev into fork main (carry strategy from #2290 slice 2) #2875 "Merge-forward upstream dev into fork main (carry strategy from OpenCode 2 migration follow-through: port the v1 plugins (mcpx bridge, mcpx-session, subtask2) and rebase the fork #2290 slice 2)", filed 2026-11-27 from this issue's slice 2, and triaged this same hourly run under task 25838 with the verdict "validated, real execution work — return to queue for a dedicated merge lane" (merge via a PR branch, CI-gated, uncarriable patches named there). Filing another packet from this triage would duplicate Merge-forward upstream dev into fork main (carry strategy from #2290 slice 2) #2875.
    • No open PR carries this work (the fork's 5 open PRs — fix(tui): write session transcript exports exclusively with owner-only permissions #2867, feat: propagate Fleet session context #2844, fix(core): surface ambiguous outcomes when command recovery may replay side effects (#2775) #2794, fix(core): persist command-operation start claim, surface ambiguous recovery as interrupted #2788, spike(core): TursoDB backend behind OPENCODE_DB_ENGINE=turso (#2492) #2499 — are unrelated), and no other lane holds a live claim on the merge itself.

    Close condition for this tracker: #2875's merge-forward lands (or is explicitly settled not to proceed), with any uncarriable patches named on #2875 / here. Until then this issue stays open as the tracker; the plugin half of its acceptance criteria is met and evidenced above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pluginPackage: plugin (pkgs/ or apps/ in this repo)designDesign record / living design doc tracking homedesign/opencode-2-migrationDesign: opencode-2-migration - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insepic/design-registerEpic: design-register - all issues of this effort carry itepic/opencode-platformEpic: opencode-platform - all issues of this effort carry itkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/normalOrdinary priority (the default)source/humanFiled directly by a humantask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      • OpenCode 2 fleet migrationNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.