{ if (isTabDrag(e)) { isDragging = false; return; } e.preventDefault(); isDragging = true; }} ondragleave={() => { isDragging = false; }} role="presentation" > {#if askUser && onaskuseranswer}
{/if} {#if tasks.length > 0}
{/if} {#if queuedMessages.length > 0}
{#each queuedMessages as qm (qm.id)} {})} onedit={onqueueedit ?? (() => {})} ondelete={onqueuedelete ?? (() => {})} /> {/each}
{/if} {#if showSlashCommands}
{#if slashCommandIds.length > 0}
{$t('chat.commands')}
{/if} {#if slashCommandIds.includes('compact')} {/if} {#if slashCommandIds.includes('plan')} {/if} {#if slashCommandIds.includes('fork')} {/if} {#if slashCommandIds.includes('status')} {/if} {#if slashCommandIds.includes('skills:list')} {/if} {#if slashCommandIds.includes('skills:create')} {/if} {#if slashSkillSuggestions.length > 0}
Skills
{#each slashSkillSuggestions as skill (skill.id)} {/each} {/if}
{/if}
{#if attachedUploads.length > 0}
{#each attachedUploads as upload}
{#if upload.loading}
{:else if upload.type === 'image'} {upload.name} {:else}
{upload.name}
{upload.type === 'file' ? 'File' : upload.type}
{/if}
{/each}
{/if}
{#if voiceModeEnabled}
{voiceStatusLabel}
{/if}
e.stopPropagation()} >
{ if (files) processFiles(Array.from(files)); }} oncapture={(file) => { processFiles([file]); }} /> {#if planMode} {/if}
{ inputText += text; }} />