Merge remote-tracking branch 'origin/blitz/spawn-v2' into spawn-v2/95-project-picker

# Conflicts:
#	web/src/spawnFormWorktree.test.ts
This commit is contained in:
Miguel Palhas
2026-08-24 15:09:05 +01:00
6 changed files with 466 additions and 28 deletions
+3 -1
View File
@@ -132,11 +132,13 @@ describe("spawnForm worktree defaults and branch picker (#61)", () => {
it("still probes the gitroot for a free-text directory", async () => {
const form = await mount();
// Escape hatch: switch to a free-text dir; only now does /api/gitroot fire.
// Escape hatch: switch to a free-text dir; only now does /api/gitroot
// fire — debounced, so the quiet period must elapse first (#74).
form.querySelector<HTMLElement>(".project-other")!.click();
const raw = form.querySelector<HTMLInputElement>("input[name=cwd_raw]")!;
raw.value = "/opt/somewhere";
raw.dispatchEvent(new Event("input"));
await vi.advanceTimersByTimeAsync(250);
await drain();
expect(urls.some((u) => u.includes("/api/gitroot"))).toBe(true);