Files
docker-agent/pkg/codingharness
Sayt-0 2dcfb4fb64 fix(harness): accept the claude CLI's verbose JSON output for titles
In print mode, the claude CLI's JSON output is the result message alone,
unless verbose mode is on in the user's config: it is then an array of
every message of the run, where system notices can follow the result.
Complete only decoded the single object, so for those users every title
request failed with "unexpected output" and sessions stayed untitled.

Complete now accepts both shapes and takes the run's last result
message. Tests cover a verbose array as Claude Code 2.1.310 prints it,
a notice after the result, and errors reported inside an array.

Signed-off-by: Sayt-0 <louis.dal-moro-compta@epita.fr>
2026-10-26 13:49:32 +00:00
..