This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit a326015
fix(flowctl): auto-create .flow/ symlink in worktree environments
When a worker runs in a Claude Code isolation worktree, .flow/ may not
exist because the worktree was created outside flow-code's worktree kit.
Change ensure_flow_exists() in workflow commands to auto-create the
symlink via ensure_flow_symlink() instead of just erroring.
This makes workers self-healing: the first flowctl command in a new
worktree will create the .flow/ → .git/flow-state/flow/ symlink
automatically.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0bb64f9 commit a326015
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
0 commit comments