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.
Problem
show --max -5silently slicesprompt[:-5], dropping the last 5 chars of output with no error.Where
agentrace/cli.py(--maxhas no range check, consumed asr.prompt[:args.max]).Acceptance
Add a failing test first asserting
show --max -5exits 2 (or clamps) rather than printing truncated output. Then fix.