Commit aea5467
fix: preserve content lines when truncation and footer both apply
When --max-lines is set and the tree is truncated, the truncation notice
now uses the pre-reserved footer slot (combined line) instead of replacing
the last content line. This shows one additional component line within the
same budget.
Also fixes the --max-lines 1 edge case where the footer was emitted after
the truncation notice, producing 2 lines instead of 1.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e0b7a4e commit aea5467
File tree
2 files changed
+14
-10
lines changed- packages/agent-react-devtools/src
- __tests__
2 files changed
+14
-10
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
167 | 173 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 174 | + | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
0 commit comments