mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
- Add E2E_FORCE_DAEMON_HEALTH_UNREACHABLE env to simulate failed health checks - Log when replacing a failed daemon, but stay silent on cold starts - Simplify daemon-slow-health-check-preservation: use forced-unreachable health instead of SIGSTOP/SIGCONT - Add --no-sandbox flag to electron launch args for Ubuntu CI - Support extraEnv option in restart session launches
22 lines
762 B
TypeScript
22 lines
762 B
TypeScript
export function getOrcaElectronLaunchArgs(mainPath: string, headful: boolean): string[] {
|
|
if (headful || process.platform !== 'linux') {
|
|
return [mainPath]
|
|
}
|
|
|
|
// Why: Ubuntu CI cannot run Electron's setuid chrome-sandbox (not root-owned
|
|
// mode 4755 in node_modules). Playwright's electron.launch injects
|
|
// --no-sandbox automatically; raw spawn() paths (e.g. second-instance
|
|
// activation) must match or Chromium aborts with SIGTRAP before handshake.
|
|
// GPU flags keep headless under Xvfb on a software path when the GPU
|
|
// subprocess cannot initialize.
|
|
return [
|
|
'--no-sandbox',
|
|
'--disable-gpu',
|
|
'--disable-gpu-compositing',
|
|
'--disable-gpu-sandbox',
|
|
'--disable-dev-shm-usage',
|
|
'--in-process-gpu',
|
|
mainPath
|
|
]
|
|
}
|