Skip to content

Suggest no-args form when has no session to append to#7

Open
ncoop57 wants to merge 1 commit into
mainfrom
fresh
Open

Suggest no-args form when has no session to append to#7
ncoop57 wants to merge 1 commit into
mainfrom
fresh

Conversation

@ncoop57

@ncoop57 ncoop57 commented Jul 23, 2026

Copy link
Copy Markdown

When claudedojo -r is run from a directory with no existing Claude transcripts (e.g. a fresh clone), resolve_session raises an unhelpful FileNotFoundError: No session named or identified by None in ..

This wraps the -r path in a try/except FileNotFoundError so the user sees:

No session named or identified by ... in . No session to append to; to prepare a fresh one instead: claude -r $(claudedojo)

sys.exit(str) sends both lines to stderr with exit code 1, so $(claudedojo -r) in command substitution captures nothing rather than a bogus id. Scoped to -r only; --compact still raises bare.

@ncoop57 ncoop57 added the enhancement New feature or request label Jul 23, 2026
@ncoop57
ncoop57 marked this pull request as ready for review July 23, 2026 13:15
@ncoop57
ncoop57 requested a review from jph00 July 23, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant