fix(seer): use updated autofix status values#1070
Merged
Merged
Conversation
getsentry/sentry#116162 switched GroupAutofixEndpoint to always return the agent-based run state, whose statuses are lowercase ("processing", "completed", "error", "awaiting_user_input"). The uppercase-only enum here has rejected every response since, so analyze_issue_with_seer failed with a ZodError on autofix.status. Adopt the actual vocabulary and update the status helpers, tool checks, and fixtures. Co-authored-by: Claude <noreply@anthropic.com>
The agent-based autofix run state carries its analysis in memory-block artifacts ("root_cause", "solution") rather than legacy steps, which the endpoint no longer returns — so analyze_issue_with_seer reported a completed run with no analysis body and the issue-details Seer summary came up empty. Model the blocks, render the root cause and solution artifacts plus links to PRs the run created, and surface the agent's in-progress todo while polling.
Co-authored-by: Claude <noreply@anthropic.com>
The autofix endpoint stopped returning steps when getsentry/sentry#116164 removed the legacy path, and analysis output now comes from run artifacts. Drop the unused step schemas, the step renderer, and the steps field. Co-authored-by: Claude <noreply@anthropic.com>
71881f3 to
8b41dda
Compare
Member
|
fixes #1064 |
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.
getsentry/sentry#116162 updated
GroupAutofixEndpointto use the new explorer-based autofix, which has a new schema. When the MCP attempted to use seer tools, they would always fail validation. Update to use the new autofix schema.Fixes MCP-SERVER-FXM