Trace summary says "no data for this page in CrUX" when CrUX lookups are disabled
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- observability
Direzione di ricerca
Start with src/tools/performance.ts around stopTracingAndAppendOutput and populateCruxData, then inspect the bundled PerformanceTraceFormatter at third_party/devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts and the configuration description in docs/configuration.md. Reproduce with --no-performance-crux and a loopback page. Done when the summary no longer implies a lookup found no data when none was requested, while the enabled-lookup no-data message remains appropriate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description of the bug
With --no-performance-crux, the server does not query the CrUX API, yet every performance trace summary prints Metrics (field / real users): n/a – no data for this page in CrUX. The line states that a lookup ran and found nothing, which is false for this configuration. An agent can pass that on as a fact about the page ("this page has no real-user data") when no lookup was made.
Actual behavior
Both builds, excerpt of the trace summary:
## insight set id: NAVIGATION_0
URL: http://127.0.0.1:PORT/min.html
...
- CLS: 0.00
Metrics (field / real users): n/a – no data for this page in CrUX
Available insights:
Reproduction
-
Serve any HTML page from a loopback HTTP server at
http://127.0.0.1:PORT/min.html(for example<!doctype html><title>min</title><h1>Hello</h1>). -
Start the server under test with the flags above (including
--no-performance-crux) and send:
{"name":"new_page","arguments":{"url":"http://127.0.0.1:PORT/min.html"}}
{"name":"performance_start_trace","arguments":{"pageId":2}}
The sequence was run once per build with identical results; every other untruncated trace summary recorded with --no-performance-crux (one more run per build in this investigation, earlier runs on both builds, and two further earlier runs on the release build) contained the same line. The default (--performance-crux enabled) was not exercised, because it sends the page URL to the CrUX API.
Expectation
docs/configuration.md describes --performanceCrux / --performance-crux as "Set to false to disable sending URLs from performance traces to CrUX API to get field performance data." With the lookup disabled, the summary should not claim that CrUX has no data for the page; it should say that field data was not requested (or omit the field-data line).
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 5ddb0a3110c5059f8e5513e566196cce2a35c6d1 (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 5ddb0a3110c5059f8e5513e566196cce2a35c6d1 (themainbuild). - Google Chrome 154.0.8037.98 stable, headless; Node v22.23.2; macOS 27.
- Both builds were started with
--headless --isolated --no-usage-statistics --no-performance-cruxandCHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1, and driven by a scripted stdio MCP client.
Evidence
- Expected source:
--performanceCruxdescription indocs/configuration.md(both builds). - Failure source: scripted MCP runs above on both builds. On the
mainbuild,stopTracingAndAppendOutputcallspopulateCruxDataonly whencontext.isCruxEnabled()(src/tools/performance.ts:230-232), and the summary text comes from the bundled DevToolsPerformanceTraceFormatter, which printsMetrics (field / real users): n/a – no data for this page in CrUXwhenever it has no CrUX field data for the insight set (third_party/devtools-frontend/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.ts:217-221), without distinguishing "not requested" from "no data". - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Fix check
With the steps above and --no-performance-crux, the trace summary no longer says "no data for this page in CrUX"; it states that field data was not requested or omits the field-data line. As a control, with CrUX enabled and a URL that CrUX has no data for, the existing "no data for this page in CrUX" text is still appropriate.
Additional context
The full open and closed issue and PR corpus was screened as of 2026-10-06; no issue covers this text. The string is produced by the DevTools frontend formatter that this package bundles, so the change may need to happen in how the server invokes or post-processes that formatter rather than in the formatter itself.
- Lingua principale
- TypeScript
- Stelle
- 59.8k
- Fork
- 4.8k
- Merge medio
- 2g 10h
- PR unite (30g)
- 162
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ChromeDevTools/chrome-devtools-mcp
-
feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
I maintainer di solito rispondono entro 1 giorno
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertacollecting-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
collecting-feedback feature
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`wait_for` never finds visible text whose HTML source contains line breaks or repeated spacesApertaconfirmed p3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Project Migration: Moving to devtools-frontendForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ChromeDevTools/chrome-devtools-mcp
Issue simili
-
[Bug]: Team (channel) avatars render noticeably smaller than agent avatars in the sidebar gridApertabug from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#21303 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ADORSYS-GIS/CoopData#282 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
OHDSI/Data2Evidence#3816 ·
I maintainer di solito rispondono entro 3 giorni
-
`ovsx verify` fails for a version older than the 100 newest of an extensionForse già presa @trivikr l’ha presa oggi. Apertacli
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
eclipse-openvsx/openvsx#2482 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug builder-vite hmr sev:S3
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
storybookjs/storybook#37965 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno