You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shopping-list silently drops ingredients more than two references deep #509
cook shopping-list expands recipe references two levels down and stops. Anything deeper is left out of the list, with no warning and exit code 0.
Reproduction
mkdir -p config
printf'Make @./b{} and add @salt{1%%tsp}.\n'> a.cook
printf'Make @./c{} and add @pepper{1%%tsp}.\n'> b.cook
printf'Make @./d{} and add @cumin{1%%tsp}.\n'> c.cook
printf'Add @paprika{1%%tsp}.\n'> d.cook
printf'[spices]\nsalt\npepper\ncumin\npaprika\n'> config/aisle.conf
cook shopping-list a.cook
[spices]
salt 1 tsp
pepper 1 tsp
cumin 1 tsp
paprika is missing. It is declared in d.cook, three references below a.cook. The same command on b.cook — the same chain, one level shorter — lists pepper, cumin and paprika, so the file and the reference path are fine.
cook doctor reports "All recipe references are valid" for the same collection.
Recursing would not reintroduce #424: the ancestors chain added for cycle detection already bounds it.
The mobile app
The Cook mobile app appears to stop a level earlier still. Ex: adding a main dish lists the 4 cloves of garlic declared in the prep recipe it references directly, but not the clove reached through the sauce it also references; but the CLI lists 5. Rewriting that same garlic as a plain ingredient inside the sauce made the app find it. Adding the menu above the main dish lists no garlic at all.
Context
Noticed with a weekly menu that references dinners, which reference sauces, which reference an aromatic prep recipe: garlic came out at 7 cloves instead of 11.
Activity
jsadowyj commentedon Sep 18, 2026
@dubadub Is this fixed in the mobile app too?
dubadub commentedon Sep 18, 2026
Not yet, working on it
fix(shopping-list): expand recipe references at every depth (#145)
fix(shopping-list): follow recipe references all the way down