[Regression bug] TranscriptEvent write delay: tool_use event not written to session.jsonl until the tool_use_result is received.
Open 💬 9 comments Opened May 12, 2026 by jasonswearingen
Bug Description
there is a regression I notice with your transcript event writes. the current version does not write the AskUserQuestion event to the session .jsonl on disk until after the user provides an answer. older versions (2.1.119 verified) do as expected which is write the AskUserQuestion event to disk immediately upon prompting.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.139
- Feedback ID: 0b70a2ea-4db7-46a6-9927-d99e7736ca14
The prior behavior is needed so external tooling can notify the user that interaction is required to continue.
repro steps:
- new session
- user prompt:
qna prompt test: ask me a simple question - wait for the question to be shown on screen
- inspect the session
.jsonl, AskUserQuestion tool_use event is missing - back in the session, respond to the question
- check the
.jsonland the AskUserQuestion tool_use event will now be written, using the original ask timestamp (not the timestamp in which it's finally written to disk)
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗