Skip to content

Commit 1633bf5

Browse files
fix: remove stopping_point from agent requests
The backend's ExplorerAutofixRequestSerializer overrides step to 'root_cause' when stopping_point is set, which would restart the entire analysis instead of continuing from the current step. Match the frontend's request format: just send step + run_id.
1 parent d0ab1e9 commit 1633bf5

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/lib/api/seer.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export async function triggerRootCauseAnalysis(
6060
params: EXPLORER_MODE_PARAMS,
6161
body: {
6262
step: "root_cause",
63-
stopping_point: "root_cause",
6463
},
6564
}
6665
);
@@ -125,7 +124,6 @@ export async function triggerSolutionPlanning(
125124
params: EXPLORER_MODE_PARAMS,
126125
body: {
127126
step: "solution",
128-
stopping_point: "solution",
129127
run_id: runId,
130128
},
131129
}

test/lib/api-client.seer.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ describe("triggerRootCauseAnalysis", () => {
7171

7272
expect(capturedBody).toEqual({
7373
step: "root_cause",
74-
stopping_point: "root_cause",
7574
});
7675
});
7776

@@ -228,7 +227,6 @@ describe("triggerSolutionPlanning", () => {
228227
expect(capturedRequest?.url).toContain("mode=explorer");
229228
expect(capturedBody).toEqual({
230229
step: "solution",
231-
stopping_point: "solution",
232230
run_id: 12_345,
233231
});
234232
});

0 commit comments

Comments
 (0)