Route ACP observer traffic over relay (#421)

Signed-off-by: Tyler Longwell <tlongwell@squareup.com>
Co-authored-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com>
Co-authored-by: Tyler Longwell <tlongwell@squareup.com>
This commit is contained in:
Bradley Axen
2026-04-30 06:34:37 -07:00
committed by GitHub
parent 0e9c02da2d
commit fcec10547d
38 changed files with 2270 additions and 687 deletions

View File

@@ -1,12 +1,13 @@
import { invokeTauri } from "@/shared/api/tauri";
import { sendAgentObserverControl } from "@/shared/api/observerRelay";
import type { CancelManagedAgentTurnResult } from "@/shared/api/types";
export async function cancelManagedAgentTurn(
pubkey: string,
channelId: string,
): Promise<CancelManagedAgentTurnResult> {
return invokeTauri<CancelManagedAgentTurnResult>(
"cancel_managed_agent_turn",
{ pubkey, channelId },
);
await sendAgentObserverControl(pubkey, {
type: "cancel_turn",
channelId,
});
return { status: "sent" };
}