Skip to content

fix: hint when --dir points to a file - #36

Merged
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
garvgupta2711:fix-dir-file-hint
Sep 9, 2026
Merged

fix: hint when --dir points to a file#36
royalpinto007 merged 2 commits into
AgentPostmortem:mainfrom
garvgupta2711:fix-dir-file-hint

Conversation

@garvgupta2711

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a helpful hint when --dir is given an existing file instead of a directory.

Previously, this resulted in:

No subagent runs found

with no indication that --file should be used.

Now the CLI detects when --dir points to a file and tells the user to use --file instead.

Testing

  • Added a regression test for --dir <existing .jsonl file>
  • Full test suite passes with pytest

Closes #28

@royalpinto007
royalpinto007 merged commit 112fb56 into AgentPostmortem:main Sep 9, 2026
2 checks passed
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

This is in, @garvgupta2711. Really appreciate it.

Contributions like this are what keep Agentrace moving.

A star on the repo would mean a lot if this project is useful to you.

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.

--dir pointed at a file reports no runs with no --file hint

3 participants