Skip to content

fix(linear): exclude label groups from assignable labels - #26861

Merged
nwparker merged 2 commits into
mainfrom
nwparker/obvious-linear-label-groups-10-09
Oct 10, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/obvious-linear-label-groups-10-09

Conversation

@nwparker

@nwparker nwparker commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​69 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​68
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

ELI5

Linear label groups organize labels but cannot be attached to an issue. Orca offered the groups as choices, causing Linear to reject an issue when a group was selected. The picker now offers the child labels and ordinary labels.

What Changed

The shared team-label reader removes parent groups after loading every page. Child labels, ordinary labels, ordering, and the existing response fields are preserved. Both readers use the correction, so issue pickers and command-line label choices receive the same valid list.

Why

The installed Linear SDK already supplies the group flag. Filtering in the shared reader avoids duplicating the rule in each picker or changing the response sent to remote clients.

Based on the fix and pagination regression cases in #25843 by @kazu-42, with an additional check that a failed later page preserves each reader's error handling.

Linked Issue

Fixes #25603

Visual Proof

Hidden Electron screenshots, using the real installed SDK and production IPC reader with a local four-page fixture matching the reported group/child shape:

Before: parent groups offered as labels
After: child and ordinary labels remain

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

macOS hidden Electron: opened Tasks → New Linear issue → Labels before/after; verified parent choices disappear and the child label remains selectable. The installed SDK queried isGroup on every fixture page. The temporary fixture adapter was removed before final checks.

44 tests passed across the team readers, runtime Linear reads, runtime team projection, and label-filter picker suites. The three canonical Node suites also passed all 21 tests on native Windows (Node 24.18.0) and Linux (Node 26.8.1) at the exact reviewed commit; those host runs use source fixtures and mocked API responses, with no live Linear or remote rendered-UI claim. New pagination cases failed on baseline. Full pnpm tc and pnpm run check:code-quality:changed passed. Fresh dev main/preload builds completed for rendered validation. CI passed all five full test shards, relay integration, static analysis/typecheck, Linux and Windows packaging, repository guards, and final verification at this commit. After marking the PR ready for review, PR verification and the headless-server persistence check also passed. Live Linear credentials and an actual SSH host were not used; the shared host reader and unchanged remote response shape were reviewed.

AI Disclosure

Review

Independent review: clean; the reviewer separately passed all 15 focused team-reader tests and verified the SDK, callers, pagination, errors, and remote compatibility.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The response remains { id, name, color }; no protocol, credential, query, or platform-specific behavior changes. Updated remote hosts return valid labels to older clients. Older hosts retain the existing behavior until updated.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Filter parent groups after the shared reader loads every page, preserving child
and standalone labels and the existing response shape. Cover both reader
policies, group-only pages and late-page failures.

Based on the reader fix and pagination cases in kazu-42's PR #25843.

Fixes #25603
@nwparker
nwparker marked this pull request as ready for review October 9, 2026 11:44
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd01c98d-ed61-43fc-87b6-e0a863427143

📥 Commits

Reviewing files that changed from the base of the PR and between 4845ae8 and dff4e5d.


📒 Files selected for processing (2)
  • src/main/linear/linear-team-pages.ts
  • src/main/linear/teams.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.



📝 Walkthrough

Walkthrough

fetchAllTeamLabels now excludes labels marked as groups before mapping the remaining labels. Tests verify that both label readers retain standalone labels and labels with a parent group, continue through pages containing only groups, and preserve their existing behavior when a later-page fetch fails.

Fixed issue severity: <fixed_issue_severity>Medium</fixed_issue_severity>


Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to dff4e

Label groups are no longer offered as assignable Linear labels. Standalone labels and child labels are kept. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: excluding Linear label groups from assignable labels.
Description check Passed The description follows the required template and explains the user impact, implementation, rationale, linked issue, visual proof, testing, compatibility considerations, and checklist completion.
Linked Issues check Passed The change satisfies linked issue #25603. fetchAllTeamLabels loads all pages, filters nodes with isGroup, and maps the remaining nodes to the existing { id, name, color } shape. The added tests …
Out of Scope Changes check Passed The production change is limited to the shared Linear team-label reader. The test changes cover group filtering, pagination, and existing error handling for the affected readers. These changes directl…


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Records the retained adapted contribution from #25843 in replacement PR #26861.

Co-authored-by: kazu-42 <[email protected]>
@nwparker
nwparker merged commit f50b89b into main Oct 10, 2026
30 checks passed
@nwparker
nwparker deleted the nwparker/obvious-linear-label-groups-10-09 branch October 10, 2026 07:26
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.

[Bug]: Orca Linear shows label groups as another label

1 participant