Commit 9a14235
fix(test): use replace newline, not collapse whitespace, to undo wrap
Previous fix used ``" ".join(out.split())`` which turned
``memori\nes.json`` into ``memori es.json`` — a stray space mid-token
that still failed the substring match for ``memories.json``. The
correct fix is ``out.replace("\n", "")`` (remove newlines without
substituting whitespace) so wrapped tokens rejoin cleanly.
Verified locally with COLUMNS=80 that the rich wrap now produces
``Skipping /tmp/.../memories.json: ...`` after the replace.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5aba014 commit 9a14235
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
0 commit comments