mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 18:30:09 +00:00
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>