You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A failed command must not emit an ok: true structured response. It should emit either an ok: false error envelope or no structured stdout, consistently with the CLI error contract.
Impact
Automation that relies on structured stdout can incorrectly classify the failed command as successful.
Summary
A failed structured history command exits non-zero and reports an error on stderr, but still emits an
ok: trueenvelope on stdout.Reproduction
The seven-character scan ID prefix is invalid because prefixes must contain at least eight characters.
Actual behavior
Exit code:
stderr:
stdout:
{ "ok": true, "meta": { "command": "scans show", "duration": "97ms" } }Expected behavior
A failed command must not emit an
ok: truestructured response. It should emit either anok: falseerror envelope or no structured stdout, consistently with the CLI error contract.Impact
Automation that relies on structured stdout can incorrectly classify the failed command as successful.
Environment
@openai/codex-security:0.1.1434e687e5beda004dc9af585d8f375c5147187ffe37bf87a692fc72d41f7312cc48808d699d204fba, so this is a pre-existing issue