* 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
16 lines
474 B
TypeScript
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();
|
|
}
|