Repository navigation
Conversation
9 tasks done
nwparker
added a commit
that referenced
this pull request
Oct 9, 2026
Records the retained adapted contribution from #25843 in replacement PR #26861. Co-authored-by: kazu-42 <[email protected]>
Contributor
|
Closing this PR as superseded by the merged PR #26861. It retains the label-group filter after all pages are loaded, preserving child and standalone labels, and retains the pagination regressions with additional later-page failure coverage. kazu-42’s retained contribution is credited as a co-author. |
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.
ELI5
Linear label groups are containers, not labels you can assign to an issue. Orca currently offers them in the label picker and Linear rejects the selection. This change removes those invalid choices while keeping ordinary labels and the labels inside each group.
What Changed
Filter SDK label nodes with
isGroup: truefrom the shared team-label reader after fetching all pages. Both label-reading entry points now return only assignable labels, with the same{ id, name, color }response shape and ordering as before.Add regression coverage for both readers, including group-only pages, children on later pages, ordinary labels, and a collection containing only groups.
Why
The SDK already returns
isGroup; the reader was discarding it without checking it. Filtering at this boundary fixes the shared data source without adding separate picker rules, changing the wire format, or issuing extra requests. Pagination still finishes even when a page contains only groups. This matches Linear's documented distinction between groups and assignable labels.Linked Issue
Fixes #25603
Visual Proof
Pending: actual before/after picker screenshots. This PR is intentionally a draft until rendered verification is attached. The repository requires the
electronskill for Orca UI checks; that skill was not available in this environment, including the local skill directories andorca skills get electron. No live Linear account or visible app window was used for testing.Automated reproduction through both public label readers, using a paginated SDK fixture:
Type,Area; ordinaryUrgent; child labelsBug,BackendType, Urgent, Bug, Area, BackendUrgent, Bug, BackendAll four added regression cases failed against the original reader, then passed with the fix.
Testing
On macOS, with
ORCA_BACKGROUND_LAUNCH=1:Results: 21 test files / 155 tests passed, Node typecheck passed, changed-code quality gate passed with zero new findings. Direct oxlint and React Doctor checks also passed; oxfmt was applied to the changed test file.
git diff --checkpassed. The tests mock Linear SDK responses; live API writes, rendered UI, Windows/Linux, SSH execution, and a full packaged build were not exercised.AI Disclosure
Implemented and tested with OpenAI Codex.
Review
Self-reviewed the pagination boundary, shared callers, SDK field availability, and unchanged response shape. No token handling, issue mutation, filesystem operation, or provider routing changes are included.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
The filtering runs on the runtime that reads Linear. Existing clients can consume the unchanged response; an older runtime still needs this fix to stop returning groups. The change is independent of OS, git worktrees versus folder workspaces, and GitHub/GitLab selection. It does not alter persisted data, so reverting the commit restores the previous behavior without migration. Child-label exclusivity within a group is outside this issue's scope.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)