fix(cli): tolerate legacy daemon flag (#1097)

This commit is contained in:
Bohdan Triapitsyn
2026-05-03 21:38:45 +03:00
parent 6595322f1a
commit 9964dcdb99
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -891,7 +891,7 @@ export class ElectronSshManager {
if (secret) {
envPrefix += ` OPENCHAMBER_UI_PASSWORD=${shellQuote(secret)}`;
}
const output = await runRemoteCommand(parsed, controlPath, `${envPrefix} openchamber serve --daemon --hostname 127.0.0.1 --port ${desiredPort}`);
const output = await runRemoteCommand(parsed, controlPath, `${envPrefix} openchamber serve --hostname 127.0.0.1 --port ${desiredPort}`);
const port = output.split(/\s+/).map((token) => Number.parseInt(token, 10)).find((value) => Number.isFinite(value));
return port || desiredPort;
}