Commit 977cb0f
feat(autofix): Thread insert_index through explorer API for step retry (#112287)
Thread `insert_index` through the explorer autofix API so the frontend
can request
a retry-from-step that truncates all downstream blocks. When provided,
Seer does
`blocks = blocks[:insert_index]` before re-running the step, ensuring
downstream
sections (e.g. Code Changes after retrying Plan) are properly removed.
Changes:
- Add `insert_index` field to `ExplorerAutofixRequestSerializer`
- Pass it through `trigger_autofix_explorer()` → `client.continue_run()`
A follow-up frontend PR (#112290) adds retry buttons that use this
parameter.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 615581d commit 977cb0f
File tree
3 files changed
+36
-0
lines changed- src/sentry/seer
- autofix
- endpoints
- tests/sentry/seer/endpoints
3 files changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
943 | 972 | | |
944 | 973 | | |
945 | 974 | | |
| |||
0 commit comments