The answer a finished query's messages carry, as claude -p prints it: what the result message says. A run that ended without one answers with the text of its last assistant message that has any, and otherwise with nothing.
The answer a finished query's messages carry, as claude -p prints it: what the result message says. A run that ended without one answers with the text of its last assistant message that has any, and otherwise with nothing.
The CLI sends each content block as its own assistant message, so a run that thinks or calls a tool first opens with an assistant message that holds no text at all; the answer is never looked for at the start.