Skip to content

fix(tools): Say when link_issue's Sentry App is not installed - #2136

Draft
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/link-issue-app-not-installed
Draft

sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/link-issue-app-not-installed

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

A link_issue call with a Linear URL returned Expected one installed Sentry App 'linear'. in an organization that has no Linear installation. The agent gave up and attached Sentry URLs to new Linear issues as plain links. Nothing in the message said the App was missing or what would fix it. Reported through MCP feedback MCP-SERVER-GN0.

In the failing call, GET /sentry-app-installations/ returned no installed linear App and GET /sentry-app-components/?filter=issue-link returned [], so the org had no Linear issue-link form at all. linkAppIssue treats zero and several installations as the same case (app.ts, installed.length !== 1).

Changes

  • When there is no installed App for the slug, say so, name the organization, and say that the App must be installed under Settings > Integrations before retrying.
  • The message for more than one matching installation is unchanged.
  • Regression test: an org with a different App installed gets the new message.

Not in this PR

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 10, 2026 12:05pm UTC

Request Review

@szokeasaurusrex szokeasaurusrex removed their assignment Nov 10, 2026
When the organization had no installation of the App that the URL points
to, link_issue returned "Expected one installed Sentry App 'linear'." The
agent could not tell that the App was missing or what would fix it.

Report the missing installation, name the organization, and say that it
must be installed under Settings > Integrations. The message for more than
one matching installation is unchanged.

This branch was successfully deployed

1 active and 1 inactive deployments
Actions — a984a5a3 Deployed Nov 10, 2026 by szokeasaurusrex via eval #1766
Preview — a984a5a3 Deployed Nov 10, 2026 by vercel[bot]
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.

1 participant