Skip to content

Headless run prints the answer again inside the finish block for multi-paragraph results #690

Closed

Description

@agenteinstinct1-max

Observed

In headless run, when the final answer has more than one paragraph, the CLI prints the full answer during streaming and then prints it again inside the finish block. The finish-block deduplication compares only the first paragraph of the previously printed text, so a multi-paragraph result is not recognized as already printed.

Reproduced on dev-vibecoded (d6107cf): the finish block repeats both paragraphs of the answer; the status line (effort/review/validation) is what the finish block should add on top.

Expected

The finish block omits text that was already printed (comparing the full previously printed text, not only its first paragraph), keeps new finish details and the effort/review status, avoids stripping a mere prefix of a different result, and leaves raw JSON events unchanged.

Activity

  1. added a commit that references this issue on Oct 30, 2026
    aa65c33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions