Report

Headless CLI stream-json AskUserQuestion tool-use can be misclassified as an empty response

462b9fa6-3eb5-42fe-a032-ff7d344749ff

A headless CLI backend using stream-json output finished with an empty final result after the model invoked a user-question tool. The runner treated output.text.trim() as empty and reported an empty-response failure, even though the assistant had emitted a structured tool_use asking the user to choose options.