Skip to content

npm 0.1.0: session/new hangs 15s against ZCode CLI ≥ 0.16 — please cut a release including #38 #41

Description

@lianxin255

Thanks for the bridge — it works great built from main.

Problem: the published npm package (zcode-acp-server 0.1.0, 2026-07-05) cannot create sessions against ZCode CLI ≥ 0.16:

  • initialize succeeds
  • session/new hangs ~15s, then fails with {"code":-32603,"message":"Internal error","data":{"details":"zcode create failed: timeout"}}

Root cause: ZCode CLI 0.16 added a session/requestRuntimePreferences server→client request during session/create. The 0.1.0 build only handles interaction/* server requests, so the preferences request goes unanswered and zcode's 15s timeout aborts the create. Fixed on main by #38 (17e9fc6), which auto-replies in the backend read loop.

Verified locally (built from main @ a5cb8a1, against ZCode desktop 3.7.7 / CLI 0.16.3, macOS arm64):

  • initialize → session/new returns in ~0.5s
  • full streaming works (thought/message chunks, tool_call with rawInput/rawOutput, usage updates)
  • session/resume continues a session across processes; stray argv (e.g. an acp positional) is tolerated

Ask: could you publish a 0.2.0 (or 0.1.1) that includes #38?

Context: we're preparing a multica runtime-family PR (multica-ai/multica#5361) that drives zcode through this bridge and declares zcode-acp-server >= 0.2.0 as its minimum — a published release is the one blocking dependency for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions