[Bug]: ask_user never renders in Windows Companion chat — tool hangs in Running, session stuck
Summary
In the Windows Companion native chat, ask_user never produces an interactive question UI. The tool enters Running, the question text is only visible if the operator manually expands the running tool log, and the session remains stuck on "Assistant is thinking..." because the tool call is waiting for user input that cannot be supplied through the normal chat UI.
This was originally reported as openclaw/openclaw#141702 and closed only because the issue belongs to the Windows Companion/Hub repository rather than the core OpenClaw repository.
Environment
- Gateway: OpenClaw
2026.9.2 (3928bad)running in WSL2 - Gateway OS: Linux
6.6.87.2-microsoft-standard-WSL2x64 - Node:
v24.20.0 - Gateway install: npm global
- Windows Companion executable:
%LOCALAPPDATA%\OpenClawTray\OpenClaw.Tray.WinUI.exe - Companion ProductVersion:
2026.7.1-4+c7c6fb06be036de512d824986a6eee6eca14abdb - Companion FileVersion:
2026.7.2.0 - Host OS: Windows 11
- Model during reproduction:
meta/muse-spark-1.3
Steps to reproduce
- Run the OpenClaw Gateway in WSL2 and connect the Windows Companion to it.
- Open a native chat in Windows Companion.
- Have the agent call
ask_user, for example a simple Yes/No question such asContinue?. - Observe that the tool enters
Running. - No interactive question UI appears in the chat.
- Manually expanding the running tool log reveals the question payload; this is the only place the question is visible.
- The session remains on
Assistant is thinking.../blocked_tool_calluntil the operator aborts it or the question expires.
Reproduced 3/3 times.
Expected behavior
The Windows Companion native chat should display the pending ask_user question with an answer UI (and ideally Skip/cancel/recovery controls), allowing the user to respond and letting the agent turn continue.
Actual behavior
ask_userstays inRunning.- No question UI is rendered.
- The question is visible only inside the expanded running-tool log.
- The session remains stuck on
Assistant is thinking...because the tool call is waiting for input. - The operator must abort or wait for timeout.
Gateway evidence
Representative logs from repeated reproductions:
2026-09-07T16:35:28.952-07:00 info gateway/ws ⇄ res ✓ question.waitAnswer 928524ms conn=32a5a9dd…092b id=2:722ca0c4-c…69e7
2026-09-07T17:23:28.727-07:00 error diagnostic lane task error: lane=main durationMs=494210 error="This operation was aborted"
2026-09-07T17:23:28.739-07:00 info gateway/ws ⇄ res ✓ question.waitAnswer 462085ms conn=fa5cb882…f5f3 id=2:846121a9-b…ccd8
2026-09-07T17:23:28.766-07:00 info gateway/ws ⇄ res ✗ question.resolve 1ms errorCode=INVALID_REQUEST errorMessage=question 'ask_7e56b7178198ee9fb23e9975807fd685' is already cancelled conn=749caf27…bb7d id=2:b73416bd-c…0f5f
2026-09-07T17:17:50.382-07:00 warn diagnostic stalled session: sessionId=4b427bd6-… sessionKey=agent:main:main state=processing age=122s queueDepth=0 reason=blocked_tool_call classification=blocked_tool_call activeWorkKind=tool_call lastProgress=tool:ask_user:started ... activeTool=ask_user ... recovery=none
The stalled-session diagnostic repeats roughly every 30 seconds while blocked.
Companion evidence
The Companion tray log at:
%LOCALAPPDATA%\OpenClawTray\openclaw-tray.log
(and .old) contained zero occurrences of question during the reproductions. The log showed events such as agent, session.tool, and session.message, but no visible error explaining the missing question UI.
Impact
High workflow impact on Windows Companion native chat: any agent workflow that invokes ask_user can become blocked even though the user was never shown the question.
Workaround
Avoid ask_user on this surface and ask clarification questions as ordinary assistant text instead.
Related core issue
openclaw/openclaw#141702— same report, closed asnot_plannedbecause the maintainer identified this as a Windows Companion/Hub issue and directed it to this repository.
No secrets, access tokens, or credentials are included in this report.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 7, 2026, 8:48 PM ET / September 8, 2026, 00:48 UTC.
Summary Keep open: current main lacks the question handling needed to unblock the reported native-chat workflow. This is a concrete compatibility gap, but implementing it requires more than repairing an existing question renderer.
Reproducibility: unclear. for an independently verified current-main runtime reproduction: source confirms missing question handling, and the reporter supplies repeated released-build failures, but the gateway wire exchange was not inspected and no app execution was performed.
Ways to help us reproduce this
- Add a screenshot or short recording showing the behavior.
- Add expected vs actual behavior.
Maintainer decision needed
| Question | Recommendation |
|---|---|
| Should native chat add full gateway question support now, or first provide an explicit unsupported-question recovery experience? | Add native question support: Implement the verified gateway question lifecycle with answer controls and cancellation or expiry handling in the correct conversation. |
Why: Current source has no question model, response API, or renderer; choosing the compatibility scope requires product intent rather than a small defect repair.
Next step Confirm native question-support scope and the gateway contract, then check for an existing implementation PR before assigning this multi-layer change.
Review details
Best possible solution:
Provide a session-scoped native question card with answers and visible cancellation or recovery, using the gateway question protocol while preserving the separate command-approval path.
Do we have a high-confidence way to reproduce the issue?
Unclear for an independently verified current-main runtime reproduction: source confirms missing question handling, and the reporter supplies repeated released-build failures, but the gateway wire exchange was not inspected and no app execution was performed.
Is this the best way to solve the issue?
Yes, a dedicated native question path addresses the reported limitation; routing answers through ordinary chat input or command-approval RPCs would not satisfy the question protocol.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- The exact Gateway 2026.9.2 question event, subscription, response, and cancellation contracts remain unverified; the logs do not establish whether question events reached this client.
- Network failures prevented checking whether an open or merged related PR already owns this work.
Codex review notes: model internal, reasoning medium; reviewed against 88822d342567.
Label changes
Label changes:
- add
P1: The reported current-release native-chat workflow repeatedly stalls when the agent requests an answer. - add
impact:session-state: The session remains processing while its active tool waits for an answer the native surface cannot submit. - add
impact:ux-friction: Users must abort or avoid the tool; the report describes recovery rather than an unrecoverable first-run blocker. - add
issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label. - add
clawsweeper:needs-live-repro: Current issue advisory state selects this label. - add
clawsweeper:no-new-fix-pr: Current issue advisory state selects this label. - add
clawsweeper:needs-maintainer-review: Current issue advisory state selects this label. - add
clawsweeper:needs-product-decision: Current issue advisory state selects this label.
Label justifications:
P1: The reported current-release native-chat workflow repeatedly stalls when the agent requests an answer.impact:session-state: The session remains processing while its active tool waits for an answer the native surface cannot submit.impact:ux-friction: Users must abort or avoid the tool; the report describes recovery rather than an unrecoverable first-run blocker.
Evidence reviewed
What I checked:
- Reported release and repeated failure: The supplied issue body reports three reproductions on Companion 2026.7.1-4 with Gateway 2026.9.2, including question.waitAnswer delays and blocked_tool_call diagnostics. Aborting or avoiding ask_user is the reported workaround. The reporter also describes an earlier core-repository ownership referral; that discussion could not be independently fetched.
- Verified review revision and repository: Origin identifies the target repository, and the clean checkout is main at the supplied fetched revision. (88822d342567)
- Gateway event boundary: The event dispatcher handles agent/chat events and explicitly translates exec approval events. It has no question event case. This is the concrete gateway protocol dependency that must be checked when implementing question support. (
src/OpenClaw.Shared/OpenClawGatewayClient.cs:3249, 88822d342567) - Question mapping is absent: The mapper supports tool activity and approvals, returns null for unsupported streams, and maps tool starts to ordinary tool cards. Searches across current source, tests, and docs found no ask_user or question RPC implementation. (
src/OpenClaw.Tray.WinUI/Chat/ChatEventMapper.cs:27, 88822d342567) - Existing answer controls are approval-specific: The bridge exposes ResolveExecApprovalAsync but no question response method. RespondToPermissionAsync normalizes command-approval actions and calls that approval RPC, so reusing its buttons without a separate question contract would not answer the pending question. (
src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:904, 88822d342567) - Established adjacent behavior: Existing tests require approval responses to use their dedicated RPC rather than enqueueing ordinary chat text behind a blocked agent run. The native timeline model and renderer have permission requests but no question item. (
tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs:13086, 88822d342567)
Likely related people:
- karkarl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
- RBrid: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
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-reviewcomments, 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-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto 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 explainto ask for more context, or@clawsweeper stopto stop active automation.
This issue has been automatically marked as stale due to inactivity. Please add updated OpenClaw Windows details or it will be closed.
Closing due to inactivity. If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.