Additional logs to debug container working directories (#10902)

Co-authored-by: Chuck Butkus <chuck@all-hands.dev>
This commit is contained in:
Tim O'Farrell
2025-09-11 09:06:19 -06:00
committed by GitHub
parent 4513bcc622
commit 8257ae70cc
3 changed files with 19 additions and 4 deletions

View File

@@ -567,7 +567,8 @@ class DockerNestedConversationManager(ConversationManager):
env_vars['SERVE_FRONTEND'] = '0'
env_vars['RUNTIME'] = 'local'
# TODO: In the long term we may come up with a more secure strategy for user management within the nested runtime.
env_vars['USER'] = 'root'
env_vars['USER'] = 'openhands' if config.run_as_openhands else 'root'
env_vars['SANDBOX_USER_ID'] = str(config.sandbox.user_id)
env_vars['SESSION_API_KEY'] = self._get_session_api_key_for_conversation(sid)
# We need to be able to specify the nested conversation id within the nested runtime
env_vars['ALLOW_SET_CONVERSATION_ID'] = '1'