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
This commit is contained in:
@@ -5,7 +5,7 @@ describe("desktop startup", () => {
|
||||
it("runs CLI passthrough before GUI login-shell env inheritance", async () => {
|
||||
const calls: string[] = [];
|
||||
await runDesktopStartup({
|
||||
hasPendingOpenProjectPath: false,
|
||||
hasPendingGuiLaunchRequest: false,
|
||||
runCliPassthroughIfRequested: vi.fn(async () => {
|
||||
calls.push("cli");
|
||||
return true;
|
||||
@@ -22,7 +22,7 @@ describe("desktop startup", () => {
|
||||
it("keeps login-shell env inheritance on normal GUI startup", async () => {
|
||||
const calls: string[] = [];
|
||||
await runDesktopStartup({
|
||||
hasPendingOpenProjectPath: false,
|
||||
hasPendingGuiLaunchRequest: false,
|
||||
runCliPassthroughIfRequested: vi.fn(async () => {
|
||||
calls.push("cli");
|
||||
return false;
|
||||
@@ -39,7 +39,7 @@ describe("desktop startup", () => {
|
||||
it("starts skills auto-update after GUI startup", async () => {
|
||||
const calls: string[] = [];
|
||||
await runDesktopStartup({
|
||||
hasPendingOpenProjectPath: false,
|
||||
hasPendingGuiLaunchRequest: false,
|
||||
runCliPassthroughIfRequested: vi.fn(async () => {
|
||||
calls.push("cli");
|
||||
return false;
|
||||
@@ -59,7 +59,7 @@ describe("desktop startup", () => {
|
||||
const calls: string[] = [];
|
||||
|
||||
await runDesktopStartup({
|
||||
hasPendingOpenProjectPath: true,
|
||||
hasPendingGuiLaunchRequest: true,
|
||||
runCliPassthroughIfRequested,
|
||||
inheritLoginShellEnv: vi.fn(() => calls.push("env")),
|
||||
bootstrapGui: vi.fn(async () => {
|
||||
|
||||
Reference in New Issue
Block a user