openclaw - ✅(Solved) Fix [Bug]: acpx flow run ACP node outputs return empty strings instead of agent replies [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#77694Fetched 2026-05-06 06:22:57
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
3
Timeline (top)
commented ×1cross-referenced ×1

PR fix notes

PR #78282: Update ACPX extension dependency

Description (problem / solution / changelog)

Fixes #77694.

Summary

Verification

  • git diff --check
  • PATH="/tank/development/linus/openclaw/node_modules/.bin:$PATH" node scripts/test-projects.mjs extensions/acpx --maxWorkers=1 — passed, 9 files / 70 tests

Notes

  • Live acpx flow run against pi/opencode was not run because it requires live agent credentials/runtime side effects.
  • Lockfile reproduction from worker evidence: npx --yes [email protected] install --lockfile-only --filter ./extensions/acpx --config.minimumReleaseAge=0.

Changed files

  • extensions/acpx/package.json (modified, +1/-1)
  • pnpm-lock.yaml (modified, +6/-15)

Code Example

// /tmp/test-flow.mjs
import { defineFlow, acp } from "acpx/flows";

export default defineFlow({
  name: "smoke-test",
  startAt: "step1",
  nodes: {
    step1: acp({
      prompt: () => "Reply with exactly ACPX_FLOW_SMOKE_OK",
    }),
  },
  edges: [],
});

---

acpx flow run /tmp/test-flow.mjs --default-agent pi
# runId: 2026-05-05T034727983Z-smoke-test-cc7d4d4a
# flow: smoke-test
# status: completed
# {
#   "step1": ""
# }

acpx --format json flow run /tmp/test-flow.mjs --default-agent opencode
# {"status":"completed","outputs":{"step1":""}}

---

nodes: {
  step1: acp({ prompt: () => "Reply with exactly STEP1_OK" }),
  step2: acp({ prompt: (ctx) => "Previous was: " + (ctx.step1 || "nothing") }),
}
// Output: {"step1": "", "step2": ""}

---

acpx: 0.6.1
OpenClaw: 2026.5.3-1 (2eae30e)
OS: Linux 6.8.0-110-generic (x64, Ubuntu)
Install: npm global
RAW_BUFFERClick to expand / collapse

Describe the bug

acpx flow run completes with status: completed but the ACP node outputs are empty strings instead of containing the agent's actual reply text. This occurs with both pi and opencode agents (not tested with codex, as I don't have credits).

To Reproduce

  1. Create a minimal flow file:
// /tmp/test-flow.mjs
import { defineFlow, acp } from "acpx/flows";

export default defineFlow({
  name: "smoke-test",
  startAt: "step1",
  nodes: {
    step1: acp({
      prompt: () => "Reply with exactly ACPX_FLOW_SMOKE_OK",
    }),
  },
  edges: [],
});
  1. Run it:
acpx flow run /tmp/test-flow.mjs --default-agent pi
# runId: 2026-05-05T034727983Z-smoke-test-cc7d4d4a
# flow: smoke-test
# status: completed
# {
#   "step1": ""
# }

acpx --format json flow run /tmp/test-flow.mjs --default-agent opencode
# {"status":"completed","outputs":{"step1":""}}
  1. The same prompt sent directly via acpx pi exec "Reply with exactly ACPX_FLOW_SMOKE_OK" produces the expected output. Only flow runs return empty strings.

Expected behavior

acpx flow run ACP node outputs should contain the agent's reply text (e.g., {"step1": "ACPX_FLOW_SMOKE_OK"}), matching the behavior of direct acpx <agent> exec.

Actual behavior

All ACP node outputs are empty strings ("") regardless of agent or prompt content. The flow runs to completion and the session is created successfully, but the prompt text does not appear to reach the agent, or the agent's reply is not captured into the output.

Multi-step reproduction

Even in multi-step flows, outputs are empty:

nodes: {
  step1: acp({ prompt: () => "Reply with exactly STEP1_OK" }),
  step2: acp({ prompt: (ctx) => "Previous was: " + (ctx.step1 || "nothing") }),
}
// Output: {"step1": "", "step2": ""}

System Information

acpx: 0.6.1
OpenClaw: 2026.5.3-1 (2eae30e)
OS: Linux 6.8.0-110-generic (x64, Ubuntu)
Install: npm global

extent analysis

TL;DR

The issue with acpx flow run returning empty strings for ACP node outputs may be related to how the acp function handles prompts or the flow configuration, and verifying the prompt function and flow definitions is necessary.

Guidance

  • Review the acp function usage in the flow definitions to ensure prompts are correctly defined and passed.
  • Verify that the prompt function returns the expected string, considering any potential async operations or context dependencies.
  • Check for any updates or known issues in the acpx package version 0.6.1 that might relate to ACP node output handling.
  • Test with different prompt types (e.g., static strings vs. dynamic functions) to isolate the issue.

Example

// Example of testing with a static prompt string
nodes: {
  step1: acp({ prompt: "Reply with exactly STATIC_OK" }),
}

Notes

The issue seems specific to the acpx flow run command and does not occur with direct acpx <agent> exec commands, suggesting a potential issue with how flows are executed or outputs are captured.

Recommendation

Apply a workaround by testing with different prompt configurations and flow definitions to identify the root cause, as upgrading to a potentially fixed version is not explicitly implied in the given information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

acpx flow run ACP node outputs should contain the agent's reply text (e.g., {"step1": "ACPX_FLOW_SMOKE_OK"}), matching the behavior of direct acpx <agent> exec.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: acpx flow run ACP node outputs return empty strings instead of agent replies [1 pull requests, 1 comments, 2 participants]