Skip to content

mcpx plugin: thread the host abort signal through mcpx_exec so aborts cancel the run (PLG-38 of #1940) #7076

Closed

Description

@developing-today

Split from issue #1940 (PLG-38 remainder), filed by triage task 12006 (lane code-x, 2026-11-08).

Problem

A host abort does not cancel an in-flight mcpx_exec. Verified at origin/main 13ebecc:

  • pkgs/mcpx/plugin/opencode/mcpx-session.ts: mcpx_exec execute() calls c.exec(args.source, context?.sessionID) — the execution context abort signal is never passed.
  • pkgs/mcpx/plugin/opencode/mcpx/daemon.ts (line 579): async exec(source: string, session?: string) has no signal parameter.
  • The generated client already supports it: CallOptions.signal in pkgs/mcpx/plugin/opencode/mcpx/ops.gen.ts.
  • The CLI fallback path (viaCLI(["exec", args.source])) likewise has no cancellation input.

Acceptance criteria

Parent: issue #1940. Out of scope: PLG-36 (per-child-call permission hooks) and PLG-37 (live child-call status) — design-gated, staying on issue #1940.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 8, 2026
  2. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    🤖 Agent note · picked up

  4. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    🤖 Agent note · triage verdict (done)

    Verdict: REAL and current — the abort gap is still present at origin/main 6d14ebc547fc (2026-11-07T23:43:11-06:00).

    Evidence (fresh gh/git show reads of current main):

    • pkgs/mcpx/plugin/opencode/mcpx-session.ts:607 — mcpx_exec still calls viaDaemon((c) => c.exec(args.source, context?.sessionID)); the execution context's abort signal is never read or passed.
    • pkgs/mcpx/plugin/opencode/mcpx/daemon.ts:579 — async exec(source: string, session?: string) still has no signal parameter and calls this.ops.exec({ source, options: … }) with no CallOptions.
    • pkgs/mcpx/plugin/opencode/mcpx/ops.gen.ts:900 — CallOptions = { signal?: AbortSignal } already exists, so the generated client can carry the signal; nothing threads it.
    • CLI fallback: mcpx-session.ts:608 calls viaCLI(["exec", args.source]) → runBin(...) (daemon.ts:1041), which uses execFile with only a fixed timeoutMs — no caller signal, so an abort cannot kill the child either.
    • No PR or branch references mcpx plugin: thread the host abort signal through mcpx_exec so aborts cancel the run (PLG-38 of #1940) #7076 (gh pr list --state all --search 7076 = none), so nothing has landed or is in flight; the parent slice PLG-38 is still open on mcpx and opencode code mode: nested code mode, ?codemode=false, and what a harness expects of mcpx_exec #1940.

    Routing: converted to a fix packet repo-health:v1:fix:developing-today/code:issue:7076 — task 12960 (kind small_fix, 45-minute timebox). The packet scopes the change to: thread context.abort (or AbortSignal) from mcpx_exec's execute(args, context) into DaemonClient.exec → ops.exec CallOptions.signal, and into the CLI fallback (runBin/viaCLI) so the child process is killed on abort; tests for both paths; session forwarding from #1910 preserved.

    Links: issue #7076 · task 12960 · parent #1940 · PLG-38

  5. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    🤖 Agent note · fix packet enqueued

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    🤖 Agent note · handed off

  7. 48 remaining items

  8. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    \ud83e\udd16 Agent note \u00b7 handed off \u2014 Agent: repo queue worker, lane code-b (repo-worker-code). Task: task 12973 for issue #7076 (small_fix). Fresh check: issue #7076 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment returned opencode; handed off to the opencode claimant, which launches the bound opencode session and drives task 12973 to a terminal state. This lane does not work it directly.

  9. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · handed off

  10. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    agent-note:v1 — task 12973 handed_off (lane code-f). assigned_lane=opencode, session_id=null. Fresh 2026-11-08 ~21:25Z: issue #7076 OPEN, no hard-stop labels. Parked 1200s for claimant binding (ready 2026-11-08T21:45:36Z).

  11. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · handed off

  12. developing-today commented on Nov 8, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · handed off — task 12973 (lane code-k)

    Fix for issue #7076 (thread the host abort signal through mcpx_exec). Lane assignment returned assigned_lane=opencode; checkpointed stage handed_off — the laptop opencode claimant launches the bound session and drives task 12973 to its terminal state.

  13. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    agent-note:v1
    Agent: repo-worker-code / any-f
    state: done (triaged — already fixed via the parent, closing) (task 18520, lane any-f)
    issue: #7076

    Verdict: PLG-38 is implemented and merged — closing as completed

    Bulk-intake re-triage (2026-11-16 reload), verified fresh 2026-11-17 against every acceptance criterion:

    The stale parked labels (status/parked, queue/parked) come off with this close — the work they were parked for has landed.

  14. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 17, 2026
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    Already done — task 20024 (lane code-d)

    Verified fresh: #7076 is CLOSED (completed) — task 18520 (lane any-f) verified PLG-38 implemented and merged via the parent and closed this issue 2026-11-17T03:26Z with the verdict note above. This bulk-intake follow-on (task 20024) therefore completes as already_done. Removed the stale work/assigned label left on the closed issue.

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

Metadata

Metadata

Assignees

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)epic/mcpx-platformReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions