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:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user