Skip to content

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

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

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

Conversation

@cursor

@cursor cursor Bot commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use authHeader() instead of reading c.APIKey directly
  • this preserves Bearer token auth for OAuth client-credentials mode in idempotent create flows
  • add regression coverage for CreateIssueIdempotent in OAuth mode, asserting both the idempotency search and issueCreate mutation use Authorization: Bearer <token>

Bug / impact

In OAuth mode, idempotent creates could send an empty Authorization header on the single-attempt mutation path, causing 401s and failed issue creation in Linear.

Validation

  • CGO_ENABLED=1 go test -tags gms_pure_go ./internal/linear
  • make test (fails in unrelated pre-existing tests in this environment: cmd/bd TestTestServerConnection/unreachable_host and internal/storage/dolt TestPullWithAutoResolve_BranchTrackingFallbackSuccess due missing dolt binary)
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