[BUG] /resume command fails with "Invalid `signature` in `thinking` block" error when previous session used Extended Thinking

Resolved 💬 2 comments Opened Jun 8, 2026 by POISON12138 Closed Jun 9, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When using /resume to continue a previous session that contained Extended Thinking
(thinking blocks), the API immediately returns a 400 error:

"Invalid signature in thinking block"

This makes it impossible to resume any session where Claude used Extended Thinking.
The session history stored in the .jsonl file contains thinking blocks with
signatures that are no longer valid in a new session context, and Claude Code passes
them back to the API as-is, causing the request to be rejected.

What Should Happen?

/resume should be able to restore any previous session regardless of whether it
contained Extended Thinking blocks. Either the thinking blocks should be stripped
from the history before being sent to the API, or their signatures should be
refreshed so they remain valid across sessions.

Error Messages/Logs

● API Error: 400 ***.***.content.0:
  Invalid `signature` in `thinking` block        
  (request id: 2026060808012383766628282
  68d9d6nvf0rdDT)

Steps to Reproduce

  1. Start a new Claude Code session in any project directory.
  2. Have a conversation where Claude uses Extended Thinking

(thinking blocks will appear in the session's .jsonl file).

  1. Exit the session.
  2. Run /resume to continue the previous session.
  3. Send any message.

Result: The following error appears immediately:

API Error: 400 Invalid signature in thinking block
(request id: xxxxxxxx)

Note: The issue can be confirmed by checking the session .jsonl file
in ~/.claude/projects/<project>/. If it contains entries with "type":"thinking",
the session will fail to resume.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.168

Platform

Other

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗