feat(maestro): "Spawn similar" catalog action + spawn-history/gitroot e2e (#28)
ci / rust (push) Successful in 4m15s
ci / rust (push) Successful in 4m15s
Web: rename the per-row clone affordance to "Spawn similar" — it reopens the revamped spawn form pre-seeded from the session's host, dir, command (matched back to a preset by the form), and label, but with a freshly generated name since it's a new session. Built entirely on the existing prefill machinery; the custom event is renamed `catalog-spawn-similar`. e2e (maestro-e2e): against real tmux + git, spawn into a git repo dir and assert (1) the daemon's recent-dirs endpoint surfaces that dir with its command — what #27's recents picker reads on the next form open — proving the durable spawn-history write, and (2) gitroot infers the enclosing repo as the worktree base_repo. Closes #28 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ function leafRow(opts: {
|
||||
${opts.cmd !== opts.name ? `<span class="leaf-meta"><span class="leaf-cmd">${opts.cmd}</span></span>` : ""}
|
||||
${opts.status === "dead" ? `<span class="leaf-badge">exited</span>` : ""}
|
||||
<span class="leaf-actions">
|
||||
<button class="leaf-act leaf-clone" type="button" title="Clone" aria-label="Clone ${opts.name}">⧉</button>
|
||||
<button class="leaf-act leaf-clone" type="button" title="Spawn similar" aria-label="Spawn similar to ${opts.name}">⧉</button>
|
||||
<button class="leaf-act leaf-kill" type="button" title="Kill session" aria-label="Kill ${opts.name}">✕</button>
|
||||
</span>`;
|
||||
return row;
|
||||
|
||||
Reference in New Issue
Block a user