Fix desktop CLI passthrough tty handling (#791)

* Fix desktop CLI passthrough tty handling

* Fix desktop daemon manager test drift

* Update daemon stop test after main merge

* test(cli): isolate npx cache per CLI test
This commit is contained in:
Mohamed Boudra
2026-05-07 15:14:18 +08:00
committed by GitHub
parent 6fb2fe2283
commit faf664d803
20 changed files with 868 additions and 461 deletions
+15
View File
@@ -0,0 +1,15 @@
export interface DesktopStartupDependencies {
hasPendingOpenProjectPath: boolean;
runCliPassthroughIfRequested: () => Promise<boolean>;
inheritLoginShellEnv: () => void;
bootstrapGui: () => Promise<void>;
}
export async function runDesktopStartup(deps: DesktopStartupDependencies): Promise<void> {
if (!deps.hasPendingOpenProjectPath && (await deps.runCliPassthroughIfRequested())) {
return;
}
deps.inheritLoginShellEnv();
await deps.bootstrapGui();
}