Files
paseo/packages/desktop/src/desktop-startup.ts
T
Mohamed BoudraandGitHub faf664d803 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
2026-05-07 15:14:18 +08:00

16 lines
474 B
TypeScript

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();
}