Summary
When PARSEC_GITHUB_TOKEN is unset, PR creation fails with 401. However, a valid token may be available via gh auth token.
Proposed Solution
Token resolution priority:
PARSEC_GITHUB_TOKEN
GITHUB_TOKEN
GH_TOKEN
gh auth token command output (fallback, only when gh CLI is installed)
Context
Token existed in ~/.claude/.atlassian-env but wasn't loaded in the session → parsec 401 → gh CLI worked fine via its own auth
Summary
When
PARSEC_GITHUB_TOKENis unset, PR creation fails with 401. However, a valid token may be available viagh auth token.Proposed Solution
Token resolution priority:
PARSEC_GITHUB_TOKENGITHUB_TOKENGH_TOKENgh auth tokencommand output (fallback, only when gh CLI is installed)Context
Token existed in ~/.claude/.atlassian-env but wasn't loaded in the session → parsec 401 → gh CLI worked fine via its own auth