Repository navigation
Description
Implementation issue for the SET-REMAINDER of #1858 (origin issue — it stays open as the tracker for this set). Filed by queue worker lane E while completing set-remainder scoping task 3797.
Why a separate implementation issue: the repo-queue v1 dedupe design makes the open issue number the work identity — exactly one fix key exists per issue (repo-health:v1:fix:<repo>:issue:<n>), and #1858's was consumed by completed core task 3068 (PR #2489). The validator rejects per-item keys, so this linked issue carries the implementation identity; its fix task is enqueued from it. #1858 remains the set tracker per the cross-repo set rule.
State of the set
PR #2489 (merged 2026-10-30, 069aff5) landed the v2 core only: pkgs/mcpx/plugin/opencode/v2/ = {id, setup}, options, session-env, context hook, ctx.storage remembered daemon, timing, namespaced tool.transform. Verified fresh 2026-10-30 (lane B task 3797 first claim + lane E re-verification): none of the five items below has landed; the v1 files (mcpx-session.ts, mcpx-tui.tsx, mcpx/) still sit beside the v2 tree; v2/tools.ts header (lines 24-27) itself names item (2) as SET-REMAINDER work.
Items — work strictly one at a time, own branch + PR each, PR references #1858 and this issue
Order: (2) → (1) → (4) → (3) → (5).
- (2) permission.hook("evaluate") — the real v2 permission hook replacing v1's dead permission.ask. Today v2
daemon_selectapplies the choice it was told to apply with no confirmation (tools.ts header). Route mcpx tool permission prompts through the evaluate hook; update the tools.ts header when it lands. - (1) mcp.transform — register a filtered MCP server set per session (named in mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858's "Also new in v2 and worth using" and docs/opencode-plugin-v2.md §6).
- (4) ctx.generate.text — wire it so the plugin can answer mcpx's MCP sampling questions.
- (3) TUI select() daemon picker — promise-based picker where the pinned v2 surface supports it, choice persisted via ctx.storage (remember.ts). If the pinned surface cannot support a true TUI select, land the closest supported equivalent and record the deviation + evidence here and on mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858.
- (5) Retire the v1 plugin files ("v2-only wins", recorded by triage task 2746) — only after (1)-(4) are landed or explicitly waived on mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858: remove or gate
pkgs/mcpx/plugin/opencode/mcpx-session.ts,mcpx-tui.tsx,mcpx/; clear dangling references in pkgs/mcpx docs/README; record the outcome on mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858.
Out of scope
- Daemon-side
_meta["ai.opencode/sessionID"]attribution — mcpx: take the pool's session key from the request (_meta["ai.opencode/sessionID"]), not the daemon's pid #1932 owns it. - The deployed
.opencode/plugin/copy port — OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 owns it (coordinate there if the deployed copy still loads v1 at item (5)).
Acceptance
Each item: targeted tests in the v2 tree, CI green on its PR, outcome noted on #1858. This issue closes when all five items are landed or explicitly waived on #1858.
Acceptance criteria
- Each of the five SET-REMAINDER items from mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 lands as its own branch + PR, in the stated order (2) → (1) → (4) → (3) → (5), each PR referencing mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 and this issue
- Item (2): v2 implements permission.hook("evaluate") replacing v1's dead permission.ask path
- The v1 plugin files (mcpx-session.ts, mcpx-tui.tsx, mcpx/) are retired or explicitly dispositioned once the v2 items land
- mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 is updated/closed as the set tracker when all five items are merged
Blockers
Recorded 2026-11-29 (census remediation) from this issue's own record — the blocker was named in comments and as a native dependency edge, but not in the body:
- Blocker: OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 — "OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins" (OPEN). Only item (5) remains on this issue — retire the v1 plugin files (
pkgs/mcpx/plugin/opencode/mcpx-session.ts,mcpx-tui.tsx,mcpx/). Item (5) cannot proceed until OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 ports the deployed copy off v1: the deployed copy at repo-root.opencode/plugin/mcpx-session.ts+.opencode/plugin/mcpx/still loads v1, and.github/workflows/mcpx.ymlenforces by diff that the deployed copy stays identical to thepkgs/mcpxv1 source, so deleting the v1 source first would break that sync and the fleet's own opencode harness. - Items (1)–(4) are landed, per the record: (2) PR mcpx v2 plugin: permission gate for daemon_select (#1858 item (2)) #3018 merged 2026-10-31; (1) PR mcpx v2 plugin: per-session tool filtering via session context hook (#5122) #5170 merged 2026-11-04 (deviation: per-session tool filtering via session context hook, mcpx opencode v2 plugin: item (1) of #2841 — per-session tool filtering via session context hook (mcp.transform deviation) #5122); (4) PR mcpx(v2 plugin): answer sampling via ctx.generate.text (#2841) #4997 merged 2026-11-03; (3) PR mcpx v2: daemon picker tool — closest equivalent of the TUI select (#2841 item 3) #7847 merged 2026-11-08.
- Evidence in comments:
- 2026-11-17 (task 19779, blocked — dependency on OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730): mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 (comment) — names the gate in full and dep-blocks task 19779 on OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730; the body's own out-of-scope line already assigns the deployed-copy port to OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730.
- 2026-11-25: mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 (comment) — native blocked_by edge mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 -> OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 added and verified via the dependencies API.
- 2026-11-29 census (CEN-C03): mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 (comment) and Felix census: mcpx opencode v2 plugin: implement the #1858 SET-REMAINDER items (1)-(5) #2841 (comment) — OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 still open, remainder gated on it.
- Native dependency: blocked_by OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730, re-verified live 2026-11-29 (OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730 OPEN at verification).
- Parent/set tracker: mcpx: port the opencode plugin to opencode v2 (a rewrite, and several things get better) #1858 — the remainder items themselves do not depend on anything else identifiable; the sole remaining gate is OpenCode 2: validate .opencode config against the v2 schema and port the v1 plugins #730.
Activity
dezren39 commentedon Oct 30, 2026
🤖 Agent note · enqueued
dezren39 commentedon Oct 30, 2026
Intake review
Fleet monitor intake pass (protocol §5). Verified live this run: no merged PR explicitly resolves this issue (search hits were number coincidences in unrelated PR bodies), and the problem statement is grounded in the filer's own run evidence.
Related: Related: origin/set tracker #1858; v2 core PR #2489 (merged 2026-10-30, 069aff5); scoping tasks 3797 (lane B) and the lane E completion this run's predecessor recorded.
Notes / risks / suggested approach: This issue exists because the queue dedupe design allows exactly one fix key per issue and #1858's was consumed by task 3068 — it is the implementation identity for the remainder, not a duplicate. Risk: the five items are heterogeneous (permission hook, session, TUI) — keep them strictly one PR at a time in the stated order. It already carries queue/queued; a fix task (3997) was enqueued from it per the sweep log.
176 remaining items
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged
dezren39 commentedon Nov 17, 2026
🤖 Agent note · blocked (dependency on #730)
v2/tool-filter.ts+v2/index.tson current main (8722d2e); (4) ctx.generate.text sampling — PR mcpx(v2 plugin): answer sampling via ctx.generate.text (#2841) #4997 merged 2026-11-03; (3) TUI select() closest equivalent (daemon picker tool) — PR mcpx v2: daemon picker tool — closest equivalent of the TUI select (#2841 item 3) #7847 merged 2026-11-08.pkgs/mcpx/plugin/opencode/mcpx-session.ts,mcpx-tui.tsx,mcpx/). Verified still present on current main, and still load-bearing: the deployed copy at repo-root.opencode/plugin/mcpx-session.ts+.opencode/plugin/mcpx/still loads v1, and.github/workflows/mcpx.ymlenforces by diff that the deployed copy stays identical to thepkgs/mcpxv1 source. Deleting the v1 source now would break that sync and the fleet's own opencode harness.developing-today-fleet commentedon Nov 25, 2026
agent-note:v1
Agent: felix (Muse lane, 2026-11-25)
State: graph edge added — issue-graph hygiene audit #14863, slice 5
The 2026-11-17 agent note (task 19779) records this issue as blocked on dependency #730, with SET-REMAINDER items (1)-(4) landed and the remainder gated on it; #730 is still OPEN. The dependency was prose-only; added the native blocked_by edge #2841 -> #730 and verified it via the dependencies API. No label change. Refs #14863
dezren39 commentedon Nov 29, 2026
🤖 Agent note · census 2026-11-29 (lane CEN-C03)
Blocker (named): #730 — still open; items (1)–(4) of the SET-REMAINDER have landed and the remainder is gated on #730 (2026-11-17 agent note; native blocked_by edge added 2026-11-25). Priority: normal (unchanged).
developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix): full recheck of this issue (body, all 48 comments, labels, dependency edges).
STRENGTHS: An implementation issue done right: it explains WHY it exists separately from its tracker (#1858's fix-key was consumed by task 3068 / PR #2489), states the set's landed state as verified on a date, and lists the five items in a strict work order — (2) -> (1) -> (4) -> (3) -> (5) — one branch and PR each. Four of the five are now landed and verified on the record: (2) permission.hook("evaluate") via PR #3018, (4) ctx.generate.text sampling via PR #4997, (3) TUI daemon picker via PR #7847, and (1) mcp.transform confirmed landed in the 2026-11-17 task-19779 verification.
GAPS: Only one, now fixed by the graph: the dependency gating the last item was prose-only until the 2026-11-25 hygiene-audit pass added the native edge. The body's checkboxes are not ticked for the landed items — the comment trail above is the accurate checklist; read it before the body.
FIXES I APPLIED: None today — labels are correct (priority/normal for a one-item remainder; kind/enhancement; status/blocked + queue/blocked are accurate), and the blocked_by edge to #730 (still OPEN, verified) already exists.
REMAINS: Item (5) only — retire the v1 plugin files (mcpx-session.ts, mcpx-tui.tsx, mcpx/) once (1)-(4) are landed or explicitly waived on #1858; it is gated on #730. When #730 closes, item (5) is a self-contained pickup from the body. Nothing needs Drewry.
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via
fleet ghimmediately before editing.Strengths: detailed body (3408 chars) with context a picker-up can start from; acceptance criteria present in the body; single taxonomy priority band (priority/normal) — verified against live labels; kind label present (kind/enhancement).
Gaps found: carries status/blocked + queue/blocked but the body does not name what it waits on — flagged here for the owning lane.
Actions taken this pass: none — verified complete, no changes.
Priority: priority/normal — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.
developing-today-fleet commentedon Nov 29, 2026
Census remediation — 2026-11-29
Blocker now recorded in the body: I appended a
## Blockerssection to the issue body (original body preserved verbatim above it) naming the real blocker found in this issue's own record.Blocker: #730 (#730, OPEN) — item (5), the only remaining item, cannot proceed until #730 ports the deployed
.opencode/plugin/copy off v1, because.github/workflows/mcpx.ymlenforces that the deployed copy stays identical to thepkgs/mcpxv1 source.Evidence sits in the new body section, with links to: the 2026-11-17 task-19779 blocked note naming the gate and dep-blocking on #730; the 2026-11-25 note recording the native blocked_by edge #2841 -> #730 (re-verified live today, #730 still OPEN); and the two 2026-11-29 census comments. The parent/set tracker #1858 adds no other identifiable dependency. Labels unchanged — status/blocked + queue/blocked are substantiated by this record.