Skip to content

Commit

Permalink
update port number
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Dec 22, 2024
1 parent cf91b76 commit 16f0709
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openhands/runtime/impl/eventstream/eventstream_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ def __init__(
self.persist_sandbox = self.config.sandbox.persist_sandbox
self.fast_boot = self.config.sandbox.fast_boot
if self.persist_sandbox:
# odd port number will be used for vscode
if 'resolve_issue' in sys.argv[1]:
self._container_port = 63709
self._container_port = 63708
elif self.config.run_as_openhands:
user = 'oh'
self._container_port = self.config.sandbox.port
else:
user = 'root'
self._container_port = 63711
self._container_port = 63712
path = config.workspace_mount_path or sid
os.environ['selection_id'] = path
path = ''.join(c if c.isalnum() else '_' for c in path) # type: ignore
Expand Down

0 comments on commit 16f0709

Please sign in to comment.