Commit 27d0a1fc7 for llama.cpp

commit 27d0a1fc73f3a50bc32e13d13e163e462cc37316
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date:   Mon Nov 23 16:20:15 2026 +0100

    ui: unmount a closed collapsible's body after one transition (#32881)

    bits-ui rebuilds the Collapsible.Content snippet args when its close
    transition ends, which re-ran the region's effect and restarted the
    unmount timer, so a closed body stayed mounted for two transitions
    instead of one. Reading `open` through a derived keeps the effect from
    rerunning when only the args object changes.

    Assisted-by: Claude (Opus 5.5 Medium)

diff --git a/ui/lib/ui/src/lib/components/ui/collapsible/collapsible-region.svelte b/ui/lib/ui/src/lib/components/ui/collapsible/collapsible-region.svelte
index 991075339..f56af787a 100644
--- a/ui/lib/ui/src/lib/components/ui/collapsible/collapsible-region.svelte
+++ b/ui/lib/ui/src/lib/components/ui/collapsible/collapsible-region.svelte
@@ -18,8 +18,11 @@
 	// svelte-ignore state_referenced_locally
 	let contentMounted = $state(open);

+	// bits-ui rebuilds the snippet args (with `open`) when its transition ends; the derived keeps that from restarting the unmount timer
+	const isOpen = $derived(open);
+
 	$effect(() => {
-		if (open) {
+		if (isOpen) {
 			contentMounted = true;

 			return;
@@ -31,7 +34,7 @@
 	});
 </script>

-<div {...restProps} class={cn('collapsible-region', className)} data-expanded={open}>
+<div {...restProps} class={cn('collapsible-region', className)} data-expanded={isOpen}>
 	{#if contentMounted}
 		<div class="collapsible-region-content">
 			{@render children?.()}