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 — mcpx: take the pool's session key from the request (`_meta["ai.opencode/sessionID"]`), not the daemon's pid · Issue #1932 · developing-today/code

mcpx: take the pool's session key from the request (_meta["ai.opencode/sessionID"]), not the daemon's pid #1932

New issue
Copy link
New issue
Copy link
Closed
Closed
mcpx: take the pool's session key from the request (_meta["ai.opencode/sessionID"]), not the daemon's pid#1932
#2354 (+2)
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workenhancementNew feature or requestkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a human

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Relocated from dezren39/darwin-nix#211 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).

Parent: #181

Summary

A host that reaches mcpx over MCP is keyed as mcp-<pid> of the serving process. Over the daemon's /mcp that pid is the daemon's, so every HTTP host shares one session scope and one browser. The comment says a host has "no way to tell us" its session. opencode v2 does tell: every tools/call, including calls from inside its code mode, carries _meta["ai.opencode/sessionID"]. 2026-07-28 also forbids treating connection or process identity as session continuity. Reading the key from the request would give each opencode session its own stateful servers without the shell.env plugin hook, which v2 no longer provides.

Found while writing the comparison register (pkgs/mcpx/docs/compare/) and checked against the code at 05c78b2. Each row below links its register entry, which carries the value, effort, risk, the specification text and every source.

Register rows

row difference mcpx @ 05c78b2 effort
META-09 ai.opencode/sessionID on every opencode v2 tools/call ✗ — ignored; every host shares one scope M
PM-10 Every HTTP MCP host shares one pool session key ✗ — key is the daemon's pid S

Evidence

  • internal/cli/serve.go:287-297 (mcpSession), internal/cli/serve_ask.go:31-37.
  • v2:packages/core/src/mcp/client.ts:278 (opencode v2 2.0.3).
  • 2026-07-28/basic/index.mdx:204-208.

What to do

Take the scope key from a configured list of _meta keys (default ai.opencode/sessionID), falling back to today's behaviour; thread it through Backend.Call/Exec. A setting, not a hard-coded key.

Ease · Impact · Related

Ease S · Impact high · Related: #47 (plugin port to v2), #48 (harness-free plugin core); docs/compare/stateless.md §5 item 5

Acceptance criteria

  • When a tools/call carries _meta["ai.opencode/sessionID"], mcpx keys the pool session from that value: distinct opencode sessions get distinct stateful server scopes (META-09 / PM-10).
  • Hosts that send no session meta get a documented fallback scope — never the daemon's pid or connection identity treated as session continuity (2026-07-28 rule).
  • The shell.env plugin hook workaround is no longer required for per-session state once this lands.
  • Tests cover two interleaved sessions sharing one daemon /mcp endpoint.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-858

  2. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    History carried over from dezren39/darwin-nix#211 (verbatim, oldest first):


    @dezren39 · 2026-10-28T04:31:09Z

    🤖 Intake review — fleet monitor, 2026-10-27 run

    • Related: parent tracker Phase 3: sync, blob gate, and relays #181; register rows META-09 / PM-10 in pkgs/mcpx/docs/compare/register/.
    • Evidence caveat: the register evidence was verified against mcpx at 05c78b2 (2026-09-30). Re-verify each row against current main before fixing — a row may have moved since.
    • Still live: checked this run — no merged PR references this issue (cross-references are the register/tracker issues themselves).
    • Risks: session-key changes affect every stateful server (browsers especially) — a wrong fallback merges strangers' sessions; test the no-meta fallback explicitly.
    • Suggested approach: read the key at the /mcp boundary and thread it to the pool; keep the old keying behind it only for the documented fallback.
  3. dezren39
    added
    enhancementNew feature or request
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/needs-triageNot yet triaged; needs a first look
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  6. 95 remaining items

  7. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 3227, repo-health-code-pilot (second resume)
    • Found via: queue claim
    • Task: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 confirmed already queued to merge (gh pr merge → "already queued to merge"; all branch checks PASS, mergeStateStatus CLEAN/MERGEABLE, Codex no findings on head 259749f) — but the merge queue has not merged it after a further 4-minute poll. The merge-group CI is queued behind the same runner congestion affecting PRs feat(usage-hub): GitHub billing collector on the unified usage endpoint (#1051) #2236/docs(openclaw): comms-path design — Slack primary, direct API phase 2 (#2023) #2303. Nothing about the PR itself is blocked.
    • Expectation / resume: on resume, check PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 fresh — if MERGED, complete task 3227 as fixed_merged, verify mcpx: take the pool's session key from the request (_meta["ai.opencode/sessionID"]), not the daemon's pid #1932, strip claim labels. If it was ejected from the queue, re-check branch checks and re-queue the merge.
    • Links: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Oct 29, 2026
  9. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 3227
    • Found via: queue claim (resume of parked task)
    • Task: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 (configurable _meta session keys for mcpx request identity) re-verified fresh — all PR checks green, mergeStateStatus CLEAN, Codex review completed with no findings on head 259749f — and re-enqueued in the merge queue. Merge-group CI still pending after a 5-minute poll (runner congestion), so the task is parked again rather than holding the claim.
    • Expectation: on resume, verify PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 merged, then complete task 3227 as fixed_merged and strip the queue/work/status labels from this issue.
    • Links: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 · branch queue/3227-1932-session-keys
  10. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane C
    • Session / ID: queue task 3227
    • Found via: queue claim (resume)
    • Task: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 is still in the merge queue at 13:58Z — position 3, AWAITING_CHECKS, head 259749f (checks green, Codex clean per the previous pass). Parking rather than holding the claim on the queue.
    • Expectation: resume: confirm PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 merged, complete task 3227 as fixed_merged, strip queue/work/status labels from mcpx: take the pool's session key from the request (_meta["ai.opencode/sessionID"]), not the daemon's pid #1932.
    • Links: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195
  11. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 3227 (small_fix, resume)
    • Found via: queue claim
    • Task: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 (head 259749f, branch checks green, Codex clean per prior checkpoint) reached merge-queue position 1 but stayed AWAITING_CHECKS through a full ~5-minute poll this run — its merge-queue checks are not landing amid the repo-wide Actions congestion. Parking rather than holding the claim.
    • Expectation: resume: verify PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 merged, complete task 3227 as fixed_merged, strip the queue/work/status labels from this issue.
    • Links: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195
  12. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: queue task 3227, repo-health-code-pilot (resume)
    • State found at 14:27Z: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 head 259749f8 — 8/8 checks SUCCESS, MERGEABLE/CLEAN, 0 unresolved threads, ready.merge = true. But the main merge queue removed the PR at 14:11Z (it had been position 1; entry ejected while the queue's merge-group CI was starved).
    • Action: re-enqueued mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 (gh pr merge --auto), now position 8/8 QUEUED. No code change was needed or made.
    • Expectation: parked to ~14:50Z; next lane confirms the merge and completes the task as fixed_merged, then strips the queue/status labels.
  13. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (pr_opened)

    • Agent: queue worker (repo-worker-code), openchamber scheduled lane
    • Session / ID: queue task 3227 (small_fix, resume attempt 2)
    • Found via: queue claim (resumed from awaiting_ci)
    • Task: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 (head 259749f8) verified green and complete: basic: proxy port fallbacks, basic: spec parity, basic: test all PASS, MERGEABLE/CLEAN, 0 unresolved threads. It sits in the main merge queue at position 8, behind a repo-wide stall — main has not advanced since 5a34fa70 (10:57:51Z) and every entry ahead is AWAITING_CHECKS with no runner pickup (ci: Actions check runs stuck in queued across PRs — no runner pickup since ~05:00Z 2026-10-28 #1599). This is the third pass blocked on that same wait (the queue ejected the PR at 14:11Z and it was re-enqueued at 14:29Z), so the task is completed as pr_opened rather than parked again.
    • Expectation: no further worker action. When ci: Actions check runs stuck in queued across PRs — no runner pickup since ~05:00Z 2026-10-28 #1599 clears, mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 lands on its own; if it is ejected again, re-enqueue it (gh pr merge 2195 --merge) — the branch and worktree ~/git/fleet/3227-1932 are intact.
    • Links: PR mcpx: configurable _meta session keys — read ai.opencode/sessionID for request identity (#1932) #2195 · queue jam ci: Actions check runs stuck in queued across PRs — no runner pickup since ~05:00Z 2026-10-28 #1599
  14. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  15. dezren39
    closed this as completedin #2183on Oct 30, 2026
  16. dezren39
    added a commit that references this issue on Oct 30, 2026

    Merge pull request #2195 from developing-today/queue/3227-1932-sessio…

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workenhancementNew feature or requestkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a human

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.