Commit 0d36204
fix(link-daintree): correct family-gate fallback in fan-out import (#153)
When inferring a family from preset env (e.g. ANTHROPIC_* → "anthropic"),
the findVanilla() pool construction erroneously returned [] instead of all
candidates when no vanilla slot matched the inferred family.
Fix: change pool construction from:
familyMatch.length ? familyMatch : (family ? [] : candidates)
to:
familyMatch.length ? familyMatch : candidates
The family gate is still respected when matches exist; when it doesn't,
we correctly fall back to all candidates sorted by daintree_preset_id
then numeric suffix.
Co-authored-by: jobordu <jonathan@jonathanborduas.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 35d1118 commit 0d36204
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| |||
0 commit comments