Skip to content

feat(seer): Consolidate fields on the Autofix Project details page#113236

Merged
ryan953 merged 8 commits intomasterfrom
ryan953/seer-autofix-fields
Apr 17, 2026
Merged

feat(seer): Consolidate fields on the Autofix Project details page#113236
ryan953 merged 8 commits intomasterfrom
ryan953/seer-autofix-fields

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented Apr 16, 2026

Another iteration, to bring it inline with the latest designs: https://www.figma.com/design/Os2TPvlMLlStbjqP4t3uKH/Seer-Settings-April--26?node-id=91-18871&m=dev

It's not in a slideout yet, that'll require some route surgery, coming up.
It's also not on the table view yet, that'll use a lot of the shared stuff from this.

SCR-20260416-njcu

@ryan953 ryan953 requested review from a team as code owners April 16, 2026 21:43
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 16, 2026
Comment thread static/app/utils/seer/stoppingPoint.ts Outdated
Comment thread static/gsApp/views/seerAutomation/components/projectDetails/autofixAgent.tsx Outdated
Comment thread static/app/utils/seer/stoppingPoint.ts
Comment thread static/app/utils/seer/stoppingPoint.ts
Comment thread static/app/utils/seer/preferredAgent.tsx Outdated
Comment thread static/app/utils/seer/stoppingPoint.ts Outdated
Comment thread static/app/utils/seer/stoppingPoint.ts Outdated
Comment thread static/gsApp/views/seerAutomation/components/projectDetails/autofixAgent.tsx Outdated
Comment thread static/app/utils/seer/stoppingPoint.ts
@ryan953 ryan953 requested a review from TkDodo April 17, 2026 17:55
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 32132ae. Configure here.

agent: z.union([z.literal('seer'), z.custom<CodingAgentIntegration>()]),
})}
initialValue={selectedAgent}
mutationOptions={agentMutationOptions}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent form initializes with stale value before data loads

Medium Severity

The agent AutoSaveForm mounts immediately, but selectedAgent depends on integrations derived from agentOptions, which is still loading. While pending, integrations is [], so getSelectedAgentForProject always returns 'seer'. Since TanStack Form's defaultValues is not reactive, the form permanently shows 'seer' even after the integration data loads and the real agent is resolved. Users with an external agent configured will see the wrong selection.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 32132ae. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to not be the case. the field renders as a placeholder, then i can see non-seer values pop in later on.

@ryan953 ryan953 force-pushed the ryan953/seer-autofix-fields branch from 32132ae to aa16ed0 Compare April 17, 2026 18:05
Copy link
Copy Markdown
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add some tests?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will claude pick this up when it's nested like this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya it has been!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but that's because root CLAUDE.md references AGENTS.md which then references static/AGENTS.md: https://github.com/getsentry/sentry/blob/master/AGENTS.md#context-aware-loading but agents could be smarter now to look at CLAUDE|AGENTS.md in subdirs idk

Comment on lines +3 to +7
import {bulkAutofixAutomationSettingsInfiniteOptions} from 'sentry/components/events/autofix/preferences/hooks/useBulkAutofixAutomationSettings';
import {
makeProjectSeerPreferencesQueryKey,
type SeerPreferencesResponse,
} from 'sentry/components/events/autofix/preferences/hooks/useProjectSeerPreferences';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is quite the path

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ugh, i've been trying to move stuff until utils more, the self-inflicted merge conflicts trouble me

Comment on lines +113 to +126
fetchMutation<Project>({
method: 'PUT',
url: `/projects/${organization.slug}/${project.slug}/`,
data: {autofixAutomationTuning: 'medium'},
}),
fetchMutation({
method: 'POST',
url: `/projects/${organization.slug}/${project.slug}/seer/preferences/`,
data: {
repositories: preference?.repositories ?? [],
automated_run_stopping_point: preference?.automated_run_stopping_point,
automation_handoff: handoff,
},
}),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will these be merged in future pending the settings migration?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! after the db migration i hope we'll do an api migration to merge these

@ryan953 ryan953 merged commit 4387f82 into master Apr 17, 2026
66 checks passed
@ryan953 ryan953 deleted the ryan953/seer-autofix-fields branch April 17, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants