Skip to content

Chrome DevTools for coding agents

fix: enforce .gz instead of json.gz in performance tools (#2305)

Alex Rudenkob06e39b164f0
diff --git a/src/tools/ToolDefinition.ts b/src/tools/ToolDefinition.ts
index e135344b..36948e2a 100644
--- a/src/tools/ToolDefinition.ts
+++ b/src/tools/ToolDefinition.ts
@@ -185,7 +185,7 @@ export type SupportedExtensions =
| '.html'
| '.txt'
| '.csv'
- | '.json.gz';
+ | '.gz';
/**
* Only add methods used by tools/*.
diff --git a/src/tools/performance.ts b/src/tools/performance.ts
index 1d3c527f..a41d20bb 100644
--- a/src/tools/performance.ts
+++ b/src/tools/performance.ts
@@ -205,7 +205,7 @@ async function stopTracingAndAppendOutput(
const file = await context.saveFile(
dataToWrite,
filePath,
- filePath.endsWith('.gz') ? '.json.gz' : '.json',
+ filePath.endsWith('.gz') ? '.gz' : '.json',
);
response.appendResponseLine(
`The raw trace data was saved to ${file.filename}.`,