{#if isAsyncSubagentResult}
{#if asyncExpanded}
{content}
{/if}
{:else if edit}
{:else} {#if meta?.files?.length > 0}
{#each meta.files as upload}
{#if upload.type === 'image'} {upload.name {:else}
{upload.name || 'File'}
{upload.type === 'file' ? 'File' : upload.type || 'File'}
{/if}
{/each}
{/if}
{#each parsedContent as segment}{#if segment.type === 'text'}{segment.value}{:else}{@const isDir = segment.path.endsWith('/')}{@const cleanPath = isDir ? segment.path.slice(0, -1) : segment.path}{/if}{/each}
{#if siblingTotal > 1 || onedit} {/if} {/if}