Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Message filtering and turn grouping now use a new turnCompanion flag

A new turnCompanion flag on user messages now decides whether they're filtered out or grouped with preceding tool results

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaMessage Filteringwhat it touches
KindInternal Changesin v2.1.269,
Group of 2 Under the hood No documentation found

A new turnCompanion flag on user messages now decides whether they're filtered out or grouped with preceding tool results

What

Internal message-handling logic now checks a new turnCompanion flag on user messages:

  • A rewritten helper now checks the turnCompanion flag (in addition to the message's content structure) to decide whether a message should be excluded from certain processing.
  • The logic that decides whether a message belongs with the preceding tool-result group changed from checking tool_use_id membership against a completed set, to checking the new turnCompanion flag plus content shape.

Why

This changes how Claude Code internally identifies which messages belong together as part of the same turn, which affects how messages are filtered and grouped without changing what a user directly interacts with.

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 doubtWhat sets `turnCompanion` to true, and which processing path excludes these messages, aren't shown in the finding.

See this entry in the whole of v2.1.269 →