openclaw - 💡(How to fix) Fix [Bug]: Assistant fails to output text response after completing file operations (Write/Exec) in Chat UI [1 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#43630Fetched 2026-04-08 00:16:36
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2
  1. Send a prompt to create a file (e.g., "Create a blank HTML template").<img width="1464" height="542" alt="Image" src="https://github.com/user-attachments/assets/3c017923-3f10-435a-8b5b-201e938cb5af" />

  2. Notice that after the tools show "Completed",Send a follow-up prompt to delete the file (e.g., "Delete this file"),select allow once,Notice there is absolutely no response.<img width="1185" height="672" alt="Image" src="https://github.com/user-attachments/assets/ab4e51bb-99d2-4ab1-86a7-c8e22121dd86" /><img width="1431" height="809" alt="Image" src="https://github.com/user-attachments/assets/47255acd-74cf-4b0b-acc5-bd486da6eb1a" />

  3. refresh page,has a response.<img width="1470" height="1000" alt="Image" src="https://github.com/user-attachments/assets/17589d8d-d84c-475f-bca4-b2a96779cb25" />

  4. has config a exec-approvals.json<img width="544" height="863" alt="Image" src="https://github.com/user-attachments/assets/0fe43573-6f5d-4b91-b60a-b9a8fc00bebf" />

Root Cause

  1. Send a prompt to create a file (e.g., "Create a blank HTML template").<img width="1464" height="542" alt="Image" src="https://github.com/user-attachments/assets/3c017923-3f10-435a-8b5b-201e938cb5af" />

  2. Notice that after the tools show "Completed",Send a follow-up prompt to delete the file (e.g., "Delete this file"),select allow once,Notice there is absolutely no response.<img width="1185" height="672" alt="Image" src="https://github.com/user-attachments/assets/ab4e51bb-99d2-4ab1-86a7-c8e22121dd86" /><img width="1431" height="809" alt="Image" src="https://github.com/user-attachments/assets/47255acd-74cf-4b0b-acc5-bd486da6eb1a" />

  3. refresh page,has a response.<img width="1470" height="1000" alt="Image" src="https://github.com/user-attachments/assets/17589d8d-d84c-475f-bca4-b2a96779cb25" />

  4. has config a exec-approvals.json<img width="544" height="863" alt="Image" src="https://github.com/user-attachments/assets/0fe43573-6f5d-4b91-b60a-b9a8fc00bebf" />

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Summary

  1. Send a prompt to create a file (e.g., "Create a blank HTML template").<img width="1464" height="542" alt="Image" src="https://github.com/user-attachments/assets/3c017923-3f10-435a-8b5b-201e938cb5af" />

  2. Notice that after the tools show "Completed",Send a follow-up prompt to delete the file (e.g., "Delete this file"),select allow once,Notice there is absolutely no response.<img width="1185" height="672" alt="Image" src="https://github.com/user-attachments/assets/ab4e51bb-99d2-4ab1-86a7-c8e22121dd86" /><img width="1431" height="809" alt="Image" src="https://github.com/user-attachments/assets/47255acd-74cf-4b0b-acc5-bd486da6eb1a" />

  3. refresh page,has a response.<img width="1470" height="1000" alt="Image" src="https://github.com/user-attachments/assets/17589d8d-d84c-475f-bca4-b2a96779cb25" />

  4. has config a exec-approvals.json<img width="544" height="863" alt="Image" src="https://github.com/user-attachments/assets/0fe43573-6f5d-4b91-b60a-b9a8fc00bebf" />

Steps to reproduce

  1. Open the OpenClaw Control UI.
  2. Send a prompt to create a file (e.g., "Create a blank HTML template").
  3. Send a follow-up prompt to delete the file (e.g., "Delete this file").
  4. In the approval pop-up window, select allow once.
  5. there is no text response from the Assistant.
  6. After clicking the page refresh button, the result appears, showing that it has been deleted

Expected behavior

After clicking in the approval pop-up window, the ai assistant should immediately return a response, informing of the operation result, rather than having no response and requiring manual clicking of the refresh button

Actual behavior

After the tool execution (such as Write or Exec) is marked as "Completed" in the UI, the Assistant fails to post any text reply. The message block remains entirely blank with no text output. The AI does not confirm the action or communicate with the user until a new, subsequent message is sent to confront it.

OpenClaw version

2026.3.8

Operating system

Ubuntu 24.04.3 LTS

Install method

No response

Model

claude-sonnect-4-5

Provider / routing chain

openclaw ->claude api

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To address the issue of the AI assistant not responding after a tool execution is marked as "Completed", we need to modify the code to handle the response after the approval pop-up window is closed.

Here are the steps:

  • Modify the exec-approvals.json configuration file to include a callback function that will be triggered after the approval pop-up window is closed.
  • Update the AI assistant code to handle the callback function and send a response to the user after the tool execution is completed.

Example code snippet:

# In exec-approvals.json
{
    "approval_callback": "handle_approval_callback"
}

# In AI assistant code
def handle_approval_callback():
    # Send a response to the user
    response = "Operation completed successfully"
    send_response(response)

def send_response(response):
    # Code to send the response to the user
    pass
  • Ensure that the handle_approval_callback function is called after the approval pop-up window is closed.

Verification

To verify that the fix worked, follow these steps:

  • Send a prompt to create a file.
  • Send a follow-up prompt to delete the file.
  • In the approval pop-up window, select allow once.
  • Check if the AI assistant responds immediately with a confirmation message.

Extra Tips

  • Make sure to test the fix in different scenarios to ensure that it works as expected.
  • Consider adding logging to track the execution of the callback function and the response sent to the user.
  • Review the code to ensure that it is handling errors and exceptions properly.

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

After clicking in the approval pop-up window, the ai assistant should immediately return a response, informing of the operation result, rather than having no response and requiring manual clicking of the refresh button

Still need to ship something?

×6

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

Back to top recommendations

TRENDING