Polish agent and team sharing and snapshots (#1852)

This commit is contained in:
klopez4212
2026-07-15 18:19:03 +01:00
committed by GitHub
parent c5996e13a4
commit 2f3fa586f3
54 changed files with 4212 additions and 3402 deletions

View File

@@ -9426,6 +9426,9 @@ export function maybeInstallE2eTauriMocks() {
return true;
case "copy_image_to_clipboard":
return;
case "copy_text_to_clipboard":
await navigator.clipboard.writeText((payload as { text: string }).text);
return;
case "get_event":
return handleGetEvent(
payload as Parameters<typeof handleGetEvent>[0],
@@ -9585,7 +9588,10 @@ export function maybeInstallE2eTauriMocks() {
case "get_relay_self":
if ((activeConfig?.mock?.relaySelfDelayMs ?? 0) > 0) {
await new Promise((resolve) =>
window.setTimeout(resolve, activeConfig?.mock?.relaySelfDelayMs),
window.setTimeout(
resolve,
activeConfig?.mock?.relaySelfDelayMs ?? 0,
),
);
}
return activeConfig?.mock?.relaySelf ?? null;