feat(autofix): Add optional user param to trigger_autofix_agent#119446
Merged
Conversation
Plumb an optional user argument through trigger_autofix_agent and get_autofix_agent_client to SeerAgentClient, which already accepts it for viewer context, permission checks, and feature flag evaluation. Callers with an authenticated user (the API endpoint and the Slack operator) now forward it. Callers without a user (on_completion_hook, issue_summary, pr_iteration, night shift) keep the existing None default. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
trevor-e
approved these changes
Jul 10, 2026
…fix_agent The endpoint now passes request.user to trigger_autofix_agent. Update test_stopping_point and test_insert_index_passed_through to include user=ANY in their assert_called_once_with calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plumb an optional
userargument throughtrigger_autofix_agentandget_autofix_agent_clienttoSeerAgentClient, which already accepts it forviewer context, permission checks, and feature flag evaluation.
Callers with an authenticated user (the API endpoint and the Slack operator) now
forward it. Callers without a user (on_completion_hook, issue_summary,
pr_iteration, night shift) keep the existing
Nonedefault.