fix: remove dead security_analyzer override on Agent

security_analyzer lives in VerificationSettings, not on Agent.
The model_copy override was a no-op.

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
openhands
2026-03-17 11:54:20 +00:00
parent f07ce85b45
commit 0144424c8e

View File

@@ -1205,14 +1205,13 @@ class LiveStatusAppConversationService(AppConversationServiceBase):
}
).create_agent()
# Runtime-only Agent overrides (agent-type-specific prompting)
# Agent-type-specific prompt overrides
runtime_overrides: dict[str, Any] = {}
if agent_type == AgentType.PLAN:
runtime_overrides['system_prompt_filename'] = 'system_prompt_planning.j2'
runtime_overrides['system_prompt_kwargs'] = {
'plan_structure': format_plan_structure()
}
runtime_overrides['security_analyzer'] = None
else:
runtime_overrides['system_prompt_kwargs'] = {'cli_mode': False}