fix(projects): worktree-create sent repoPath but the server reads path (400)

The 'New worktree' form POSTed { repoPath, branch } to /projects/worktree, but
server.ts:706 and the documented contract (FEATURE_WALKAWAY_WORKBENCH FR-B3.1)
read body.path — so every browser worktree-create returned 400 'path and branch
are required' and git worktree add never ran. Send 'path' instead. The existing
worktree-form test had locked in the wrong key (asserted repoPath), which is why
it stayed green while the feature was broken; corrected to assert 'path'.
This commit is contained in:
Yaojia Wang
2026-07-12 19:03:53 +02:00
parent e7bfbe951d
commit 8be2b06564
2 changed files with 4 additions and 2 deletions

Binary file not shown.