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: pending prompts are never reconciled when the SSE event stream reconnects (#3997) · Issue #4617 · developing-today/code

openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617

New issue
Copy link
New issue
Copy link
Closed
#4632
Closed
openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997)#4617
#4632
Copy link
Assignees
dezren39
Labels
priority/normalOrdinary priority (the default)source/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)

If the SSE event stream drops during an active prompt and the server completes that prompt before reconnection, the prompt's final session.idle event is lost and the ACP request hangs forever. Codex (P2, PR #3997):

This reconnect path neither resolves or rejects pending prompts nor queries their current status, and session/prompt has no other completion mechanism. The ACP request therefore remains pending indefinitely, with subsequent prompts rejected as already in flight even after the stream reconnects. Reconcile pending sessions after reconnecting, or explicitly fail their outstanding requests when event continuity is lost.

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:189
  • 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:185-190 — the event-stream loop logs "reconnecting" and retries after 1s; nothing reconciles, resolves, or rejects entries in pendingPrompts on reconnect.

Acceptance criteria

  • After an event-stream reconnect, pending prompts are reconciled against the server's current session state (resolved/rejected accordingly) or explicitly failed when event continuity was lost.
  • A test simulates a stream drop + completion during the gap and shows the prompt does not remain pending indefinitely.
  • 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/normalOrdinary priority (the default)
    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: pending prompts are never reconciled when the SSE event stream reconnects, so a prompt completed during the gap hangs indefinitely (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: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 · 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 · picked up

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 6519
    • Found via: queue claim
    • Task: triage task 6519 for issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 — verify against current main that the SSE reconnect loop in bin/opencode-acp-adapter.mjs never reconciles pendingPrompts, then route the fix.
    • Expectation: s; triage verdict posted with fresh evidence, and a follow-up fix task enqueued if confirmed.
    • Links: PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (merged; origin of the Codex P2 cited on issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617)
  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 · triaged — CONFIRMED on current main

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 6519
    • Found via: queue claim (triage)
    • Task: triage task 6519 for issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 — verdict: CONFIRMED, fresh on main 9f730f1c22efc3ebc4605c63d7813e962f596ec5 (2026-11-02).

    Fresh evidence (all read this shift via gh):

    • Issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 is OPEN with no hard-stop labels; PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 is MERGED (2026-11-02T15:44Z); no open PR references issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617.
    • bin/opencode-acp-adapter.mjs (496 lines on current main), runEventStream (:162-191): the loop fetches GET /event, and on stream close logs event stream closed; reconnecting, on error logs …; reconnecting, waits 1000 ms (:189) and retries. Nothing in the loop reads or touches pendingPrompts — no reconciliation, no status query, no resolve/reject on reconnect.
    • pendingPrompts (:127) entries are removed only by finishPrompt (:286-294), which is called only from handleServeEvent on a session.idle event (:307-313) or a session.error event (:314-320), plus a delete when the prompt_async POST itself throws (:413). A session.idle emitted server-side while the stream is down never reaches handleServeEvent, so the entry — and the deferred ACP response — stays pending forever. There is no pending-prompt timeout anywhere in the file (the only setTimeouts are the event-stream ready wait at :154 and the 1 s reconnect delay at :189).
    • Consequence confirmed in code: session/prompt (:399-401) throws already has a prompt in flight while an entry lingers, so later prompts for that session are rejected indefinitely even after the stream reconnects — exactly the Codex P2 on PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (comment r4437436115).
    • Test gap confirmed: bin/opencode-acp-adapter.test.mjs (262 lines) drives a stub SSE stream and covers completion on session.idle, but contains no reconnect/drop test (no occurrence of reconnect in the file).

    Routing: a small_fix follow-up task has been enqueued from this triage: on event-stream reconnect, reconcile each pending prompt against the server's current session state (resolve/reject accordingly) or explicitly fail it when event continuity was lost, plus a drop-and-complete test using the existing stub harness. Note for sequencing: issue #4614 (triage task 6516) covers migrating this same adapter to the standing server's v2 session contract — if that migration lands first, implement the reconciliation against the v2 contract instead of the v1 prompt_async flow.

  6. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 6519
    • Found via: queue claim (triage)
    • Task: triage task 6519 for issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 is complete — CONFIRMED fresh on main 9f730f1c (full evidence in the triage note above on issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617). Follow-up fix enqueued as task 6535 (small_fix: reconcile pending prompts on event-stream reconnect + drop-and-complete test); issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 stays OPEN pending that fix.
    • Expectation: task 6535 implements the acceptance criteria on issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617.
    • Links: task 6535; PR feat(openclaw): ACP-to-HTTP adapter so OpenClaw shares the standing opencode serve (#1243) #3997 (merged, origin of the finding); issue openclaw ACP adapter: use the standing server's v2 session API — v1 /session + prompt_async contract cannot create working sessions (#3997) #4614 (sibling adapter migration)
  7. dezren39
    added
    queue/queuedHas a queued queue task
    on Nov 2, 2026
  8. 125 remaining items

  9. 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 10, 2026
  10. dezren39
    added a commit that references this issue on Nov 10, 2026

    fix(acp-adapter): fence late terminal events after reconnect reconcil…

    dc5d3f4
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (CI wait)

    • Agent: repo queue worker, lane code-n (repo-worker-code)
    • Session / ID: task 12842
    • Task: task 12842 for issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617 — shepherded canonical PR fix(acp-adapter): reconcile pending prompts when the event stream reconnects (#4617) #4632: merged current main into its branch (clean), fixed the remaining Codex P2 (late terminal events fencing a reconciled prompt's successor) in dc5d3f4, and dispositioned both outstanding Codex threads on the PR (submission-in-flight fix 595e5c9 reply r4529823456; fence fix reply r4529823866).
    • Evidence: node --test bin/opencode-acp-adapter.test.mjs on the laptop at dc5d3f4: 22 passed, 0 failed. PR fix(acp-adapter): reconcile pending prompts when the event stream reconnects (#4617) #4632 MERGEABLE at dc5d3f4.
    • Resume condition: PR fix(acp-adapter): reconcile pending prompts when the event stream reconnects (#4617) #4632 CI completes on dc5d3f4; on resume, re-check Codex/CodeRabbit on the new head, then merge under the standing criteria (the PR body carries the closing keyword for issue openclaw ACP adapter: pending prompts are never reconciled when the SSE event stream reconnects (#3997) #4617). Broker CI wait floored to 1h (fix(queue): broker-owned waits — claim eligibility, wait TTL floors, no attempt burn on bookkeeping cycles #8184); fleet queue wake 12842 releases early once checks complete.
  12. 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 Nov 10, 2026
  13. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #4632 from developing-today/queue/6535-4617-acp-re…

    2867299
  14. dezren39
    closed this as completedin #4632on Nov 10, 2026
  15. 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 Nov 10, 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/normalOrdinary priority (the default)source/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.