openclaw - 💡(How to fix) Fix autoglm-browser-agent: mcp_server returns empty execution result, extension works but data lost [1 comments, 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#72791Fetched 2026-04-28 06:32:07
View on GitHub
Comments
1
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
commented ×1

Error Message

  1. mcp_server returns after ~10s with: 'Browser subagent execution error: empty execution result'
RAW_BUFFERClick to expand / collapse

Problem

autoglm-browser-agent skill fails to return task results. The browser extension executes the task correctly (user can observe the agent navigating, clicking, taking screenshots in Chrome), but mcp_server returns 'empty execution result' after receiving only an intermediate get_current_state action.

Environment

  • OS: Windows 11 (x64)
  • OpenClaw runtime: agent=main, model=glm-5-turbo
  • Browser: Chrome with AutoGLM extension (jelniggicmclhfgnlapbkgfibmgelfnp)
  • Extension is active and connected to relay (ws://127.0.0.1:62031)
  • relay.exe running and listening on port 62031
  • mcp_server.exe configured with --if_subagent flag

Reproduction

  1. Register mcp_server via mcporter config add (standard INSTALL.md steps)
  2. Start relay.exe
  3. Call browser_subagent with any task
  4. Observe: Chrome opens tabs and agent navigates (extension works)
  5. mcp_server returns after ~10s with: 'Browser subagent execution error: empty execution result'
  6. The result only contains get_current_state at round 2, session marked as finished

Key Log Evidence

mcp_env.log shows the extension sends back:

  • msg_type: task_processing (not task_completed)
  • action: get_current_state (intermediate step, not final result)
  • Session immediately marked as finished by mcp_server

What works

  • mcporter list --schema: works (864ms)
  • relay ↔ extension connection: works (Chrome connects to relay)
  • Extension navigates and performs actions: works (user sees it)
  • Second call with same session_id: returns result file, but only contains [summary] without actual data

What does not work

  • First call returns empty execution result
  • Result file contains only summary, no collected data
  • Backend is hardcoded as claude_code in extension, api_url/api_key passed from mcp_server are ignored by extension

Possible causes

  1. mcp_server closes WebSocket connection before extension finishes task (race condition)
  2. Extension uses claude_code backend internally but has no Claude API key configured
  3. Result data is generated but not written to the result file (only summary)
  4. subagent_timeout or websocket_timeout too short for multi-page tasks

Suggested fixes

  • Allow configuring the extension backend (currently hardcoded claude_code)
  • Increase mcp_server wait time for extension results
  • Write full task data to result file, not just summary
  • Support resuming session to retrieve completed results

extent analysis

TL;DR

The most likely fix is to increase the subagent_timeout or websocket_timeout in mcp_server to allow the extension to finish tasks without being cut off.

Guidance

  • Verify the subagent_timeout and websocket_timeout values in mcp_server configuration to ensure they are sufficient for the task duration.
  • Check the extension's backend configuration to confirm it is using the expected API key and URL, rather than the hardcoded claude_code.
  • Test increasing the timeout values to see if it resolves the issue, starting with small increments to avoid introducing unnecessary delays.
  • Consider adding logging or debugging statements to the extension and mcp_server to better understand the communication flow and identify potential bottlenecks.

Example

No code snippet is provided as the issue does not specify the exact code or configuration files involved.

Notes

The provided information suggests a potential race condition or timeout issue, but further investigation is needed to confirm the root cause. The suggested fixes in the issue body provide a good starting point for troubleshooting.

Recommendation

Apply workaround: Increase the subagent_timeout or websocket_timeout in mcp_server configuration to allow the extension to finish tasks without being cut off, as this is a relatively simple change that can help mitigate the issue.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING