Commit e8d6d1c
committed
fix(session): preserve thinking text whitespace for signature integrity
The Anthropic API computes a cryptographic signature on the exact
thinking text including trailing whitespace. Calling trimEnd()
invalidates the signature, causing "Invalid data in
redacted_thinking block" errors when thinking blocks are replayed
in subsequent API calls.
Closes #109701 parent 449c5b4 commit e8d6d1c
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
0 commit comments