Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/sentry/seer/agent/client_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class AgentRunOptions(TypedDict):
is_context_engine_enabled: NotRequired[bool]
enable_bash_mode: NotRequired[bool]
enable_coding: NotRequired[bool]
enable_pr_context_tools: NotRequired[bool]
enable_tool_summary: NotRequired[bool]
embed_widgets: NotRequired[list[dict[str, Any]] | None]
enable_streaming: NotRequired[bool]
Expand Down
1 change: 1 addition & 0 deletions src/sentry/seer/autofix/feature/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def trigger_autofix_feature(
is_context_engine_enabled=False,
enable_frontend_code_search=False,
enable_coding=enable_coding,
enable_pr_context_tools=args.step == AutofixStep.PR_ITERATION,
)

extras: dict[str, Any] = {
Expand Down
2 changes: 2 additions & 0 deletions tests/sentry/seer/autofix/feature/test_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def test_code_changes_enables_coding(self) -> None:
"agent_run_options"
]
assert agent_run_options["enable_coding"] is True
assert agent_run_options["enable_pr_context_tools"] is False

def test_pr_iteration_enables_coding_and_sends_its_step_args(self) -> None:
fake_run = self.create_seer_run(organization=self.organization, seer_run_state_id=123)
Expand Down Expand Up @@ -308,6 +309,7 @@ def test_pr_iteration_enables_coding_and_sends_its_step_args(self) -> None:
assert mock_client_cls.call_args.kwargs["enable_coding"] is True
continue_kwargs = mock_client_cls.return_value.continue_feature_run.call_args.kwargs
assert continue_kwargs["agent_run_options"]["enable_coding"] is True
assert continue_kwargs["agent_run_options"]["enable_pr_context_tools"] is True
assert continue_kwargs["payload"]["step_args"] == {
"iteration_index": 2,
"iteration_id": 41,
Expand Down
Loading