Repository navigation
Description
Description of the bug
The chrome-devtools CLI waits at most 60 seconds for the daemon to answer a tool command, whatever the command's own parameters ask for. navigate_page 1 --url <slow page> --timeout 120000 against a page that responds after 75 seconds exits 1 after about 60 seconds with Failed to execute command: Error: Timeout waiting for daemon response and a stack trace, so the caller never receives the tool's result. On 1.10.1 the daemon keeps working and finishes the navigation after the CLI has already reported failure. The limit is a fixed constant in the CLI client, so no flag or environment variable raises it. Any tool command whose legitimate work exceeds 60 seconds is affected (slow navigations with a longer --timeout, wait_for with a longer --timeout, long traces or audits).
Actual behavior
Both builds, with the fixture and commands above (one run per build; an earlier run against an equivalent 75-second loopback page gave the same result):
[1.10.1] $ chrome-devtools navigate_page 1 --url http://127.0.0.1:8799/slow --timeout 120000 => exit 1, elapsed 60 s
stderr: Failed to execute command: Error: Timeout waiting for daemon response
at Timeout._onTimeout (.../build/src/daemon/client.js:117:20)
[1.10.1] $ chrome-devtools list_pages (25 s later; earlier run, equivalent page at /slow?ms=75000, no other command in between)
## Pages
1: slow (http://127.0.0.1:<port>/slow?ms=75000) [selected]
[main] $ chrome-devtools navigate_page 1 --url http://127.0.0.1:8799/slow --timeout 120000 => exit 1, elapsed 60 s
stderr: Failed to execute command: Error: Timeout waiting for daemon response
at Timeout._onTimeout (.../build/src/daemon/client.js:122:20)
[main] $ chrome-devtools list_pages (25 s later in the earlier run; in the rerun, after an extra --timeout 5000 call, the listing was the same)
Note: the browser was restarted or reconnected since the last call. Page ids have changed. Call list_pages to see open pages.
## Pages
2: about:blank [selected]
On 1.10.1 the navigation completed in the daemon after the CLI had exited 1, so the reported failure was false. On the main build the server additionally ends every tool call at 60 seconds and relaunches the browser (a separate server-side regression from #2699, reported separately), which is why page 1 is gone there. In the rerun, a navigate_page 1 --url "http://127.0.0.1:8799/slow" --timeout 5000 call made right after the CLI gave up took 29 seconds on 1.10.1 before returning Navigation timeout of 5000 ms exceeded, consistent with the daemon still working on the abandoned 120-second navigation.
Reproduction
- Start a loopback server that answers every request after 75 seconds and leave it running:
node -e "require('http').createServer((q, s) => setTimeout(() => s.end('<title>slow</title>slow'), 75000)).listen(8799, '127.0.0.1')" &- Run, timing the second command:
chrome-devtools start --headless --isolated --no-usage-statistics --no-performance-crux
time chrome-devtools navigate_page 1 --url "http://127.0.0.1:8799/slow" --timeout 120000; echo "exit=$?"
sleep 25
chrome-devtools list_pages
chrome-devtools stopExpectation
navigate_page documents timeout as "Maximum wait time in milliseconds. If set to 0, the default timeout will be used." (docs/tool-reference.md:234, from timeoutSchema in src/tools/ToolDefinition.ts:494-497 on the main build), with no upper bound in the schema. docs/cli.md presents the CLI commands as the server's tools invoked from the terminal, and the CLI applies no documented limit of its own. A CLI navigation with --timeout 120000 to a page that loads after 75 seconds should therefore wait for the daemon's answer and print the tool's own result (on success, Successfully navigated to ... with exit status 0). On 1.10.1 the daemon did finish this navigation (the page was listed with its loaded title afterwards), so the result existed but the CLI had stopped waiting for it.
MCP configuration
--headless --isolated --no-usage-statistics --no-performance-crux unless the reproduction states otherwise (update checks disabled with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1).
Chrome DevTools MCP version
1.10.1 (npm) and main 5ddb0a3 (local build)
Chrome version
154.0.8037.98 (stable)
Node version
v22.23.2
Operating system
macOS 27.0
Environment details
- chrome-devtools-mcp 1.10.1 from npm (the release build).
- chrome-devtools-mcp built from
mainat commit 5ddb0a3 (themainbuild; its--versionstill prints 1.10.1). - Google Chrome 154.0.8037.98 stable, headless; Node v22.23.2; macOS 27.
CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1; each build ran in its own fresh--sessionId.
Evidence
- Expected source:
navigate_pagetimeoutparameter indocs/tool-reference.md:234andsrc/tools/ToolDefinition.ts:494-497on themainbuild (same text at tagchrome-devtools-mcp-v1.10.1). - Failure source: CLI output quoted under Actual behavior; the client constant
const SEND_COMMAND_TIMEOUT = 60_000;used as the defaulttimeoutofsendCommand(src/daemon/client.ts:148-173on themainbuild;src/daemon/client.ts:140-164at tagchrome-devtools-mcp-v1.10.1), and the tool-command path callssendCommandwithout a timeout argument (src/bin/chrome-devtools.ts:256-263on themainbuild). - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
The full open and closed issue and PR corpus was screened as of 2026-10-06. No issue mentions Timeout waiting for daemon response. #2675 is an MCP-client timeout with --autoConnect in another host, not the CLI client.
Fix check
Failing now: with the fixture above, chrome-devtools navigate_page 1 --url "http://127.0.0.1:8799/slow" --timeout 120000 exits 1 after about 60 seconds with Failed to execute command: Error: Timeout waiting for daemon response. Restored: the CLI keeps waiting while the tool call is still within its own timeout and prints the daemon's own response for the call, so on a build without a server-side 60-second cap (1.10.1) the command prints Successfully navigated to http://127.0.0.1:8799/slow. after about 75 seconds and exits 0; on the main build, which ends tool calls at 60 seconds server-side, the command prints the server's tool-call result for that call instead of Timeout waiting for daemon response. Controls: in a fresh session, --timeout 5000 against the same page still returns the tool's Navigation timeout of 5000 ms exceeded result, and a daemon that never answers still produces a CLI-side error rather than an indefinite hang.
Additional context
On the main build, a separate server-side regression ends every tool call at 60 seconds and relaunches the browser; it is reported separately as "tool calls longer than 60 s close a healthy launched browser and lose every page" (from #2699). That report and this one have independent closure signals: fixing the server cap leaves the CLI client giving up at 60 seconds (as on 1.10.1), and fixing the CLI client alone lets main show the server's timeout error instead of the client's. A full end-to-end pass on main (navigation result after 75 seconds) needs both.
Activity
fix: respect tool timeouts in CLI daemon responses (ChromeDevTools#3443)