You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Context ManagementArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
Unclear Whether clearing PDF page text is turned on by default is not stated.
What
The context is everything Claude has in view during a conversation. When a session sits idle, Claude Code can clear old tool results out of the context. A tool result is the output Claude gets back after using a tool, such as reading a file. This clearing now handles text taken from PDFs:
mayClearPdfPageTexts is a new option that lets the clearing scan handle attachments from reading a PDF.
clearsPdfPageTexts is a new output field that says page texts from a PDF were cleared.
client_cleared_pdf_page_texts is now added to the request sent to the model when clearsPdfPageTexts is set. Before, only cleared connector results and screen results were reported this way.
A set clearsPdfPageTexts also counts toward sending client_sent_exclude_tools.
The scan also caches its state between calls. Tool results from before the latest response are scanned bit by bit as new messages arrive, instead of every message being scanned again each time.
Why
In long sessions where Claude has read PDFs, the page text can now be cleared from the context like other old tool results, which frees room. Because the scan no longer starts over every time, clearing should also cost less work as a session grows.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether clearing PDF page text is turned on by default is not stated.