From d0a61239b7d8f257af89936d00ccd87b05818c61 Mon Sep 17 00:00:00 2001 From: RAJVARDHAN <95933896+vardhans07@users.noreply.github.com> Date: Sun, 20 Sep 2026 00:54:37 +0530 Subject: [PATCH] feat(runner): plumb subagent_model through run_strix_scan to make_child_factory (#1339) feat(runner): plumb subagent_model through run_strix_scan to make_child_factory (#1339) --- strix/core/runner.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/strix/core/runner.py b/strix/core/runner.py index b40a36b0e..c4329075b 100644 --- a/strix/core/runner.py +++ b/strix/core/runner.py @@ -206,6 +206,7 @@ async def run_strix_scan( status_sink: StatusSink | None = None, mcp_connection_requests: list[McpConnectionRequest] | None = None, mcp_status_sink: McpStatusSink | None = None, + subagent_model: str | None = None, ) -> RunResultBase | None: """Run or resume one Strix scan against a sandbox. @@ -502,14 +503,15 @@ async def run_strix_scan( ) child_agent_builder = make_child_factory( - scan_mode=scan_mode, - is_whitebox=is_whitebox, - is_diff_scoped=is_diff_scoped, - interactive=interactive, - chat_completions_tools=chat_completions_tools, - strict_tool_schemas=strict_tool_schemas, - system_prompt_context=scope_context, - ) + scan_mode=scan_mode, + is_whitebox=is_whitebox, + is_diff_scoped=is_diff_scoped, + interactive=interactive, + chat_completions_tools=chat_completions_tools, + strict_tool_schemas=strict_tool_schemas, + system_prompt_context=scope_context, + subagent_model=subagent_model or scan_config.get("subagent_model"), + ) async def spawn_child_agent(**kwargs: Any) -> dict[str, Any]: return await start_child_agent(