fix: restore plan canvas process launcher

This commit is contained in:
Seekers2001
2026-09-27 11:02:31 +08:00
parent e482e57941
commit 5b65751bd5
3 changed files with 4 additions and 5 deletions
-2
View File
@@ -1,8 +1,6 @@
#!/usr/bin/env node
'use strict';
const { spawn } = require('child_process');
const {
createControlPaneServer,
parseArgs,
+1
View File
@@ -20,6 +20,7 @@
const fs = require('fs');
const http = require('http');
const path = require('path');
const { spawn } = require('child_process');
const {
canonicalizeArtifactPath,
createSessionStore,
+3 -3
View File
@@ -602,11 +602,11 @@ async function runTests() {
else failed++;
if (
await test('CLI browser opener handles spawn errors', async () => {
await test('CLI browser opener delegates spawn errors to the shared launcher', async () => {
const source = fs.readFileSync(SCRIPT, 'utf8');
assert.match(source, /child\.on\('error'/);
assert.match(source, /child\.unref\(\)/);
assert.match(source, /openBrowser: launchOpenBrowser/);
assert.match(source, /launchOpenBrowser\(url\)/);
})
)
passed++;