This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-12 01:26:21 -05:00
1 parent fd7b3431b6
commit f8d18fc71a
3 files changed
+13 -10

No files matched your search

@@ -16,9 +16,9 @@
import { t } from '$lib/i18n';
interface Props {
content: string;
meta?: Record<string, any> | null;
done: boolean;
content: string;
meta?: Record<string, any> | null;
done: boolean;
output: any[] | null;
usage: Record<string, number> | null;
chatId: string | null;
@@ -35,9 +35,9 @@
onspeak?: () => void;
}
let {
content,
meta = null,
done,
content,
meta = null,
done,
output,
usage,
chatId,
@@ -61,7 +61,7 @@
let showUsageTooltip = $state(false);
let collapsedFiles = $state<Record<string, boolean>>({});
let textareaEl: HTMLTextAreaElement;
const isTimer = $derived(meta?.timer === true);
const isTimer = $derived(meta?.internal === true && meta?.type === 'timer');
async function startEdit() {
edit = true;
@@ -454,7 +454,10 @@
<!-- Normal display -->
<div>
{#if isTimer}
<div class="mb-1 text-[0.75rem] font-medium text-gray-500 dark:text-gray-400">Timer</div>
<div class="mb-2 flex items-center gap-2 text-[0.6875rem] font-medium text-gray-400 dark:text-gray-600">
<span>Timer</span>
<span class="h-px flex-1 bg-gray-100 dark:bg-white/8"></span>
</div>
{/if}
{#if !done && (!output || output.length === 0)}
<MarkdownRenderer {content} /><span
@@ -1669,7 +1669,7 @@
>
<div
aria-hidden="true"
class="pointer-events-none absolute inset-0 -bottom-10 -z-10 bg-linear-to-b from-white/90 via-40% via-white/50 to-97% to-transparent dark:from-gray-900/90 dark:via-gray-900/50 dark:to-transparent"
class="pointer-events-none absolute inset-0 -bottom-10 -z-10 bg-linear-to-b from-white via-40% via-white/90 to-97% to-transparent dark:from-gray-900 dark:via-gray-900/90 dark:to-transparent"
></div>
<div
class="min-w-0 flex-1 truncate text-[0.6875rem] font-medium text-gray-600 dark:text-gray-400"
+1 -1
View File
@@ -150,7 +150,7 @@ async def _launch_timer(timer, app) -> None:
parent_id=parent_id,
model=target.full_model_id,
done=False,
meta={"timer": True},
meta={"internal": True, "type": "timer"},
created_at=now_ms(),
)
await Chat.update_current_message(parent.id, assistant_msg.id, now_ms())