Skip to content

show --max accepts negative values that corrupt output slicing #21

Description

@royalpinto007

Problem

show --max -5 silently slices prompt[:-5], dropping the last 5 chars of output with no error.

Where

agentrace/cli.py (--max has no range check, consumed as r.prompt[:args.max]).

Acceptance

Add a failing test first asserting show --max -5 exits 2 (or clamps) rather than printing truncated output. Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions