fn is_completion_notice(command_mode: Option<&str>, prompt: &Value) -> boolExpand description
Whether a queued block is the harness’s background-completion notice rather than anything a person said.
The mode is the field that says which of the three kinds arrived, and the text’s own prefix is the other signal. Both are read here, because a fold keyed on one of them drifts from the other the first time either moves.