π OpenHands: AI-Driven Development
refactor: do not add DEBUG env var when it is not set (#6690)
Xingyao Wanga371562d942b
diff --git a/openhands/runtime/impl/remote/remote_runtime.py b/openhands/runtime/impl/remote/remote_runtime.pyindex c54bb69dbd..068461cc61 100644--- a/openhands/runtime/impl/remote/remote_runtime.py+++ b/openhands/runtime/impl/remote/remote_runtime.py@@ -212,11 +212,9 @@ class RemoteRuntime(ActionExecutionClient):plugins=self.plugins,app_config=self.config,)- environment = {- 'DEBUG': 'true'- if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true'- else '',- }+ environment = {}+ if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true':+ environment['DEBUG'] = 'true'environment.update(self.config.sandbox.runtime_startup_env_vars)start_request = {'image': self.container_image,