diff --git a/dev-dashboard/frontend/src/App.svelte b/dev-dashboard/frontend/src/App.svelte index 49f3d16402..68ffa5fc28 100644 --- a/dev-dashboard/frontend/src/App.svelte +++ b/dev-dashboard/frontend/src/App.svelte @@ -21,6 +21,7 @@ let showCreateDialog = $state(false); let creating = $state(false); let createProfile = $state("agent-only"); + let createName = $state(""); let visibleWorktrees = $derived( worktrees.filter((w) => w.path === "(here)" || w.branch === "main" || w.mux === "✓") @@ -47,12 +48,13 @@ } async function handleCreate() { - const branch = randomName(8); + const branch = createName.trim() || randomName(8); creating = true; try { await api.createWorktree(branch, createProfile); await api.openWorktree(branch); showCreateDialog = false; + createName = ""; await refresh(); selectedBranch = branch; } catch (err) { @@ -139,6 +141,16 @@ class="fixed inset-0 z-50 bg-sidebar text-primary border border-edge rounded-xl p-6 max-w-[380px] w-[90%] m-auto" >

New Worktree

+
+ + +
{#each PROFILES as profile}