mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
Restricted persistent sandbox to opendevin user only (#2177)
This commit is contained in:
committed by
GitHub
parent
3b8a649b3d
commit
aee3d506e6
@@ -217,6 +217,10 @@ class DockerSSHBox(Sandbox):
|
||||
raise ex
|
||||
|
||||
if config.persist_sandbox:
|
||||
if not self.run_as_devin:
|
||||
raise Exception(
|
||||
'Persistent sandbox is currently designed for opendevin user only. Please set run_as_devin=True in your config.toml'
|
||||
)
|
||||
self.instance_id = 'persisted'
|
||||
else:
|
||||
self.instance_id = (sid or '') + str(uuid.uuid4())
|
||||
|
||||
Reference in New Issue
Block a user