Repository navigation
Commit fb2954b
fix(terminal): a restored log tail drops the control sequence it starts inside
Restoring history after a restart reads only the last bytes of the log,
and that cut could land inside a control sequence whose remainder was
then replayed as text and written back. The read now follows the parser
state across the bytes it skips and drops the rest of a cut sequence.
Co-Authored-By: Claude Fable 5.2 <[email protected]>1 parent 2390434 commit fb2954b
2 files changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1200 | 1218 | | |
1201 | 1219 | | |
1202 | 1220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
2109 | 2122 | | |
2110 | 2123 | | |
2111 | 2124 | | |
| |||
2119 | 2132 | | |
2120 | 2133 | | |
2121 | 2134 | | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2122 | 2142 | | |
2123 | | - | |
| 2143 | + | |
2124 | 2144 | | |
2125 | 2145 | | |
2126 | 2146 | | |
| |||
0 commit comments