Summary
agentcore status --type <invalid> prints an error message but returns exit code 0. Non-interactive callers (scripts, CI) cannot detect the rejection.
Reproducer
agentcore status --type bogus
echo $? # prints 0
Actual behavior
Invalid resource type 'bogus'. Valid types: agent, runtime-endpoint, memory, credential, gateway, evaluator, online-eval, policy-engine, policy
Exit code: 0
Expected behavior
Exit code should be non-zero (e.g., 1) when an invalid --type value is provided.
Version
agentcore 0.10.0-1777085255
Summary
agentcore status --type <invalid>prints an error message but returns exit code 0. Non-interactive callers (scripts, CI) cannot detect the rejection.Reproducer
Actual behavior
Exit code: 0
Expected behavior
Exit code should be non-zero (e.g., 1) when an invalid
--typevalue is provided.Version
agentcore 0.10.0-1777085255