Skip to content

fix(linear): restore OAuth auth for idempotent issue creation - #30

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-fbda
Draft

fix(linear): restore OAuth auth for idempotent issue creation#30
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-fbda

Conversation

@cursor

@cursor cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use the shared authHeader() path instead of raw APIKey
  • this preserves OAuth bearer-token auth for CreateIssueIdempotent calls
  • add a regression test proving idempotent create sends Authorization: Bearer ... in OAuth mode

Bug

Recent Linear batch/idempotency work introduced a single-attempt create helper that bypassed OAuth auth and always used c.APIKey. In OAuth client-credentials environments, this can be empty, causing idempotent issue creation to fail with unauthorized responses.

Validation

  • go test -tags gms_pure_go ./internal/linear
  • go test -tags gms_pure_go ./internal/linear -run '^TestCreateIssueIdempotentOAuthUsesBearerAuth$'
  • make test (fails in this environment for pre-existing unrelated suites: cmd/bd and internal/storage/dolt)
Open in Web View Automation 

Co-authored-by: Kev Glynn <kev-pryon@users.noreply.github.com>
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.

1 participant