{#snippet status()} {#if !pending && !inspected} {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-medium text-primary" contentClass="p-0 overflow-hidden" > {#if formInPreview}
These inputs are open in the preview panel.
{:else if pending && runForm} {:else}
(userTab = { id: message.tool_call_id, value: e.detail })} class="h-8 px-3 font-main" wrapperClass="shrink-0" slidingIndicator > {#if !rawView && !jobPending} {#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 if jobPending}
{#if fetchFailed === message.tool_call_id} This run could not be read. It may have been deleted, or be in another workspace. Its result is on the JSON toggle. {:else} Loading this run... {/if}
{: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}

{inspectedJob?.logsFailed ? 'Logs could not be read.' : running ? 'No logs yet.' : 'No logs.'}

{/if} {#if running && !inspected}
streaming
{/if} {:else if !inspected && 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}