Skip to content

fix(seer): use updated autofix status values#1070

Merged
cvxluo merged 3 commits into
mainfrom
cvxluo/use-agent-based-autofix-status-values
Jun 10, 2026
Merged

fix(seer): use updated autofix status values#1070
cvxluo merged 3 commits into
mainfrom
cvxluo/use-agent-based-autofix-status-values

Conversation

@cvxluo

@cvxluo cvxluo commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

getsentry/sentry#116162 updated GroupAutofixEndpoint to 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

cvxluo and others added 3 commits June 9, 2026 16:27
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>
@cvxluo cvxluo force-pushed the cvxluo/use-agent-based-autofix-status-values branch from 71881f3 to 8b41dda Compare June 9, 2026 23:35
@dcramer

dcramer commented Jun 10, 2026

Copy link
Copy Markdown
Member

fixes #1064

@cvxluo cvxluo merged commit fe934e1 into main Jun 10, 2026
20 checks passed
@cvxluo cvxluo deleted the cvxluo/use-agent-based-autofix-status-values branch June 10, 2026 00:04
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.

2 participants