| Filename | Latest commit message | Latest commit date |
|---|---|---|
The memoisation cache in _expand_links_recursive() stores the expanded value of a link node. A link node that is first reached via another link, and later visited by the normal tree walk, is expanded only once; the cached result object is then returned as-is for the second location. Both places in the output tree end up holding the same dict, so mutating one of them silently mutates the other. Deepcopy the value on every cache read so that each place in the output tree holds an independent object. Add a regression test that mutates one cached location and checks the others stay untouched. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2 Signed-off-by: Jan Lindemann <jan@janware.com> |
||
| .. | ||
| jw | ||
| Makefile | ||