This commit is contained in:
Timothy Jaeryang Baek committed 2026-12-02 03:58:13 +04:00
1 parent e4264ec664
commit 05e2a6bbe2
82 files changed
+811 -213

No files matched your search

@@ -97,6 +97,38 @@
{:else}
{$i18n.t('Thinking...')}
{/if}
{:else if attributes?.type === 'steps'}
{#if attributes.done !== 'true'}
{#if typeof attributes.duration !== 'number' || attributes.duration < 1}
{$i18n.t('Working...')}
{:else if attributes.duration < 60}
{$i18n.t('Working for {{DURATION}} seconds', {
DURATION: Math.round(attributes.duration)
})}
{:else}
{$i18n.t('Working for {{DURATION}}', {
DURATION: dayjs
.duration(attributes.duration, 'seconds')
.locale($i18n.language)
.humanize()
})}
{/if}
{:else if typeof attributes.duration !== 'number'}
{$i18n.t('Worked')}
{:else if attributes.duration < 1}
{$i18n.t('Worked for less than a second')}
{:else if attributes.duration < 60}
{$i18n.t('Worked for {{DURATION}} seconds', {
DURATION: Math.round(attributes.duration)
})}
{:else}
{$i18n.t('Worked for {{DURATION}}', {
DURATION: dayjs
.duration(attributes.duration, 'seconds')
.locale($i18n.language)
.humanize()
})}
{/if}
{:else if attributes?.type === 'code_interpreter'}
{#if attributes?.done === 'true' || messageDone}
{$i18n.t('Analyzed')}
@@ -87,6 +87,7 @@
let renderMarkdownInUserMessages = true;
let renderMarkdownInAssistantMessages = true;
let expandDetails = false;
let collapseIntermediateSteps = false;
let chatHoverPreview = true;
let renderMarkdownInPreviews = true;
let showChatTitleInTab = true;
@@ -367,6 +368,7 @@
renderMarkdownInUserMessages = currentSettings?.renderMarkdownInUserMessages ?? true;
renderMarkdownInAssistantMessages = currentSettings?.renderMarkdownInAssistantMessages ?? true;
expandDetails = currentSettings?.expandDetails ?? false;
collapseIntermediateSteps = currentSettings?.collapseIntermediateSteps ?? false;
chatHoverPreview = currentSettings?.chatHoverPreview ?? true;
renderMarkdownInPreviews = currentSettings?.renderMarkdownInPreviews ?? true;
@@ -1459,6 +1461,33 @@
</p>
</div>
<div>
<div class={settingRowClass}>
<label
id="collapse-intermediate-steps-label"
class={settingLabelClass}
for="collapse-intermediate-steps-label-control"
>
{$i18n.t('settings.personal.interface.collapseIntermediateSteps.label')}
</label>
<div class={settingControlClass}>
<Switch
ariaLabelledbyId="collapse-intermediate-steps-label"
tooltip={true}
bind:state={collapseIntermediateSteps}
inherited={isDefaultSetting('collapseIntermediateSteps')}
on:change={() => {
saveSettings({ collapseIntermediateSteps });
}}
/>
</div>
</div>
<p class={settingDescriptionClass}>
{$i18n.t('settings.personal.interface.collapseIntermediateSteps.description')}
</p>
</div>
<div>
<div class={settingRowClass}>
<label
@@ -59,7 +59,7 @@
$: if (!open) expandedResult = false;
export let buttonClassName =
'py-1 text-[0.9375rem] text-base-500 hover:text-base-700 dark:hover:text-base-300 transition';
'py-1 text-[0.9375rem] text-base-400 dark:text-base-500 hover:text-base-500 dark:hover:text-base-400 transition';
const componentId = id || uuidv4();
@@ -309,9 +309,8 @@
<div class="flex-1 min-w-0 flex items-baseline gap-1.5">
<div class="min-w-0 line-clamp-1">
<!-- Short label (below md) -->
<span
class="@md:hidden text-base-1000 dark:text-base-0"
title={displayLabel ? attributes.name : undefined}>{displayLabel || toolName}</span
<span class="@md:hidden" title={displayLabel ? attributes.name : undefined}
>{displayLabel || toolName}</span
>
<!-- Full label (md and above) -->
<span