{ 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')}
e.preventDefault()} onclick={() => { runSlashCommand('compact'); }} onmouseenter={() => selectSlashCommand('compact')} >
{$t('chat.commandCompact')}
{$t('chat.commandCompactPercent', { percent: contextPercent })}
{/if} {#if slashCommandIds.includes('plan')}
e.preventDefault()} onclick={() => { runSlashCommand('plan'); }} onmouseenter={() => selectSlashCommand('plan')} >
{$t('chat.commandPlan')}
{planMode ? $t('chat.commandPlanOn') : $t('chat.commandPlanOff')}
{/if} {#if slashCommandIds.includes('fork')}
e.preventDefault()} onclick={() => { runSlashCommand('fork'); }} onmouseenter={() => selectSlashCommand('fork')} >
{$t('chat.commandFork')}
{$t('chat.commandForkDesc')}
{/if} {#if slashCommandIds.includes('status')}
e.preventDefault()} onclick={() => { runSlashCommand('status'); }} onmouseenter={() => selectSlashCommand('status')} >
{$t('chat.commandStatus')}
{$t('chat.commandStatusDesc')}
{/if} {#if slashCommandIds.includes('skills:list')}
e.preventDefault()} onclick={() => { runSlashCommand('skills:list'); }} onmouseenter={() => selectSlashCommand('skills:list')} >
List skills
/skills:list
{/if} {#if slashCommandIds.includes('skills:create')}
e.preventDefault()} onclick={() => { runSlashCommand('skills:create'); }} onmouseenter={() => selectSlashCommand('skills:create')} >
Create skill
/skills:create
{/if} {#if slashSkillSuggestions.length > 0}
Skills
{#each slashSkillSuggestions as skill (skill.id)}
e.preventDefault()} onclick={() => { runSlashSkill(skill); }} onmouseenter={() => selectSlashSkill(skill.id)} >
{skill.label}
{#if skill.source && skill.source !== 'workspace'}
{skill.source}
{/if}
{/each} {/if}
{/if}
{#if attachedUploads.length > 0}
{#each attachedUploads as upload}
{#if upload.loading}
{:else if upload.type === 'image'}
{:else}
{upload.name}
{upload.type === 'file' ? 'File' : upload.type}
{/if}
removeUpload(upload.id)} aria-label={$t('chat.removeUpload')} >
{/each}
{/if}
{#if voiceModeEnabled}
{voiceStatusLabel}
{/if}
e.stopPropagation()} >
{ if (files) processFiles(Array.from(files)); }} oncapture={(file) => { processFiles([file]); }} /> {#if planMode}
onplan?.()} >
{/if}
{ inputText += text; }} />