mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
Create OpenHandsAgentSettings(AgentSettings) in the OpenHands codebase that extends the SDK's AgentSettings with a 'security' section containing confirmation_mode (critical) and security_analyzer (major). The SDK's export_schema() picks these up automatically via its metadata conventions. Backend: - SecuritySettings pydantic model with SDK metadata annotations - OpenHandsAgentSettings subclass used by _get_sdk_settings_schema() - _SDK_TO_FLAT_SETTINGS bridges dotted SDK keys to flat Settings attrs so existing consumers (session init, security-analyzer setup) work - _extract_sdk_settings_values seeds from flat fields for UI display Frontend: - /settings/security route renders the security schema section - Nav: LLM -> Security -> Condenser -> Critic (both SAAS and OSS) - Removed empty General page (no schema section exists for it yet) Tests: - New test_get_sdk_settings_schema_includes_security_section - All 119 backend + 10 frontend tests pass Co-authored-by: openhands <openhands@all-hands.dev>