diff --git a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md index 81070c553365..0f22d218b817 100644 --- a/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md +++ b/docs/i18n/fr/docusaurus-plugin-content-docs/current/usage/configuration-options.md @@ -373,7 +373,7 @@ Les options de configuration de l'agent sont définies dans les sections `[agent - Description : Si l'éditeur LLM est activé dans l'espace d'action (fonctionne uniquement avec l'appel de fonction) **Utilisation du micro-agent** -- `use_microagents` +- `enable_prompt_extensions` - Type : `bool` - Valeur par défaut : `true` - Description : Indique si l'utilisation des micro-agents est activée ou non diff --git a/evaluation/benchmarks/swe_bench/run_infer.py b/evaluation/benchmarks/swe_bench/run_infer.py index 511a22c4ed9a..7d13d546d881 100644 --- a/evaluation/benchmarks/swe_bench/run_infer.py +++ b/evaluation/benchmarks/swe_bench/run_infer.py @@ -158,6 +158,7 @@ def get_config( codeact_enable_browsing=RUN_WITH_BROWSING, codeact_enable_llm_editor=False, condenser=metadata.condenser_config, + enable_prompt_extensions=False, ) config.set_agent_config(agent_config) return config diff --git a/frontend/__tests__/components/features/sidebar/sidebar.test.tsx b/frontend/__tests__/components/features/sidebar/sidebar.test.tsx index a6fdef27320f..acefe1ce49bf 100644 --- a/frontend/__tests__/components/features/sidebar/sidebar.test.tsx +++ b/frontend/__tests__/components/features/sidebar/sidebar.test.tsx @@ -111,7 +111,7 @@ describe("Sidebar", () => { await user.click(advancedOptionsSwitch); const apiKeyInput = within(settingsModal).getByLabelText(/API\$KEY/i); - await user.type(apiKeyInput, "SET"); + await user.type(apiKeyInput, "**********"); const saveButton = within(settingsModal).getByTestId( "save-settings-button", diff --git a/frontend/src/components/shared/modals/settings/settings-form.tsx b/frontend/src/components/shared/modals/settings/settings-form.tsx index 9883267c3c1a..e2637bc594d3 100644 --- a/frontend/src/components/shared/modals/settings/settings-form.tsx +++ b/frontend/src/components/shared/modals/settings/settings-form.tsx @@ -171,7 +171,7 @@ export function SettingsForm({ {showAdvancedOptions && ( diff --git a/frontend/src/context/settings-context.tsx b/frontend/src/context/settings-context.tsx index 8f887a07cca3..ef6972de4d2e 100644 --- a/frontend/src/context/settings-context.tsx +++ b/frontend/src/context/settings-context.tsx @@ -35,7 +35,7 @@ export function SettingsProvider({ children }: SettingsProviderProps) { ...newSettings, }; - if (updatedSettings.LLM_API_KEY === "SET") { + if (updatedSettings.LLM_API_KEY === "**********") { delete updatedSettings.LLM_API_KEY; } diff --git a/openhands/core/config/sandbox_config.py b/openhands/core/config/sandbox_config.py index f5b984fec0b9..3ed15a01ecb2 100644 --- a/openhands/core/config/sandbox_config.py +++ b/openhands/core/config/sandbox_config.py @@ -39,7 +39,7 @@ class SandboxConfig(BaseModel): remote_runtime_api_url: str = Field(default='http://localhost:8000') local_runtime_url: str = Field(default='http://localhost') - keep_runtime_alive: bool = Field(default=False) + keep_runtime_alive: bool = Field(default=True) rm_all_containers: bool = Field(default=False) api_key: str | None = Field(default=None) base_container_image: str = Field( diff --git a/openhands/runtime/impl/remote/remote_runtime.py b/openhands/runtime/impl/remote/remote_runtime.py index 3deb7ba40814..79dfd3026d30 100644 --- a/openhands/runtime/impl/remote/remote_runtime.py +++ b/openhands/runtime/impl/remote/remote_runtime.py @@ -31,6 +31,9 @@ class RemoteRuntime(ActionExecutionClient): """This runtime will connect to a remote oh-runtime-client.""" port: int = 60000 # default port for the remote runtime client + runtime_id: str | None = None + runtime_url: str | None = None + _runtime_initialized: bool = False def __init__( self, @@ -71,10 +74,7 @@ def __init__( self.config.sandbox.api_key, self.session, ) - self.runtime_id: str | None = None - self.runtime_url: str | None = None self.available_hosts: dict[str, int] = {} - self._runtime_initialized: bool = False def log(self, level: str, message: str) -> None: message = f'[runtime session_id={self.sid} runtime_id={self.runtime_id or "unknown"}] {message}'