Skip to content

fix: avoid cumulative page title timeouts - #2775

Closed
dennisimoo wants to merge 1 commit into
ChromeDevTools:mainfrom
dennisimoo:codex/bound-page-title-delay
Closed

dennisimoo wants to merge 1 commit into
ChromeDevTools:mainfrom
dennisimoo:codex/bound-page-title-delay

Conversation

@dennisimoo

@dennisimoo dennisimoo commented Sep 19, 2026 •

Copy link
Copy Markdown

Fetch page titles concurrently so the existing one-second timeouts overlap instead of adding up per unresponsive page. Reuses the current timeout and fallback, preserves output order, and skips hidden extension pages.

The mock-based regression reproduces three seconds of title-lookup delay before the fix and one second afterward. Tests cover extension visibility, out-of-order completion, and rejected lookups. This fixes cumulative title delay, not every cause of list_pages hangs.

Testing: npm run test -- tests/McpResponse.pageTitles.test.ts (3 passed) and npm run check-format passed. The full suite was attempted, then stopped after browser startup failures: this host has no usable Chrome sandbox and lacks stable Chrome for some tests.

AI-assisted with OpenAI Codex.

@dennisimoo
dennisimoo marked this pull request as ready for review September 19, 2026 02:57
@dennisimoo

Copy link
Copy Markdown
Author

Could a maintainer approve the pending CI runs? The three regression tests and local lint/format checks pass.

pull Bot pushed a commit to y1024/chrome-devtools-mcp that referenced this pull request Sep 30, 2026
Closes ChromeDevTools#2775

I think runtime fetches are not worth the complication. Instead we
should be able to rely on the CDP title state to differentiate targets.
@OrKoN OrKoN closed this in #2883 Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant