These two run tests asserted the BadRequest tag that the prompt route used to
return for an unusable image attachment. This branch replaced that empty 400
with InvalidRequestError carrying a readable reason, so the assertions failed
in CI (unit linux 1/2 and windows 3/6; the unit/test aggregate jobs failed only
because of that shard).
Update the expectations to the new tag and assert the readable reason, which is
the actual improvement. Also correct the stale fixture comments: the attachment
precheck now rejects these bytes as undecodable before the base64 size cap is
reached, so the reported reason is the decode failure rather than the size
limit.
The tests' intent is unchanged -- a prompt request that fails before the model
runs reports the real error once, without the empty-output diagnostic.
Surface: the CLI (packages/opencode).
`kilo run` exits 0 when the model returns no assistant message, so a caller cannot tell an empty run from a successful one. Reproduce first on a live CLI build: force a run that produces no assistant message and read its exit code. If it already exits non-zero, stop with the evidence and no code change. If it does not, exit non-zero with a clear stderr line, leave the exit code of a normal run unchanged, add a test beside the existing run tests, and show both exit codes in the PR body.
Co-authored-by: Marius <marius@kilocode.ai>