Skip to content

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

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

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

Conversation

@cursor

@cursor cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use the same auth-header resolution as the rest of the Linear client (authHeader()), instead of always sending c.APIKey
  • this restores OAuth client-credentials compatibility for idempotent create flows (CreateIssueIdempotent), which are used in push/create paths
  • add a regression test proving OAuth idempotent creates send Authorization: Bearer <token>

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