Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix for nested mount volumes (#8888)

tofarr3c977bd7155d
diff --git a/.gitignore b/.gitignore
index ecda38b382..df48a5095f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -166,7 +166,6 @@ cython_debug/
# https://stackoverflow.com/questions/32964920/should-i-commit-the-vscode-folder-to-source-control
.vscode/**/*
!.vscode/extensions.json
-!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json
diff --git a/openhands/server/conversation_manager/docker_nested_conversation_manager.py b/openhands/server/conversation_manager/docker_nested_conversation_manager.py
index cac91fdef3..db6e071389 100644
--- a/openhands/server/conversation_manager/docker_nested_conversation_manager.py
+++ b/openhands/server/conversation_manager/docker_nested_conversation_manager.py
@@ -440,8 +440,9 @@ class DockerNestedConversationManager(ConversationManager):
else:
volumes = [v.strip() for v in config.sandbox.volumes.split(',')]
conversation_dir = get_conversation_dir(sid, user_id)
+
volumes.append(
- f'{config.file_store_path}/{conversation_dir}:{OpenHandsConfig.model_fields["file_store_path"].default}/{conversation_dir}:rw'
+ f'{config.file_store_path}/{conversation_dir}:/root/openhands/file_store/{conversation_dir}:rw'
)
config.sandbox.volumes = ','.join(volumes)