Files
paseo/packages/desktop/src/desktop-startup.ts
T
Mohamed BoudraandGitHub 76a5edb020 Open existing agents from links and the CLI (#2324)
* feat(desktop): open existing agents from links

Register a stable agent deep link and route it through the existing Desktop window. Add a matching CLI command that resolves the local server and activates the requested agent without creating or messaging it.

* fix(desktop): recover agent link delivery
2026-07-22 18:31:12 +02:00

18 lines
556 B
TypeScript

export interface DesktopStartupDependencies {
hasPendingGuiLaunchRequest: boolean;
runCliPassthroughIfRequested: () => Promise<boolean>;
inheritLoginShellEnv: () => void;
bootstrapGui: () => Promise<void>;
autoUpdateInstalledSkills?: () => void;
}
export async function runDesktopStartup(deps: DesktopStartupDependencies): Promise<void> {
if (!deps.hasPendingGuiLaunchRequest && (await deps.runCliPassthroughIfRequested())) {
return;
}
deps.inheritLoginShellEnv();
await deps.bootstrapGui();
deps.autoUpdateInstalledSkills?.();
}