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)
This commit is contained in:
RAJVARDHAN 2026-09-20 00:54:37 +05:30 • committed by GitHub
parent d87a44abc4
commit d0a61239b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(