Skip to content

fix(linear): restore OAuth auth in idempotent create path - #25

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

fix(linear): restore OAuth auth in idempotent create path#25
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-89e7

Conversation

@cursor

@cursor cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use authHeader() instead of directly using APIKey
  • this restores OAuth client-credentials authentication for idempotent create flows (CreateIssueIdempotent)
  • add regression test TestCreateIssueIdempotentOAuthUsesBearerOnCreate

Bug / impact

A recent Linear idempotent-create helper bypassed the shared request executor and set Authorization from c.APIKey directly. In OAuth mode, APIKey is empty, so idempotent creates returned 401 and failed to push new issues.

Validation

  • CGO_ENABLED=1 go test -tags gms_pure_go ./internal/linear
  • make test (fails in existing unrelated suites due to environment/dependencies: cmd/bd unreachable-host expectation and internal/storage/dolt missing dolt binary)
Open in Web View Automation 

Co-authored-by: Kevin Glynn <kevglynn@Gmail.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