Skip to content

[Bug]: Dashboard/agent fake tool calls with dmxapi model; native claude route returns incomplete terminal response #90675

Closed as not planned

Description

@JohnnyBlack123

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Summary

I’m on OpenClaw 2026.6.1 (2e08f0f) on Windows. In Dashboard, an agent using dmxapi/claude-opus-4-7 appears to fake tool calls by rendering tool-call-looking markdown/text instead of emitting real structured tool calls.

While debugging, I found a second issue: the native claude/claude-opus-4-7 route fails even on a minimal infer prompt.

Steps to reproduce

Steps to reproduce

  1. Use OpenClaw 2026.6.1 (2e08f0f) on Windows with Gateway running locally.
  2. Configure/select dmxapi/claude-opus-4-7 for Dashboard agent sessions.
  3. Start/restart Gateway:
    powershell
    openclaw.cmd gateway restart
  4. Open Dashboard at http://127.0.0.1:18789/.
  5. Start a fresh Dashboard session:
    text
    /new
  6. Ask the agent to do something that normally requires a tool, or observe it attempting to call a tool such as session_status.
  7. Actual result: the assistant renders a tool-call-looking block as markdown/text, but no real structured tool invocation is executed.
  8. Separately, run a minimal native claude infer test:
    powershell
    openclaw.cmd infer model run --local --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong"
  9. Actual result:
    text
    Error: No text output returned for provider "claude" model "claude-opus-4-7": Incomplete JSON segment at the end.
  10. Run the same minimal prompt through Gateway:
    powershell
    openclaw.cmd infer model run --gateway --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong"
  11. Actual result:
    text
    GatewayClientRequestError: FailoverError: claude/claude-opus-4-7 ended with an incomplete terminal response: code=incomplete_result
  12. Compare with the dmxapi route, which can return plain text:
    powershell
    openclaw.cmd infer model run --gateway --model dmxapi/claude-opus-4-7 --prompt "Reply with exactly: pong"
    Observed earlier:
    text
    model.run via gateway
    provider: dmxapi
    model: claude-opus-4-7
    outputs: 1
    pong
Small note: if you still have the old alias in config, include this before/after too:
powershell
openclaw.cmd models aliases list
openclaw.cmd models aliases remove claude-opus-4-7
openclaw.cmd gateway restart

Expected behavior

Expected behavior

  • Dashboard agent sessions should emit real structured tool calls when the model chooses to use a tool.
  • Tool-call-looking content should not be rendered as normal assistant markdown/text unless the provider truly returned plain text and OpenClaw intentionally treats it as unsupported.
  • A selected provider/model ref should resolve consistently across Dashboard, Gateway infer, and local infer.
  • openclaw infer model run --local --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong" should return pong or a clear provider/API error.
  • openclaw infer model run --gateway --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong" should also return pong or the same clear provider/API error.
  • If a backend cannot support structured tool calls, OpenClaw should clearly surface that as a model/provider compatibility problem, or allow disabling tools for that model via compat.supportsTools: false without confusing Dashboard behavior.

Actual behavior

Actual behavior

  • In Dashboard, the assistant renders tool-call-looking content as markdown/plain text instead of producing a real structured tool invocation.
  • No corresponding real tool_use / tool-call execution appears for the fake tool-call-looking output.
  • dmxapi/claude-opus-4-7 can return plain text for a minimal prompt, but appears unreliable for structured agent tool use.
  • Native claude/claude-opus-4-7 fails even on a minimal pong prompt.

Local native infer:
powershell
openclaw.cmd infer model run --local --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong"
returns:
text
Error: No text output returned for provider "claude" model "claude-opus-4-7": Incomplete JSON segment at the end.
Gateway native infer:
powershell
openclaw.cmd infer model run --gateway --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong"
returns:
text
GatewayClientRequestError: FailoverError: claude/claude-opus-4-7 ended with an incomplete terminal response: code=incomplete_result
The dmxapi route previously returned normal text:

model.run via gateway
provider: dmxapi
model: claude-opus-4-7
outputs: 1
pong


There was also earlier provider/model resolution confusion where a Gateway infer request that looked like claude/claude-opus-4-7 resolved to provider: dmxapi, likely due to the configured alias claude-opus-4-7 -> dmxapi/claude-opus-4-7.

OpenClaw version

text OpenClaw 2026.6.1 (2e08f0f) Additional environment details from openclaw status --all: text OS: windows 10.0.26200 (x64) Node: 22.22.3 Config: ~.openclaw\openclaw.json Dashboard: http://127.0.0.1:18789/ Gateway: local · ws://127.0.0.1:18789 Channel: stable (default) Update: npm · up to date · npm latest 2026.6.1 · deps ok

Operating system

text Windows 10.0.26200 (x64) From openclaw status --all: text OS: windows 10.0.26200 (x64) Node: 22.22.3

Install method

No response

Model

Primary/default shown by openclaw.cmd models status: text claude/claude-opus-4-7 Dashboard / dmxapi route involved in the fake tool-call behavior: text dmxapi/claude-opus-4-7 Relevant alias that was present during debugging:text claude-opus-4-7 -> dmxapi/claude-opus-4-7 Fallback shown by models status: minimax/MiniMax-M2.7

Provider / routing chain

Configured/default model path from models status: text Default: claude/claude-opus-4-7 AliasAfter alias/remap cleanup, the same Gateway native route reached claude/... and failed: text GatewayClientRequestError: FailoverError: claude/claude-opus-4-7 ended with an incomplete terminal response: code=incomplete_result Local native route also failed: text provider: claude model: claude-opus-4-7 Error: No text output returned: Incomplete JSON segment at the end. So the observed routing chain is: present during debugging: text claude-opus-4-7 -> dmxapi/claude-opus-4-7 Observed routing behavior before alias cleanup / while alias was active:powershell openclaw.cmd infer model run --gateway --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong" returned: model.run via gateway provider: dmxapi model: claude-opus-4-7 outputs: 1 pong ``````text Dashboard/session selection or bare alias -> claude-opus-4-7 alias -> dmxapi/claude-opus-4-7 -> returns plain text, but Dashboard tool calls are rendered as fake markdown/text Explicit/native claude route -> claude/claude-opus-4-7 -> fails minimal infer with incomplete terminal response / incomplete JSON segment

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. clawsweeper commented on Jun 5, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 10:53 AM ET / 14:53 UTC.

    Summary
    Keep open: current main has warning-only fake-tool diagnostics, bounded serialized-tool-call promotion, and incomplete-result classification, but I did not find source, history, or live proof that the combined Windows Dashboard dmxapi fake-tool path plus native Claude Opus 4.7 incomplete response is fixed.

    Reproducibility: no. not for the full current-main issue. Source inspection confirms the relevant warning-only fake-tool and incomplete-result paths still exist, but I did not establish a live Windows Dashboard dmxapi plus native Claude repro on current main.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    Manual provider/runtime review is the right lane because the issue still needs live external-provider proof and a maintainer decision on fake-tool compatibility behavior.

    Review details

    Best possible solution:

    Keep this as a maintainer-owned provider/runtime investigation, prove both reported flows on current main, then either fix the confirmed owner boundary or close with a specific commit and release proof.

    Do we have a high-confidence way to reproduce the issue?

    No, not for the full current-main issue. Source inspection confirms the relevant warning-only fake-tool and incomplete-result paths still exist, but I did not establish a live Windows Dashboard dmxapi plus native Claude repro on current main.

    Is this the best way to solve the issue?

    Unclear; a blind text-promotion or parser tweak is not proven to be the best fix. Maintainers need live provider evidence to decide whether the repair belongs in provider capability metadata, proxy request shaping, native Anthropic parsing, routing, or Dashboard diagnostics.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • There is no live Windows Dashboard plus dmxapi proof on current main, so closing would risk hiding a still-broken user-facing agent workflow.
    • The fake-tool symptom overlaps security-sensitive tool execution policy; promoting or suppressing text-shaped tool calls without maintainer direction could create conflicting behavior.
    • The native Claude incomplete-response symptom may be provider transport, stream parsing, alias resolution, or runtime fallback behavior, and current source alone does not isolate which one remains.

    Codex review notes: model internal, reasoning high; reviewed against 0ad48dad2c47.

    Label changes

    Label justifications:

    • P1: The report combines a broken Dashboard agent tool workflow with native provider failures in a real Windows setup.
    • impact:session-state: Plain-text tool-call leakage can leave an agent session stuck or divergent from the intended tool/result state.
    • impact:message-loss: The reported incomplete terminal response and fake tool output can suppress the expected assistant/tool result message.
    • impact:auth-provider: The issue directly involves provider/model routing between dmxapi, native Claude, aliases, Gateway, and local infer.
    Evidence reviewed

    What I checked:

    Likely related people:

    • steipete: Peter Steinberger authored recent fake-tool diagnostics, empty Claude stop-turn handling, and terminal classifier work that overlaps both reported symptoms. (role: recent area contributor; confidence: high; commits: f9181835e870, 90cd9fce8594, 0314819f918a; files: src/agents/embedded-agent-subscribe.tool-text-diagnostics.ts, src/agents/embedded-agent-runner/result-fallback-classifier.ts, packages/agent-core/src/agent-loop.ts)
    • Jason (Json): Jason authored the serialized tool-call repair package and plain-text tool-call leak work that defines the current promotion boundary. (role: feature history contributor; confidence: medium; commits: 3ea911558c45, cd627803a094; files: packages/tool-call-repair/src/payload.ts, src/agents/embedded-agent-runner/run/attempt.tool-call-normalization.ts)
    • Harjoth Khara: Harjoth recently touched embedded agent default-model routing, which is adjacent to the reported provider/model resolution confusion. (role: adjacent routing contributor; confidence: medium; commits: 790e00a30316; files: src/agents/model-selection.test.ts, src/agents/embedded-agent-runner)
    • Vincent Koc: Current-main history and recent broad agent/QA-lab lifecycle work place Vincent near the latest runtime snapshot, though the exact failing behavior predates that boundary. (role: recent area contributor; confidence: low; commits: 7cd58cca2a26; files: src/agents/embedded-agent-runner/result-fallback-classifier.ts, packages/agent-core/src/agent-loop.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    and removed
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    on Jun 5, 2026
  3. added
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    and removed
    clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.
    issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 14, 2026
  4. openclaw-barnacle commented on Jul 6, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. openclaw-barnacle commented on Jul 14, 2026

    @openclaw-barnacle

    Closing due to inactivity.
    If this is still an issue, please retry on the latest OpenClaw release and share updated details.
    If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.

  6. locked as resolved and limited conversation to collaborators on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsstaleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions