fix(linear): preserve projectId through config mapper#1138
Merged
zbigniewsobiecki merged 1 commit intodevfrom Apr 17, 2026
Merged
fix(linear): preserve projectId through config mapper#1138zbigniewsobiecki merged 1 commit intodevfrom
zbigniewsobiecki merged 1 commit intodevfrom
Conversation
The configMapper.ts dropped projectId when mapping Linear integration config from the DB to ProjectConfig. The JSON in project_integrations had projectId, but buildLinearConfig() only copied teamId, statuses, labels, and customFields — never projectId. This broke every downstream consumer: worker env injection (CASCADE_LINEAR_PROJECT_ID never set), createWorkItem/listWorkItems/ addChecklistItem (issues created without project scope), and the router's webhook scope filter (never applied). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
zbigniewsobiecki
added a commit
that referenced
this pull request
Apr 18, 2026
…ng it PR #1138 added projectId to the configMapper, but Zod's LinearConfigSchema didn't declare projectId — and z.object() defaults to "strip" mode, silently removing unknown keys during .parse(). So projectId survived the mapper but got dropped by validateConfig(), never reaching augmentProjectSecrets() or the LinearPMProvider. Result: new Linear issues created by splitting / planning agents had no project assignment despite the configMapper fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
zbigniewsobiecki
added a commit
that referenced
this pull request
Apr 18, 2026
…ng it (#1142) PR #1138 added projectId to the configMapper, but Zod's LinearConfigSchema didn't declare projectId — and z.object() defaults to "strip" mode, silently removing unknown keys during .parse(). So projectId survived the mapper but got dropped by validateConfig(), never reaching augmentProjectSecrets() or the LinearPMProvider. Result: new Linear issues created by splitting / planning agents had no project assignment despite the configMapper fix. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
projectIdtoLinearIntegrationConfiginterface,ProjectConfigRaw['linear']type, andbuildLinearConfig()function insrc/db/repositories/configMapper.tsprojectIdwhen loading Linear integration config from the DB, breaking every downstream consumerRoot cause
buildLinearConfig()explicitly copiedteamId,statuses,labels,customFieldsbut neverprojectId. The DB JSON had it, the mapper dropped it.Impact (all fixed by this 3-line change)
secretBuilder.augmentProjectSecrets()CASCADE_LINEAR_PROJECT_IDnever set in worker envLinearPMProvider.createWorkItem()LinearPMProvider.listWorkItems()LinearPMProvider.addChecklistItem()LinearRouterAdapterwebhook filterTest plan
preserves Linear projectId through the mapperomits Linear projectId when not configured🤖 Generated with Claude Code