Skip to content

Commit 3d5e51a

Browse files
ryan953claude
andcommitted
fix(seer): Fix optimistic cache update spreading wrong object into preference field
The onSuccess handler was spreading the entire SeerPreferencesResponse object (which contains code_mapping_repos and preference) directly into the preference field. The preference field expects ProjectSeerPreferences (repositories, automated_run_stopping_point, automation_handoff), so this created a malformed cache entry with a nested preference key and a misplaced code_mapping_repos field. Fix by spreading preferencePayload.preference instead of preferencePayload. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5ccbdb6 commit 3d5e51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/views/settings/seer/overview/utils/seerStoppingPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function getProjectStoppingPointMutationOptions({
191191
preference: {
192192
repositories: [],
193193
...previous.preference,
194-
...preferencePayload,
194+
...preferencePayload.preference,
195195
},
196196
});
197197
}

0 commit comments

Comments
 (0)