Skip to content

Commit 41d5f1c

Browse files
Disable tracing for now due to Playwright MCP behavior (microsoft#273171)
Haven't been able to figure out how to get tracing working without issues... so reverting the change. Opened an issue here: microsoft/playwright-mcp#1166
1 parent 7734232 commit 41d5f1c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

test/mcp/src/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export async function getApplication({ recordVideo }: { recordVideo?: boolean }
260260
verbose: opts.verbose,
261261
remote: opts.remote,
262262
web: opts.web,
263-
tracing: true,
263+
tracing: opts.tracing,
264264
headless: opts.headless,
265265
browser: opts.browser,
266266
extraArgs: (opts.electronArgs || '').split(' ').map(arg => arg.trim()).filter(arg => !!arg),

test/mcp/src/automationTools/core.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export function applyCoreTools(server: McpServer, appService: ApplicationService
3737
'Stop the VS Code application',
3838
async () => {
3939
const app = await appService.getOrCreateApplication();
40-
await app.stopTracing('mcp', true);
4140
await app.stop();
4241
return {
4342
content: [{

test/mcp/src/playwright.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export async function getServer(app?: Application): Promise<Server> {
1212
const application = app ?? await getApplication();
1313
const connection = await createConnection(
1414
{
15-
capabilities: ['core', 'pdf', 'vision'],
16-
saveTrace: true
15+
capabilities: ['core', 'pdf', 'vision']
1716
},
1817
// eslint-disable-next-line local/code-no-any-casts
1918
() => Promise.resolve(application.code.driver.browserContext as any)

0 commit comments

Comments
 (0)