Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fixes for upcoming changes to remote API (#4834)

Robert Brennan1b5f5bcdad13
diff --git a/openhands/runtime/impl/remote/remote_runtime.py b/openhands/runtime/impl/remote/remote_runtime.py
index 60d01551f8..16692709f5 100644
--- a/openhands/runtime/impl/remote/remote_runtime.py
+++ b/openhands/runtime/impl/remote/remote_runtime.py
@@ -137,7 +137,7 @@ class RemoteRuntime(Runtime):
try:
response = self._send_request(
'GET',
- f'{self.config.sandbox.remote_runtime_api_url}/runtime/{self.sid}',
+ f'{self.config.sandbox.remote_runtime_api_url}/sessions/{self.sid}',
timeout=5,
)
except requests.HTTPError as e:
@@ -227,7 +227,6 @@ class RemoteRuntime(Runtime):
'command': command,
'working_dir': '/openhands/code/',
'environment': {'DEBUG': 'true'} if self.config.debug else {},
- 'runtime_id': self.sid,
}
# Start the sandbox using the /start endpoint
@@ -276,7 +275,7 @@ class RemoteRuntime(Runtime):
self.log('debug', f'Waiting for runtime to be alive at url: {self.runtime_url}')
runtime_info_response = self._send_request(
'GET',
- f'{self.config.sandbox.remote_runtime_api_url}/runtime/{self.runtime_id}',
+ f'{self.config.sandbox.remote_runtime_api_url}/sessions/{self.sid}',
)
runtime_data = runtime_info_response.json()
assert 'runtime_id' in runtime_data