[eric] agents: labelling a tool group after a restart loads the chat from disk instead of 500ing; copy-as-image stops fetching CSP-blocked fonts

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012G8kyALnPjsA7aJFmMBq3R
This commit is contained in:
ciregenz
2026-09-01 16:10:49 -07:00
co-authored by Claude Fable 5.1
parent 37c44294a1
commit 17ebd689f6
5 changed files with 69 additions and 3 deletions
@@ -55,7 +55,8 @@ const WidgetCopyChip: React.FC<WidgetCopyChipProps> = ({ component, props, conta
const node = containerRef.current;
if (node) {
// Visuals (chart, stats, map, image...) copy as a real image; 2x for retina-crisp pastes.
const dataUrl = await toPng(node as HTMLElement, { pixelRatio: 2 });
// skipFonts: the Google Fonts stylesheets are CSP-blocked for fetch, so embedding them only logs errors and changes nothing.
const dataUrl = await toPng(node as HTMLElement, { pixelRatio: 2, skipFonts: true });
const blob = await (await fetch(dataUrl)).blob();
await navigator.clipboard.write([new ClipboardItem({ 'image/png': blob })]);
flashCopied();
+1 -1
View File
@@ -1202,7 +1202,7 @@ async function enumerateCandidates(wv: BrowserWebview): Promise<RankItem[]> {
await walkSession(child.sessionId, _AX_CHILD_TIMEOUT_MS, 'child frame');
}
if (framesDropped > 0) {
console.log(`[cdp] enumerateCandidates capped at ${_MAX_TOTAL_FRAMES} frames; dropped ${framesDropped}`);
console.debug(`[cdp] enumerateCandidates capped at ${_MAX_TOTAL_FRAMES} frames; dropped ${framesDropped}`);
}
return candidates;
}