Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Tool-result clearing can now drop PDF page texts and scans more cheaply

Context clearing can now remove the text of PDF pages Claude read, reports it with the request, and no longer rescans every message each time

Group of 2 You'll notice Improvements
JSON All of v2.1.333
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.

See this entry in the whole of v2.1.333 →

Feedback