mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user