Skip to content

Fix empty run ID silently matching first run - #33

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
tomasgiorgi:my-change
Sep 8, 2026
Merged

Fix empty run ID silently matching first run#33
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
tomasgiorgi:my-change

Conversation

@tomasgiorgi

Copy link
Copy Markdown

What & why

'toolu_abc'.endswith('') is always True, so 'agentrace show ""' matched any run instead of erroring. Added a failing test first, then a check that exits 1 with a usage error on stderr when args.id is empty.

Changes

  • Added a failing test asserting show "" exits nonzero with a usage error.
  • Added a check for empty args.id in cmd_show that prints an error to stderr and returns 1 before matching runs.

Checklist

  • [x ] Focused change with a clear description
  • [x ] Ran format / lint / tests (see README)
  • Updated docs or CHANGELOG if relevant
  • [x ] Linked any related issue (e.g. Closes #123)

Closes #1

'toolu_abc'.endswith('') is always True, so 'agentrace show ""'
matched any run instead of erroring. Added a failing test first,
then a check that exits 1 with a usage error on stderr when args.id
is empty.
Closes AgentPostmortem#1
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Welcome, @tomasgiorgi, and thanks for your first pull request to Agentrace.

A quick look at CONTRIBUTING.md covers how things are set up and run here.

I'll review this shortly. Ask anything in the thread if something is unclear.

@royalpinto007
royalpinto007 merged commit f136497 into AgentPostmortem:main Sep 8, 2026
8 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Merged, @tomasgiorgi. Thank you for taking the time.

Genuinely helpful change for Agentrace.

If this project helps you out, a star helps others find it too.

Happy to see more from you whenever you have the time.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a copy-paste quickstart to the README

2 participants