* 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
18 lines
556 B
TypeScript
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?.();
|
|
}
|