feat: migrate autofix to agent-based (explorer) endpoint#962
Open
MathurAditya724 wants to merge 2 commits into
Open
feat: migrate autofix to agent-based (explorer) endpoint#962MathurAditya724 wants to merge 2 commits into
MathurAditya724 wants to merge 2 commits into
Conversation
Switch all Seer autofix API calls to use the agent-based endpoint (`?mode=explorer`) which returns blocks instead of steps. The agent endpoint is the path forward and the old endpoint will be deprecated. Key changes: - API layer uses `apiRequestToRegion` with `mode=explorer` query param instead of `@sentry/api` SDK functions - Status values normalized from agent lowercase to CLI uppercase format - Root cause extraction handles agent artifact format (`key: "root_cause"`) alongside legacy step format - Progress messages extracted from block messages in agent format - `triggerSolutionPlanning` simplified: posts `step: "solution"` with `run_id` instead of legacy `select_root_cause` update payload - `--cause` flag removed from `issue plan` (agent determines root cause) Fixes #961
Contributor
|
Contributor
Codecov Results 📊✅ 6949 passed | Total: 6949 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
All tests are passing successfully. ❌ Patch coverage is 63.72%. Project has 14150 uncovered lines. Files with missing lines (4)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 76.99% 76.99% —%
==========================================
Files 320 320 —
Lines 61455 61504 +49
Branches 0 0 —
==========================================
+ Hits 47319 47354 +35
- Misses 14136 14150 +14
- Partials 0 0 —Generated by Codecov Action |
Member
Author
|
all 20 CI checks green, self-review clean — marked ready for review. the migration covers API calls, status normalization, root cause extraction from agent artifacts, and the |
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.
Switches all Seer autofix API calls to the agent-based endpoint (
?mode=explorer), which returns blocks instead of steps. This is the path forward — the old endpoint will be deprecated.apiRequestToRegionwithmode=explorerinstead of@sentry/apiSDK functionsprocessing,completed,error,awaiting_user_input) to CLI uppercasekey: "root_cause") and legacy step formattriggerSolutionPlanningsimplified: postsstep: "solution"withrun_idinstead of legacyselect_root_causeupdate--causeflag removed fromissue plan(agent determines the root cause)Testing
bun test test/lib/api-client.seer.test.ts test/types/seer.test.ts test/lib/formatters/seer.test.ts test/commands/issue/utils.test.ts— 140 tests pass.Closes #961