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 — openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) · Issue #4614 · developing-today/code

openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614

New issue
Copy link
New issue
Copy link
Closed
Closed
openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997)#4614
Copy link
Assignees
dezren39
Labels
priority/highImportant and time-sensitivesource/design-architectFiled by the repo design architect jobsource/pr-comment-reviewFiled by the pr-comment-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Finding (from PR review)

The OpenClaw ACP-to-HTTP adapter (bin/opencode-acp-adapter.mjs) implements the older v1 session contract against a target that is the OpenCode 2.x standing server pinned in flake.nix. Codex (P1, PR #3997):

The existing client for that same standing server, pm-stack/dispatch/src/opencode.ts, creates sessions with POST /api/session, supplies location.directory in the body, unwraps the {data: …} response, and submits prompts through /api/session/:id/prompt. Here, session creation instead uses /session?directory=… and expects a bare id; subsequent prompts likewise use the incompatible prompt_async route. Consequently, switching OpenClaw to this adapter does not provide a working session flow against its intended server. Implement and test against the pinned server's contract rather than the v1-shaped stub.

Evidence

  • Source PR: feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 — feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (merged 2026-11-02 as-is)
  • Review comment: feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (comment) — chatgpt-codex-connector[bot], 2026-11-01T21:31:18Z, bin/opencode-acp-adapter.mjs:388
  • No-response evidence: the review thread is unresolved (GraphQL reviewThreads, checked 2026-11-02), the comment has no replies, and PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 contains a single commit (8e67215, 2026-11-01T21:26:51Z) that predates the comment — no fix followed it before merge.
  • Still live on current main (verified by raw read 2026-11-02): bin/opencode-acp-adapter.mjs:387 creates sessions via serveJson(withDirectory('/session', cwd), { method: 'POST', body: {} }) and expects a bare session.id; :408 submits prompts via /session/${sessionId}/prompt_async. No /api/session v2 contract is used.

Acceptance criteria

  • The adapter creates sessions and submits prompts using the pinned standing server's v2 contract (POST /api/session with location.directory in the body, {data: …} unwrapping, /api/session/:id/prompt), matching pm-stack/dispatch/src/opencode.ts.
  • A test exercises session creation + prompt submission against the v2-shaped contract (not only a v1-shaped stub).
  • Or the finding is resolved by a documented decision on this issue.

Activity

Next
  1. dezren39
    added
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    queue/queuedHas a queued queue task
    source/pr-comment-reviewFiled by the pr-comment-review job
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-comment-review job
    • Session / ID: pr-comment-review cron run 2026-11-02 15:54 CST (2026-11-02T22:14:31Z)
    • Found via: unaddressed PR comment — PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997, Codex comment feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (comment)
    • Task: Triage the validated finding: adapter implements the v1 session contract (/session + prompt_async) against the pinned v2 standing server, so OpenClaw session creation cannot work (thread unresolved, no reply, no post-comment fix commit, PR merged as-is, still live on current main)
    • Expectation: effort m — queue worker verifies against current main, then fixes or documents a decision
    • Links: issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614 · source PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997
  3. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 6516
    • Found via: queue claim
    • Task: task 6516 (triage) for issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614 was assigned to the opencode execution lane on claim; handed off for the laptop claimant to launch the bound session. Fresh revalidation this shift: issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614 is OPEN, priority/high, with no hard-stop labels, and no open PR references issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614. This lane did not verify the adapter code itself.
    • Expectation: the bound opencode session verifies issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614 against current main (adapter v1 /session + prompt_async usage vs the standing server's v2 contract), posts the triage verdict, routes the migration fix, and drives task 6516 to a terminal state.
    • Links: issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614; PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (origin of the Codex P1 cited on issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614)
  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  5. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: handed_off
    state: handed off
    task: 6516 (repo-health-code-pilot; worker repo-worker-code)
    session: ses_e5e61a57c1fffel1uNNU9Zqu6O
    route: opencode-route/workhorse
    action: Bound OpenCode worker launched for this already-claimed task; it must not claim another task.

  6. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: started
    state: in_progress
    task: 6516 (repo-health-code-pilot; worker repo-worker-code)
    session: ses_e5e61a57c1fffel1uNNU9Zqu6O
    action: Revalidated issue #4614, merged source PR #3997, unresolved Codex P1, and current main. Current main still uses the v1 /session and prompt_async routes while the same-server v2 client uses /api/session, location.directory in body, {data:…} unwrapping, and /api/session/:id/prompt. No hard-stop labels or competing open PR found. Proceeding with laptop-only fix and contract test.

  7. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: parked
    state: parked
    task: 6516 (repo-health-code-pilot; worker repo-worker-code)
    session: ses_e5e61a57c1fffel1uNNU9Zqu6O
    action: Revalidated the live P1 against main and the pinned OpenCode v2 protocol. The adapter and its stub test remain on v1 routes; v2 requires /api/session with location.directory, /api/session/:id/prompt, /api/event, v2 permission reply, and /api/session/:id/interrupt. No code or branch was created because task policy requires laptop worktree edits/tests, but the laptop SSH helper cannot start without HTTPS_PROXY in the runtime environment. Parked 20 minutes; resume when the approved laptop SSH path is available.

  8. 41 remaining items

  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    source/design-architectFiled by the repo design architect job
    on Nov 3, 2026
  10. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1 — design-architect pass 41 (2026-11-02)

    This issue is Phase 1 of design #DESIGN (a prompt's state dies with the prompt — one server contract and one lifecycle for the OpenClaw ACP adapter), adopted as a sub-issue of that design. Do not re-file, re-scope or split it: implement it as the phase, with the decisions recorded on #DESIGN.

    Phase structure: Phase 1 = this issue (v2 server contract); Phase 2 = #4616 + #4618 (scoped prompt state, one terminal cleanup — independent of this phase in code); Phase 3 = #4617 (reconnect reconciliation — gated in substance on this phase's v2 session read and on Phase 2's terminal function); Phase 4 = #4707 (closing inventory, gated on Phases 1–3).

    Recorded for this phase beyond its own acceptance: disposition the remaining v1-shaped routes against the pinned server (abort, permission reply, event stream), and pin the v2 prompt submission semantics (blocking vs fire-and-event) — Phase 3 is written against whatever this phase establishes, so state it on this issue when known. This issue is currently parked with a holder; the design records the phase structure and does not reassign it.

  11. dezren39
    added a parent issue on Nov 3, 2026
    • Design: a prompt's state dies with the prompt — one server contract and one lifecycle for the OpenClaw ACP adapter #4706
  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 3, 2026
  13. dezren39
    added a commit that references this issue on Nov 3, 2026

    Merge pull request #4698 from developing-today/queue/6571-4614-acp-v2…

    f961fb8
  14. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: task 6571
    • Found via: queue claim (resume from awaiting_ci checkpoint)
    • Task: Done — PR fix(acp-adapter): migrate to the standing server's v2 session API (#4614) #4698 merged (merge commit f961fb8). The adapter now creates sessions via POST /api/session with location.directory and unwraps the v2 {data} envelope; prompt/cancel use the v2 session routes. Diff verified fresh this shift: bin/opencode-acp-adapter.mjs + its contract test only (+57/−29).
    • Expectation: met — contract tests 8/8 pass on the laptop, live smoke against the standing server streamed the v2 flow end-to-end, Codex review on head 744ced9 completed with no findings. The metered-provider guard check (run 41558040465) never started — queued 47+ minutes in the fleet-wide runner backlog — so the merge proceeded under the standing merge authority (verified work does not wait on infra-queued CI); the guard can still run on main.
    • Links: PR fix(acp-adapter): migrate to the standing server's v2 session API (#4614) #4698 · issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 3, 2026
  16. dezren39
    closed this as completedon Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

priority/highImportant and time-sensitivesource/design-architectFiled by the repo design architect jobsource/pr-comment-reviewFiled by the pr-comment-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

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.