fix(lanes): wait for worktree provisioning before auto-setup

POST /worktree answers with 202 before the background git worktree
add finishes, so profileInit/agentsInstall/mcpSync were racing the
lane's own directory into existence and mostly failing. Poll
GET /api/lanes/:id until provisioning leaves "provisioning" first.
This commit is contained in:
2026-08-06 14:28:21 +07:00
parent e31d261fd7
commit 54299f119e
4 changed files with 75 additions and 10 deletions
+1
View File
@@ -21,6 +21,7 @@
"addLaneBaseLabel": "Branch to fork from",
"addLaneNoBranches": "This repo has no commits yet — the worktree will start empty.",
"addLaneNotARepo": "Not a git repository (or no read access) yet.",
"addLaneProvisionFailed": "Worktree provisioning failed or timed out — the lane exists but auto-setup was skipped. Check the lane's git facts, then run agents/mcp setup manually.",
"addLaneRepoHint": "An existing git repo. The dashboard creates a new worktree for the lane, not a folder you pick.",
"addLaneRepoLabel": "Source repository",
"addLaneSetupAgents": "Agents",