Skip to content

fix(linear): searching an issue identifier returns only that issue - #40255

Open
OmegaHawkeye wants to merge 2 commits into
pingdotgg:mainfrom
OmegaHawkeye:fix/linear-identifier-search
Open

OmegaHawkeye wants to merge 2 commits into
pingdotgg:mainfrom
OmegaHawkeye:fix/linear-identifier-search

Conversation

@OmegaHawkeye

@OmegaHawkeye OmegaHawkeye commented Nov 21, 2026 •

Copy link
Copy Markdown

Problem

Searching a Linear issue by its identifier, such as ENG-42, returns that issue plus every
issue in the team whose title or description mentions ENG-42. Teams that cross-reference
issues often get a long list instead of the one issue they asked for.

To reproduce, connect Linear and search ENG-42 on the Issues page, in the issue picker, or with
the list_issues agent tool, where ENG-42 is mentioned in another issue's description.
Both issues are returned.

Change

LinearIssueTracker.listIssues sent the query as number = 42 OR title contains "ENG-42" OR description contains "ENG-42". When the query is a team-qualified identifier for the bound
team (ENG-42, any case) or #42, it now filters by number alone. A bare 42 still also
matches title and description text, since it can be an ordinary search term. An identifier
from another team is still a text search, as before.

Scope

Small fix for an obvious bug, so I didn't open a separate issue first. One file in
packages/issue-tracker-linear plus its test. Every surface uses this search, so the Issues
page, issue picker, and agent tool all pick up the fix.

Verification

  • Extended the existing matches an issue number only in the team it names case in
    LinearIssueTracker.test.ts to assert that a qualified identifier sends no text clauses.
    It fails on main and passes here. vp run check:changed passes.
  • Searched OME-257 on the Issues page against a real Linear workspace, where OME-364's
    description mentions OME-257:

Before (main)

image

After

image
  • Ran listIssues from main and from this branch against the same workspace:

    Query main this branch
    OME-257 OME-257, OME-364 OME-257
    #257 OME-257, OME-364 OME-257
    257 OME-257, OME-364, OME-3 OME-257, OME-364, OME-3

Fixed with Claude Code (Claude Opus 5.5).

Searching "ENG-42" matched the number or any title or description containing
the text, so every issue that mentions ENG-42 showed up too. A team-qualified
identifier or "pingdotgg#42" now filters by number alone; a bare "42" still matches text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

listIssues now treats team-qualified and #-prefixed numbers as exact issue-number searches. Bare numbers can also match issue titles or descriptions. Tests verify the number and text matching behavior.

Changes: Linear issue search matching

Layer / File(s) Summary
Search filter and coverage
packages/issue-tracker-linear/src/server/LinearIssueTracker.ts, packages/issue-tracker-linear/src/server/LinearIssueTracker.test.ts
listIssues uses number-only matching for qualified identifiers. Bare numbers can match issue numbers, titles, or descriptions. Tests check number and text matching across query formats.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: t3dotgg

Merge Risk: Minimal · up to 5fd75

Searching a Linear identifier such as ENG-42 or #42 now returns only that issue, and bare numbers behave as before. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(linear): searching an issue identifier returns only that issue" matches the main change in the changeset. The raw summary and objectives both describe qualified identifier searches (ENG…
Description check Passed The description follows the repository template closely. It has a Problem section that gives the expected behavior and reproduction steps, a Change section that explains the fix, a Scope section that …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(linear): searching an issue identifier returns only that issue" matches the main change in the changeset. The raw summary and objectives both describe qualified identifier searches (ENG-42, #42) in LinearIssueTracker.listIssues now filtering by issue number alone instead of also matching title and description text. The title follows conventional commit format and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template closely. It has a Problem section that gives the expected behavior and reproduction steps, a Change section that explains the fix, a Scope section that explains why no issue was opened and names the affected package, and a Verification section with a focused test, before/after screenshots, and a comparison table of results from main and this branch. The author also names the model used. The Verification section does not state anything that could not be checked, which the template asks for. This is a minor gap and does not reduce overall completeness.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1454828 and 5fd7538.

Files selected for processing: 1

  • packages/issue-tracker-linear/src/server/LinearIssueTracker.test.ts

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

Resolve conflict in LinearIssueTracker.test.ts: upstream deleted this
block of tests (pingdotgg#49319); keep only this PR's identifier-search test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant