Skip to content

fix(seer): Fix an issue where the Autofix Agent filter wasnt working properly#117381

Merged
ryan953 merged 3 commits into
masterfrom
ryan953/fix-autofix-settings-agent-filter
Jun 11, 2026
Merged

fix(seer): Fix an issue where the Autofix Agent filter wasnt working properly#117381
ryan953 merged 3 commits into
masterfrom
ryan953/fix-autofix-settings-agent-filter

Conversation

@ryan953

@ryan953 ryan953 commented Jun 10, 2026

Copy link
Copy Markdown
Member

Before this fix the filter was incorrectly filtering projects using what is now called seerAgentIntegrationsSelectQueryOptions. It should instead filter by provider-name, or the new seerAgentProviderSelectQueryOptions list of options.

The difference is cursor_background_agent:1234 vs. cursor_background_agent. We want to filter by provider name, not including integration_id, so that it works better as instances are created/removed

Before
The query param was ?agent=claude_code_agent::380236
SCR-20260610-nmzl

After
The query param is ?agent=claude_code_agent
Results are found

…properly

Before this fix the filter was incorrectly filtering projects using what is now called `seerAgentIntegrationsSelectQueryOptions`. It should instead filter by provider-name, or the new seerAgentProviderSelectQueryOptions list of options.

The difference is `cursor_background_agent:1234` vs. `cursor_background_agent`. We want to filter by provider name, not including integration_id, so that it works better as integrations are rotated.
@ryan953 ryan953 requested review from a team as code owners June 10, 2026 22:14
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 10, 2026

@cursor cursor Bot left a comment

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.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

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 676fb86. Configure here.

<Flex gap="md" wrap="wrap">
{agentSelectOptions.length ? (
<CompactSelect<'all' | AutofixAgentSelectOption>
<CompactSelect

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 filter hidden while loading

Medium Severity

The agent filter is only rendered when agentSelectOptions.length is truthy, but that list now defaults to [] while the integrations query is pending or failed. The previous hook always included at least the Seer option immediately, so the filter could disappear during load and stay hidden if the integrations request errors.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 676fb86. 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.

there are async loading problems, but i'm not replicating issues very easily.

if something fails to load the page will be messed up in a lot of ways. it's hard to be graceful to just one of these requests.

Comment thread static/app/utils/seer/preferredAgent.ts
Comment thread static/app/utils/seer/preferredAgent.ts Outdated
...(knownAgents ?? [])
.filter(i => isPreferredAgentProvider(i.provider))
...selectAgentIntegrations(data)
.filter(i => isPreferredAgentProvider(i.provider)) // filter out copilot, it cannot be saved.

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.

poor copilot

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.

different operating mode

* Builds on `knownAgentIntegrationsQueryOptions` and overrides `select` to
* produce `{value, label}` tuples filtered to preferred-agent integration ids.
*/
export function seerAgentIntegrationsSelectQueryOptions({

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.

might be help to explain the difference between this and seerAgentProviderSelectQueryOptions

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.

updated doc strings

Comment thread static/app/utils/seer/preferredAgent.ts Outdated
@ryan953 ryan953 merged commit 1933333 into master Jun 11, 2026
70 checks passed
@ryan953 ryan953 deleted the ryan953/fix-autofix-settings-agent-filter branch June 11, 2026 15:11
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.

2 participants