What
Rather than stripping known-bad sequences, log replay keeps only sequences it recognises and drops everything else, including private-mode and parameter-prefixed ones.
Details
- Screen-erase is allowed only with parameters 0, 1 or 2; scroll-down only with a single numeric parameter; plus a small set of two-character escapes.
- The parser also reports whether the stream ever moved the cursor to an absolute position, which is what triggers the trailing reposition.
- Unconditional; the reposition only applies when output is a terminal.
Evidence
cursorAddressed
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleclaude logs
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up claude logs, on Manage multiple agents with agent view.
| `claude logs <id>` | Print the session's recent output |agent-view see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up claude logs, on Manage multiple agents with agent view.
Anthropic's release notes agree
Fixed claude logs leaving mouse tracking, bracketed paste and the alternate screen switched on in the terminal it was run from