Skip to content

status --type with invalid type prints error but exits 0 #984

Description

@jariy17

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions