update_issue's inRelease errors don't say how to recover

Offen Anfängerfreundlich
#2,362 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
67/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Beginne in packages/mcp-core/src/tools/catalog/update-issue.ts bei der Validierung um die Zeilen 243–247, lies dann die Beschreibung des inRelease-Schemas in packages/mcp-core/src/schema.ts und suche nach der Behandlung von Sentry-Fehlern zu statusDetails.inRelease. Das Issue legt fest, welche Anleitung zur Behebung jede Meldung geben soll: Lass das Release bei resolvedInNextRelease weg und verwende die vollständige Version, die find_releases zurückgibt. Fertig, wenn alle drei Fälle diese Anweisungen enthalten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

mcp-feedback-pattern

Problem

Resolving an issue in a release with update_issue fails twice in ways the agent can't recover from without guessing:

  1. status: "resolvedInNextRelease" plus inRelease is rejected with "`inRelease` and `inCommit` can only be used when `status` is `resolved`" (packages/mcp-core/src/tools/catalog/update-issue.ts:243-247 at a4f7328). The rejection is right (next release and a named release are different resolutions), but the message doesn't say that resolvedInNextRelease needs no release, so the agent read it as a schema bug.
  2. A short release name (for example v5.7.58 for [email protected]<sha>+273) passes Sentry's raw 400 through: {"statusDetails":{"inRelease":["Unable to find a release with the given version."]}}. Sentry matches the stored version exactly (getsentry/sentry src/sentry/api/helpers/group_index/validators/status_details.py:87-111), and the inRelease description says only "Release version that fixes the issue" (packages/mcp-core/src/schema.ts:257-263), so nothing tells the agent to pass the full version or where to find it. find_releases already returns the full version (version is shortVersion, which Sentry sets to obj.version in src/sentry/api/serializers/models/release.py:793).

Fix

Draft PR: a specific message for resolvedInNextRelease + inRelease/inCommit; turn Sentry's statusDetails.inRelease 400 into a UserInputError that names the full-version rule and find_releases; and say "full version, as find_releases returns it" in the inRelease description.

Reports

  • MCP-SERVER-GRX (2026-11-18): task was resolving a batch of network-only issues. Session traces for its client.id show 3 update_issue calls with resolvedInNextRelease + inRelease=v5.7.58 rejected by MCP validation (11:25:53 UTC, no Sentry request), then 4 with resolved + the same short name rejected by Sentry with the 400 above (11:26:02), then success with the full package@version+build (11:26:17 onward). 7 failed calls before the workaround.

Related: #1262 (the original resolve-in-release request, implemented by #2098).

Report count: 1

via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_728b24ef5cfba761b02ae3da7730c93a.

--

View Session [Sentry]

Vorherrschende Sprache
TypeScript
Sterne
975
Forks
189
Ø Merge
19 Std. 57 Min.
Gemergte PRs (30 T.)
542

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/toolkit

Alle Issues in getsentry/toolkit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.