{#if loading}
Loading workspaces…
{:else if error}
{error}
{:else if activeWorkspaces.length === 0}
No active workspaces.
{:else if filteredWorkspaces.length === 0}
No workspaces match your search.
{:else}
{#each filteredWorkspaces as w (w.workspace_id)}
{/each}
{/if}
{/if}
Launches a fresh Agent in this directory with a fresh transcript.
{:else if target === "worktree"}
Creates a worktree from the source directory and launches a fresh Agent inside it.
{/if}
{#if failure}