From e318a99255deb3aec35e0b31f68ec9e053452118 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Tue, 25 Aug 2026 13:55:58 +0200 Subject: [PATCH] fix(ai-sessions): strip pastes, restore known payloads, handle mirrored clear Co-Authored-By: Claude Opus 5 --- .../copilot/chat/AIChatDisplay.svelte | 5 +- .../copilot/chat/AIChatManager.svelte.ts | 16 +++ .../components/sessions/sessionMirror.test.ts | 34 +++++- .../sessions/sessionMirrorPayload.ts | 105 ++++++++++++++---- .../sessions/sessionRuntime.svelte.ts | 32 ++++-- 5 files changed, 160 insertions(+), 32 deletions(-) diff --git a/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte b/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte index c68945695b..c79a793bb7 100644 --- a/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte +++ b/frontend/src/lib/components/copilot/chat/AIChatDisplay.svelte @@ -651,7 +651,10 @@ the panel, or the Escape-to-stop focus check would wrongly reject them. --> {/snippet}