Repository navigation
Description
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
- Use OpenClaw
2026.6.1 (2e08f0f)on Windows with Gateway running locally. - Configure/select
dmxapi/claude-opus-4-7for Dashboard agent sessions. - Start/restart Gateway:
powershell
openclaw.cmd gateway restart - Open Dashboard at
http://127.0.0.1:18789/. - Start a fresh Dashboard session:
text
/new - Ask the agent to do something that normally requires a tool, or observe it attempting to call a tool such as
session_status. - Actual result: the assistant renders a tool-call-looking block as markdown/text, but no real structured tool invocation is executed.
- 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" - Actual result:
text
Error: No text output returned for provider "claude" model "claude-opus-4-7": Incomplete JSON segment at the end. - 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" - Actual result:
text
GatewayClientRequestError: FailoverError: claude/claude-opus-4-7 ended with an incomplete terminal response: code=incomplete_result - 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/modelref 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 returnpongor a clear provider/API error.openclaw infer model run --gateway --model claude/claude-opus-4-7 --prompt "Reply with exactly: pong"should also returnpongor 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: falsewithout 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-7can return plain text for a minimal prompt, but appears unreliable for structured agent tool use.- Native
claude/claude-opus-4-7fails even on a minimalpongprompt.
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
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 5, 2026
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
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:
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:
toolCall; text that resembles a tool call is not executed by this core path. (packages/agent-core/src/agent-loop.ts:312, 0ad48dad2c47)src/agents/embedded-agent-subscribe.tool-text-diagnostics.ts:80, 0ad48dad2c47)compat.supportsTools === false, but absent metadata remains permissive, so deciding how to handle unsupported proxy models is still a provider/runtime policy question. (src/agents/model-tool-support.ts:4, 0ad48dad2c47)[tool:exec]marker before an error to flush as text rather than promote. (packages/tool-call-repair/src/payload.ts:193, 0ad48dad2c47)code: "incomplete_result"with the same provider/model incomplete terminal response wording family reported here. (src/agents/embedded-agent-runner/result-fallback-classifier.ts:165, 0ad48dad2c47)infer model runpath prepares the simple-completion model, collects text, and throwsNo text output returnedwhen no visible text is returned, matching the issue's native Claude failure class. (src/cli/capability-cli.ts:741, 0ad48dad2c47)Likely related people:
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)packages/tool-call-repair/src/payload.ts,src/agents/embedded-agent-runner/run/attempt.tool-call-normalization.ts)src/agents/model-selection.test.ts,src/agents/embedded-agent-runner)src/agents/embedded-agent-runner/result-fallback-classifier.ts,packages/agent-core/src/agent-loop.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
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.