{#snippet status()} {#if !pending} {statusTime} {/if} {/snippet} {#snippet previewChip()} {/snippet} (toggled = { id: message.tool_call_id, open: !expanded })} headerLeft={status} headerRight={previewTarget ? previewChip : undefined} class="scroll-mb-8" labelClass="font-main font-semibold text-primary" contentClass="p-0 overflow-hidden" > {#if formInPreview}
These inputs are open in the preview panel.
{:else if pending} {:else}
(userTab = { id: message.tool_call_id, value: e.detail })} class="h-8 px-3 font-main" wrapperClass="shrink-0" slidingIndicator > {#if !rawView} {#each tabs as tab (tab.value)} {#snippet extra()} {#if tab.value === 'logs' && logLineCount > 0} {logLineCount} {/if} {/snippet} {/each} {/if}
(jsonView = { id: message.tool_call_id, on: e.detail })} size="2xs" options={{ right: 'JSON', rightTooltip: 'Show this call as raw JSON' }} lightMode />
{#if rawView}
{:else} {#key activeTab}
{#if activeTab === 'input'} {:else if activeTab === 'logs'} {#if logs.trim()} {#if logs.length >= MAX_LOG_LENGTH}

Tail of the logs, the last {MAX_LOG_LENGTH} characters.

{/if}
{logs}
{:else}

No logs yet.

{/if} {#if running}
streaming
{/if} {:else if failed}
{message.error}
{:else if streaming} {:else if resultValue !== undefined} {:else if canceled}

{cancelReason}

{#if !ran}

The inputs it would have run with are on the Inputs tab.

{/if}
{:else}

This run returned no result.

{/if}
{/key} {/if}
{#if fades.bottom && fadeBody}
{#if activeTab === 'logs'}
{/if} {/if}
{#if running && chatJob}
{/if} {/if}