fn transform_prompt(prompt: Value) -> ValueExpand description
A queued prompt’s block list with each nested attachment stripped.
Only a list is walked. A prompt that reached the transcript as a string carries no block and no payload; anything else is left as the CLI wrote it.