claude-code - 💡(How to fix) Fix [Bug] Claude-in-Chrome screenshot capture hangs on document_idle timeout despite page being idle

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…

Error Message

Error capturing screenshot: Page still loading (executeScript waited 45000ms for document_idle).

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description mcp__claude-in-chrome__computer screenshot fails on every page — document_idle 45s timeout

The screenshot (and zoom) action of the Claude-in-Chrome computer tool fails 100% of the time with: Error capturing screenshot: Page still loading (executeScript waited 45000ms for document_idle).

Not page-specific — confirmed by isolation:

  • Fails on https://example.com (trivial static page, no HMR, permissive CSP).
  • On a local page, a javascript_tool probe showed readyState:"complete", window.onload fired (~845ms), pendingCount:0 — i.e. the page is genuinely idle, yet capture still times out.

So it's a page-independent capture/injection failure in this environment, not HMR, dev-server, or app-CSP related (all ruled out).

Working in the same environment: javascript_tool, read_page, navigate, read_network_requests, tabs_*. Only the image-capture actions (screenshot, zoom) hang.

Impact: No visual verification possible; each attempt burns a 45s wait.

Suggested: capture independent of document_idle (e.g. chrome.tabs.captureVisibleTab, or a waitUntil/skipIdle/shorter-timeout option), since the current gate is unreachable here even on fully-idle pages.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.156
  • Feedback ID: 4a8f0e4e-9b2e-48d1-b86c-53f0bf7f001e

Errors

[]

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

claude-code - 💡(How to fix) Fix [Bug] Claude-in-Chrome screenshot capture hangs on document_idle timeout despite page being idle