Skip to content

Commit 530e7e5

Browse files
committed
cherry-pick(#4004): fix(cli): kill-all should kill dashboard
1 parent 9aa216c commit 530e7e5

File tree

1 file changed

+2
-2
lines changed
  • packages/playwright-core/src/tools/cli-client

1 file changed

+2
-2
lines changed

packages/playwright-core/src/tools/cli-client/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async function killAllDaemons(): Promise<void> {
231231
const result = execSync(
232232
`powershell -NoProfile -NonInteractive -Command `
233233
+ `"Get-CimInstance Win32_Process `
234-
+ `| Where-Object { $_.CommandLine -like '*run-mcp-server*' -or $_.CommandLine -like '*run-cli-server*' -or $_.CommandLine -like '*cli-daemon*' } `
234+
+ `| Where-Object { $_.CommandLine -like '*run-mcp-server*' -or $_.CommandLine -like '*run-cli-server*' -or $_.CommandLine -like '*cli-daemon*' -or $_.CommandLine -like '*dashboardApp.js*' } `
235235
+ `| ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue; $_.ProcessId }"`,
236236
{ encoding: 'utf-8' }
237237
);
@@ -245,7 +245,7 @@ async function killAllDaemons(): Promise<void> {
245245
const result = execSync('ps aux', { encoding: 'utf-8' });
246246
const lines = result.split('\n');
247247
for (const line of lines) {
248-
if (line.includes('run-mcp-server') || line.includes('run-cli-server') || line.includes('cli-daemon')) {
248+
if (line.includes('run-mcp-server') || line.includes('run-cli-server') || line.includes('cli-daemon') || line.includes('dashboardApp.js')) {
249249
const parts = line.trim().split(/\s+/);
250250
const pid = parts[1];
251251
if (pid && /^\d+$/.test(pid)) {

0 commit comments

Comments
 (0)