Skip to content

fix(linear): use OAuth auth header in idempotent issue create path - #18

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

fix(linear): use OAuth auth header in idempotent issue create path#18
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-539c

Conversation

@cursor

@cursor cursor Bot commented Jun 22, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use authHeader() instead of directly setting Authorization from APIKey
  • add regression test TestCreateIssueIdempotentOAuthUsesBearerAuth to verify OAuth bearer token is used in idempotent create flow

Bug and impact

In OAuth client-credentials mode, APIKey is empty by design. The idempotent create path (CreateIssueIdempotent -> createIssueSingleAttempt) sent an empty Authorization header, causing issue creation to fail with 401. This breaks new-issue pushes in OAuth-backed environments.

Validation

  • CGO_ENABLED=1 go test -tags gms_pure_go ./internal/linear
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