fix(linear): remove Bearer prefix from API key auth + fix biome config#1112
Merged
zbigniewsobiecki merged 2 commits intodevfrom Apr 15, 2026
Merged
fix(linear): remove Bearer prefix from API key auth + fix biome config#1112zbigniewsobiecki merged 2 commits intodevfrom
zbigniewsobiecki merged 2 commits intodevfrom
Conversation
…e config **Bug fix:** Linear personal API keys (lin_api_*) must be sent as bare Authorization tokens — not Bearer tokens. Bearer is for OAuth access tokens only. Every outbound Linear API call (getMe, getTeams, createIssue, etc.) was broken for any project using a personal key. Reproducer: curl -H "Authorization: Bearer lin_api_..." returned "Remove the Bearer prefix from the Authorization header." **Also included:** - Add logger.error in wrapIntegrationCall so integration failures are visible in server logs (previously swallowed silently) - Add getMe unit tests (the method that was failing in the wizard) - Fix biome.json: schema ref was 2.4.10 but installed biome is 1.9.4; also renamed assist→organizeImports, includes→ignore (1.9.x keys) - Run biome check --write to apply all import-sort and style fixes across the entire codebase (pre-existing issues, now unblocked) - Add biome override to keep noDelete off for src/ and tests/ — delete process.env.X is semantically required (= undefined coerces to the string "undefined" in Node.js process.env) - Remove stale biome-ignore comment in llm-call-list.tsx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Local node_modules had biome 1.9.4 (stale from before #1075), so the previous commit wrote a 1.9.4 config that broke CI (which installs fresh 2.4.10). After running npm install locally, re-wrote config for 2.4.10: - Restore assist/files.includes keys (valid 2.x API) - Keep noDelete: off override (src/ + tests/) — delete process.env.X is semantically required; = undefined coerces to "undefined" string - Add noArrayIndexKey suppression back to llm-call-list (2.4.10 triggers the rule even for compound keys; suppression is warranted — read-only list) - Re-apply biome 2.4.10 import sort across modified files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
linearGraphQL()was sendingAuthorization: Bearer <api_key>but Linear's API requires a bareAuthorization: <api_key>for personal API keys (lin_api_*). Bearer is only for OAuth tokens. This broke every outbound Linear API call — verifying credentials, fetching teams, creating issues, etc.Bearerprefix insrc/linear/client.tslogger.errorinwrapIntegrationCallso integration failures show up in server logs instead of being silently swallowedgetMeunit tests (the method that was failing in the wizard)biome.jsonwas referencing schema2.4.10but installed biome is1.9.4— causing the entire linter to exit with config errors on every commit. Fixed the schema ref, renamedassist→organizeImportsandfiles.includes→files.ignoreto match 1.9.x API. Once the config was fixed, ranbiome check --writeto apply all previously-blocked import-sort and style fixes across the codebase. AddednoDelete: offoverride forsrc/andtests/—delete process.env.Xis semantically required (assigningundefinedcoerces to the string"undefined"inprocess.env).Test plan
npm run lintpasses clean (0 errors, 0 warnings)npm run typecheckpasses cleanlin_api_*key → click Verify → succeeds and shows username🤖 Generated with Claude Code