Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
fix(emulator): launch scrcpy through the background process wrapper (#35566)
OrcaWin71918d4a7835
diff --git a/src/main/emulator/android/scrcpy-stream-session.ts b/src/main/emulator/android/scrcpy-stream-session.tsindex 7ea6fea85c6..992d54eb8cf 100644--- a/src/main/emulator/android/scrcpy-stream-session.ts+++ b/src/main/emulator/android/scrcpy-stream-session.ts@@ -1,4 +1,5 @@-import { spawn, type ChildProcess } from 'node:child_process'+import type { ChildProcess } from 'node:child_process'+import { spawnProcess } from '@orca/process-host'import { connect, type Socket } from 'node:net'import { randomBytes } from 'node:crypto'import { RelayFrameBuffer } from '../../../shared/relay-frame-buffer'@@ -114,7 +115,9 @@ export class ScrcpyStreamSession {private spawnServer(): void {const { sdk, serial, maxSize } = this.options// The command runner's timeout is unsuitable for the long-running server.- this.server = spawn(sdk.adb, startScrcpyServerArgs(serial, { scid: this.scid, maxSize }), {+ this.server = spawnProcess({+ program: sdk.adb,+ args: startScrcpyServerArgs(serial, { scid: this.scid, maxSize }),stdio: ['ignore', 'pipe', 'pipe']})let serverLog = ''