mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-20 12:17:41 +08:00
Review asked for copy to be synchronous instead of falling back to a `/item` round trip: `/list` already returned the whole item and it is in `cache`, so the URL is in hand. Removing the awaited hop matters beyond latency — the `execCommand` tier needs the click's user-gesture window, and an await can spend it before the write happens. An empty URL still toasts instead of silently "succeeding", and the copy handler no longer awaits anything. Verified in a real blob: iframe with the real sandbox: the click issues no `/item` request at all, the clipboard ends up byte-identical to the expected absolute URL, and it still does with `navigator.clipboard` deleted. Co-authored-by: multica-agent <github@multica.ai>