analyze_issue_with_seer can't replace a completed Seer run
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- tooling
Piste de recherche
Read packages/mcp-core/src/tools/catalog/analyze-issue-with-seer.ts around L149 (the startAutofix gate), L209-225 (the path that returns an existing terminal run), and the input schema at L83-92 with its Results are cached description at L80. Check the related getsentry/toolkit#1270 runId guard before changing the branch, since the new parameter has to coexist with it and with the fact that starting a run spends Seer credits. Done means a caller can explicitly request a fresh analysis, instruction is honoured or rejected rather than silently dropped, and the tool's existing tests are updated to cover both the reuse and refresh paths.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Pattern: once an issue has a completed Seer run, analyze_issue_with_seer always returns that run. Callers can't start a fresh analysis through MCP, even when the stored root cause is stale (for example, it points at code that has since been fixed and shipped), and the instruction argument is dropped without notice.
Reports: 1 (user feedback, MCP server 0.42.0, analyze_issue_with_seer, impact: blocked)
Current behavior (packages/mcp-core/src/tools/catalog/analyze-issue-with-seer.ts @ 516cad4)
- L149: the tool calls
startAutofixonly when there's no previous run or the previous run'sstatusiserror. - L209-225: any other terminal run (
completed, waiting for input) is returned as-is withFound existing analysis (Run ID: …).params.instructionis only passed tostartAutofix(L155), so on this path it is silently ignored. - The input schema (L83-92) has no way to ask for a new run, and the description says
Results are cached - subsequent calls return instantly(L80).
Sentry API (getsentry/sentry@fe43ef0)
POST /issues/{id}/autofix/starts a new run whenever neitherrun_idnorsentry_run_idis passed (src/sentry/seer/endpoints/group_ai_autofix.pyL286-299). An existing completed run doesn't block it.GET /issues/{id}/autofix/returns the group's latest run (get_autofix_agent_state→fetch_latest_run_state,src/sentry/seer/autofix/autofix_agent.pyL558-575). So the gap is on the MCP side only.
Evidence from the report
- The sampled
analyze_issue_with_seercall madeGET …/issues/{id}/andGET …/issues/{id}/autofix/and no POST. It returnedFound existing analysis (Run ID: …)/## Analysis Completewith the old root cause. That sampled call had noinstructionargument; the reporter says an earlier call did pass one. We sample 30% of traces, so that call may not have been recorded.
Reporter's proposal: a force/refresh parameter on analyze_issue_with_seer.
Related: getsentry/toolkit#1270 adds a runId guard on the same code path that stops the tool from starting a new run. Any change here needs to fit with it. Starting a new run spends Seer credits, which is likely why the tool reuses the existing run today.
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_603ac936cce8aaa570e9b7eae0aa9519.
--
- Langage dominant
- TypeScript
- Étoiles
- 961
- Forks
- 179
- Merge moyen
- 15 h 33 min
- PR mergées (30 j)
- 476
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de getsentry/toolkit
-
MCP mcp-feedback-pattern
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
getsentry/toolkit#2276 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
CLI enhancement MCP
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
getsentry/toolkit#1908 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
getsentry/toolkit#1471 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
get_sentry_resource gives no guidance for Explore > Errors list URLsPeut-être pris @sentry-junior l’a pris aujourd’hui. OuverteMCP mcp-feedback-pattern
Difficulté 2/5 1-3 heures Accessibilité débutants 32/100
getsentry/toolkit#2278 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 65/100
getsentry/toolkit#2275 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de getsentry/toolkit
Issues similaires
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
AOSSIE-Org/DebateAI#801 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or testedOuverteagents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Add: BOM CineOuverteapproved check:passed streams:add
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour