Fix for nested mount volumes (#8888)

This commit is contained in:
tofarr
2025-06-04 09:30:57 -06:00
committed by GitHub
parent c403973616
commit 3c977bd715
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@@ -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

View File

@@ -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)