The structured status the CLI fields on its terminal type: "result" line
(verified against Claude Code 2.1.205). isError is the CLI's own success
verdict — trust it over the process exit code (a stale --resume, for one,
can report is_error: true). subtype categorises the outcome
(error_during_execution, success, …) and errors carries the fielded
failure sentences (e.g. "No conversation found with session ID: <id>").
Every field is optional: absent when no result line was emitted (older CLIs,
a crash before the envelope) or when that field was not present.
The structured status the CLI fields on its terminal
type: "result"line (verified against Claude Code 2.1.205).isErroris the CLI's own success verdict — trust it over the process exit code (a stale--resume, for one, can reportis_error: true).subtypecategorises the outcome (error_during_execution,success, …) anderrorscarries the fielded failure sentences (e.g."No conversation found with session ID: <id>"). Every field is optional: absent when noresultline was emitted (older CLIs, a crash before the envelope) or when that field was not present.