Skip to content

fix: reject GraphQL viewer:null in gitt miner post local PAT preflight (#1195)#1196

Open
alpurkan17 wants to merge 2 commits into
entrius:testfrom
alpurkan17:fix/1195-pat-preflight-viewer-null
Open

fix: reject GraphQL viewer:null in gitt miner post local PAT preflight (#1195)#1196
alpurkan17 wants to merge 2 commits into
entrius:testfrom
alpurkan17:fix/1195-pat-preflight-viewer-null

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Summary

Add check for GraphQL data.viewer: null in _validate_pat_locally(), matching the validator-side check in pat_handler.py.

Miners see a consistent error message instead of false success + validator rejection.

Validation

  • ruff check + ruff format pass
  • 7 lines added, no behavior change for valid PATs

Closes #1195

@xiao-xiao-mao xiao-xiao-mao Bot added the bug Something isn't working label May 12, 2026
@alpurkan17 alpurkan17 changed the title fix: reject GraphQL viewer:null in gitt miner post local PAT preflight (#1195) fix(cli): reject viewer-null PAT preflight responses (#1195) May 12, 2026
@alpurkan17 alpurkan17 changed the title fix(cli): reject viewer-null PAT preflight responses (#1195) fix: reject GraphQL viewer:null in gitt miner post local PAT preflight (#1195) May 12, 2026
Copy link
Copy Markdown
Collaborator

@anderdc anderdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mirrors the validator-side viewer:null check at pat_handler.py:189. Small UX win on the preflight path.

@alpurkan17
Copy link
Copy Markdown
Contributor Author

@anderdc this PR is approved — mind hitting merge when you get a chance? Thanks!

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gitt miner post local PAT preflight accepts GraphQL viewer:null tokens

2 participants