From fa2f65e512279e0e24959c8a7f938f2cc9f7230c Mon Sep 17 00:00:00 2001 From: centdix Date: Sat, 21 Feb 2026 15:23:55 +0000 Subject: [PATCH] feat: add optional name input to worktree creation dialog Co-Authored-By: Claude Opus 4.6 --- dev-dashboard/frontend/src/App.svelte | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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}