Skip to content

fix: restore OAuth auth in idempotent Linear issue creation - #17

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

fix: restore OAuth auth in idempotent Linear issue creation#17
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-7c88

Conversation

@cursor

@cursor cursor Bot commented Jun 21, 2026

Copy link
Copy Markdown

Summary

  • fix createIssueSingleAttempt to use authHeader() instead of raw APIKey
  • this restores OAuth bearer-token auth for CreateIssueIdempotent / create paths that use single-attempt mutation logic
  • add regression test covering OAuth idempotent create flow and asserting bearer auth is sent on both search and create requests

Bug

OAuth-only Linear sync/create flows could fail all creates when idempotent create was used, causing major user-facing breakage (401 on create operations).

Validation

  • go test -tags gms_pure_go ./internal/linear -run 'TestCreateIssueIdempotentOAuthUsesBearerHeader|TestCreateIssueEmbedsMarker|TestCreateIssueIdempotentRecoverAfterAmbiguousFailure'
  • go test -tags gms_pure_go ./internal/linear
  • make test (fails in this environment due to missing dolt binary in unrelated internal/storage/dolt test)
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