From 5e09c501713ebbe05b28ce0084eca641f0dbe95c Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 24 Jun 2026 10:21:17 +0200 Subject: [PATCH] fix(frontend): keep #content portal target present on AI-session route (#9754) The global fork modal (and other modals) portal into `#content`, but that element only existed in AiChatLayout's `!disableAi` branch. On the AI-session route `disableAi` is true, so the `{:else}` branch rendered without `#content`, and opening the fork modal there threw "No element found matching css selector: #content". Give the else-branch container the same `id` so the portal target is always present in this layout. Co-authored-by: Claude Opus 4.8 (1M context) --- frontend/src/lib/components/copilot/chat/AiChatLayout.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/lib/components/copilot/chat/AiChatLayout.svelte b/frontend/src/lib/components/copilot/chat/AiChatLayout.svelte index 33112b43e8..0886bbc445 100644 --- a/frontend/src/lib/components/copilot/chat/AiChatLayout.svelte +++ b/frontend/src/lib/components/copilot/chat/AiChatLayout.svelte @@ -101,6 +101,7 @@ {:else}