3 people reported

All time, since Sep 24.

Pending tool_use missing from transcript

“On 2.1.29x, the transcript often does not yet contain the pending tool_use, or the text earlier in the same assistant message, when the hook runs.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/2897/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Quiet. No reports in the last two weeks, down from 2 a week at the early-October peak. A workaround is known.

Pending tool_use missing from transcript until the tool result is written. PreToolUse hooks reading transcript_path, and tools following the session JSONL, see a transcript that "ends at the previous message".

Is this your bug?

File my report
Where
Session transcript
Versions
2.1.281 to 2.1.292
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Original reports3, newest first

  1. PreToolUse: include the assistant message id (or guarantee the tool_use is flushed) so hooks can bind a call to its transcript record#100412
  2. PreToolUse hooks read a transcript that lacks the current assistant message until the tool result lands#100051
  3. A pending AskUserQuestion is not written to the session transcript until it is answered, unless a PreToolUse hook matches it#96795

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.