{#if disabled} {:else}
{#if directTerminals.length > 0}
{$i18n.t('Direct')}
{#each directTerminals as terminal}
{/each} {/if} {#each systemSections as section}
{section.devices ? $i18n.t('Your devices') : section.managed ? $i18n.t('Terminals') : $i18n.t('System')} {#if section.managed} {:else if !section.devices && $user?.role === 'admin'} {/if}
{#each section.terminals as terminal}
{#if terminal.scope !== 'chat' || isSavedChatId($activeChatId)}
{/if}
{:else} {/each} {/each}
{/if}
{#if info} {#key info} (info = null)} /> {/key} {/if} {#if folderTarget && (selectedSystemTerminal?.scope !== 'chat' || isSavedChatId(chatId))} {#key `${$user?.id}:${folderTarget.selector}:${chatId ?? ''}`} { if (isSavedChatId(chatId)) { await updateChatById(localStorage.token, chatId!, { working_directory: path }); } }} {disabled} /> {/key} {/if} {#if showTerminals} {/if}