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 — muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever · Issue #2159 · developing-today/code

muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159

New issue
Copy link
New issue
Copy link
Closed
#4242
Closed
muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever#2159
#4242
Copy link
Assignees
dezren39
Labels
app/muse-proxybin/muse-proxy.mjs OpenAI-compatible Muse bridgeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

bin/muse-proxy.mjs's exec (cold) path has no turn deadline. When the warm MSP path is disabled (MUSE_PROXY_WARM=0) or a request falls back to exec, the handler spawns muse exec (bin/muse-proxy.mjs:979) and the HTTP response is completed only from the child's close handler (:1083). There is no timer on this path: the only kill is on client disconnect (res.on('close') → child.kill('SIGTERM'), :992-996). If the spawned muse exec child hangs — alive but never emitting a terminal event (upstream stall, a CLI waiting on input the proxy never sends, a wedged run) — and the client is a patient programmatic caller (an OpenCode session, a queue worker), the request hangs forever and the child accumulates.

Every sibling path is bounded, including in this same file:

  • The warm path in this file: WARM_TURN_TIMEOUT_MS = 300 * 1000 (:300), applied per turn (:585-587); MSP rpc() defaults to a 30s timeout (:513-519); even the --help capability probe kills its child after 10s (:216-219).
  • bin/claude-code-proxy.mjs: TURN_TIMEOUT_MS = 300 * 1000 (:55) on its spawned turns, with SIGKILL escalation (:480).
  • bin/codex-proxy.mjs's app-server path: 10s connect / 30s RPC timeouts (its exec path has the same defect as this one and is filed separately this run).

The exec path is the fallback taken exactly when the bounded warm path is unavailable or has failed — the moment a hang is most likely — and it is the one path with no bound.

Evidence (verified this run, main b2b885b9)

Sandbox probe with a fake muse binary ($HOME/.local/bin/muse under a scratch HOME; the fake answers --help probes with a flags line and sleeps 60s for any other invocation), MUSE_PROXY_WARM=0:

  • Proxy log: CLI probe: exec advertises 6 flags... then Spawning: .../muse exec --json --prompt-file ... --model muse-spark-1.3 --reasoning-effort low --user-input-auto-resolve --approval-mode never — the request reached the exec spawn at :979.
  • curl -X POST /v1/chat/completions (non-streaming): no response after 8s (curl killed by timeout 8, exit 124, 0 response bytes) while the fake child (sleep 60) was still running. Nothing in the proxy would have ended the request before the child's own exit — and a truly hung child never exits.

Dedup: gh searches for muse-proxy timeout and muse-proxy hang (open + closed) return no covering issue. Adjacent but distinct: #2097/#2100/#2102 are the same no-timeout class in design-code-proxy, clef-proxy, and antigravity-ls-proxy (HTTP fetch / RPC paths in other files); the codex-proxy exec path is filed separately this run.

Why it matters

This proxy is the only door from OpenCode sessions into the Meta pool (see the pool map in ~/hatch-personal/AGENTS.md), so a wedged exec turn stalls the session routed through it with no error, no log line, and no recovery short of the client dying — at which point the accumulated child is killed only as a side effect of the disconnect. A bounded fallback would surface the same stall as a prompt, actionable error, consistent with how the warm path already behaves at 300s.

Acceptance criteria

  • A muse exec turn that exceeds a named deadline (consistent with the house convention — this file's own WARM_TURN_TIMEOUT_MS 300s, or a strictly parsed MUSE_PROXY_* env override) is terminated (SIGTERM, then SIGKILL after a short grace) and the request settles with the existing error-response shape (including the SSE error framing for streaming requests, muse-proxy: streaming execution failure is sent as unframed JSON on a 200 SSE response — clients see an empty successful stream #670).
  • The partially accumulated content / terminal-state reconciliation on close (muse-proxy (PR #479): streaming responses silently drop the terminal text tail that non-streaming returns #484/muse-proxy: a run that fails after producing partial output is reported as a successful 'stop' — failure is masked whenever any content exists #672) still runs for a deadline-killed child, or the deadline path produces an equivalent explicit failure — never a silent successful stop.
  • The existing client-disconnect kill (:992-996) keeps working and races safely with the deadline kill.
  • Regression tests in bin/muse-proxy.test.mjs style: a fake child that never exits is killed at the deadline and the request errors; a fake child that completes normally is unaffected; the warm path is unchanged.
  • Prompt-file cleanup (fs.unlinkSync(promptFile)) happens on the deadline path as it does on close.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

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

    CODE-1054

  3. dezren39
    added
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    effort/sSmall: expected under 2 hours of work
    app/muse-proxybin/muse-proxy.mjs OpenAI-compatible Muse bridge
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator-code-a (Lane A)
    • Session / ID: cron job new-issue-creator-code-a, run 2026-10-29T06:51Z
    • Found via: filed this run
    • Task: Filed after verifying with a fake hanging muse binary (MUSE_PROXY_WARM=0) that the exec fallback path has no turn deadline — request unsettled at 8s, child never killed — while this file's warm path (300s), its rpc (30s) and even its --help probe (10s) are all bounded. Sibling defect in the codex-proxy exec path filed as codex-proxy: exec transports have no turn deadline — a hung codex exec child hangs the request forever and is never killed #2157.
    • Expectation: effort/s — triage pins the deadline value/source, then a small-fix adds deadline + grace kill with fake-child regression tests.
    • Links: packet queue-pilot/packet-2159-triage.json (repo-health-code-pilot); sibling codex-proxy: exec transports have no turn deadline — a hung codex exec child hangs the request forever and is never killed #2157
  5. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  7. 107 remaining items

  8. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: ses_e5e6382fa4affeTyircifT5YZ6 / task 5196
    • Found via: queue claim
    • Task: Implement the exec fallback deadline and kill escalation for muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159
    • Expectation: Revalidate current issue/PR metadata; respect ownership restrictions.
    • Links: task 5196 · fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242
  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: OpenChamber scheduled lane (repo-worker-code)
    • Session / ID: ses_e5e6382fa4affeTyircifT5YZ6 / task 5196
    • Found via: queue claim
    • Task: muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159 exec fallback deadline + kill escalation
    • Expectation: Parked 30 minutes. Hard-stop ownership confirmed: issue muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159 remains assigned to Drewry Pope; canonical PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 remains open, non-draft, assigned to and authored by Drew. No PR contents, checks, reviews, branch, or worktree inspected.
    • Resume: Only after explicit ownership handoff/release or PR closure/merge; revalidate fresh.
    • Links: task 5196 · fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242
  10. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up + parked (queue task 5196, repo-worker-code, OpenChamber scheduled lane)

    • Fresh evidence: muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159 OPEN, assigned dezren39. PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 OPEN/non-draft, Drew-authored + Drew-assigned, head 71c42421. Active Drew ownership unchanged.
    • Disposition: metadata only — no PR internals inspected, no branch/worktree touched, no competing work. Parking 30 min.
    • Resume: after explicit release/handoff or PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 closure; revalidate ownership fresh before work.
  11. 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 2, 2026
  12. 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 C shift
    • Session / ID: task 5196
    • Found via: queue claim
    • Task: Resuming PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 for muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159. Fresh revalidation: muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159 OPEN with no hard-stop labels; PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 OPEN, mergeable/clean at head 71c4242, on this task's own fleet branch queue/5196-2159-exec-turn-deadline. The prior "Drew-owned" park rested on author/assignee alone — that is the fleet account every fleet PR uses — so it is not a hard stop (same correction other lanes applied today). Remaining merge gate is the accepted-but-unfixed Codex P2 on settle-after-timeout (4441349930); the timer-limit P2 is already fixed in head and will be resolved. Implementing the settle fix in this PR.
    • Expectation: effort/s — fix + regression test, node --test green, merge, close muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159.
    • Links: PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 · branch queue/5196-2159-exec-turn-deadline
  13. dezren39
    added 2 commits that reference this issue on Nov 2, 2026

    fix(muse-proxy): settle timed-out exec requests independently of chil…

    890c547

    Merge pull request #4242 from developing-today/queue/5196-2159-exec-t…

    537c0b1
  14. dezren39
    closed this as completedin #4242on Nov 2, 2026
  15. 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 C shift
    • Session / ID: task 5196
    • Found via: queue claim
    • Task: PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 MERGED (merge commit 537c0b1); muse-proxy: exec fallback path has no turn deadline — a hung muse exec child hangs the request forever #2159 closed by the merge. Final head 890c547 adds the independent settle for timed-out exec requests (Codex P2 4441349930, implemented per lane E's accepted disposition); the timer-limit P2 was already fixed in 71c4242. Both Codex threads replied to and resolved. Verified on the laptop at head: node --test bin/muse-proxy.test.mjs 36/36 pass, including the new descendant-pipe regression test.
    • Expectation: done — no follow-up.
    • Links: PR fix(muse-proxy): exec fallback turn deadline + kill escalation (#2159) #4242 · branch queue/5196-2159-exec-turn-deadline
  16. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 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

app/muse-proxybin/muse-proxy.mjs OpenAI-compatible Muse bridgeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator 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.