fix(claude): keep tool_result blocks first when injecting currentDate
injectClaudeCodeCurrentDate inserted the reminder at index 0 of the first user message. Anthropic requires the message after an assistant tool_use turn to lead with its tool_result blocks, so the request was rejected with 400. Advance the insert index past leading tool_result blocks, matching the existing guard in prependClaudeSystemRemindersToFirstUserMessage. Every other content shape keeps the current index-0 placement.
M
mardausdennis committed
297139cc8d051d379c6e3986fe873044a0187178
Parent: 203f5b1
Committed by sususu98 <33882693+sususu98@users.noreply.github.com>
on 8/15/2026, 3:45:49 AM