You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
execute_bash tool should be able to inherent current env vars #243
and then start a new execute_bash tool and try to echo $A, it won't print anything since we start a new branch tmux/subprocess session independent of the current shell.
This issue appears to be completely empty with no title or description provided, making it impossible to understand what problem needs to be solved. The lack of any contextual information, technical details, or problem description creates significant barriers to resolution.
You can make the issue easier to resolve by addressing these concerns in the conversation:
• Provide a clear title and detailed description of the problem you're experiencing
• Include specific error messages, code snippets, or examples that demonstrate the issue
• Add information about your environment, setup, and steps to reproduce the problem
TmuxTerminal fix: Added env = os.environ.copy() and passed environment=env to new_session() and new_window() calls (3 lines of actual changes)
Test coverage: Added test_environment_variable_inheritance_from_parent() to verify the fix works for both terminal types
Root Cause: TmuxTerminal wasn't passing environment variables to tmux session creation, while SubprocessTerminal already worked correctly.
🎯 Result:
Now when you export A=A in the parent process and use the execute_bash tool with echo $A, the environment variable will be correctly inherited and displayed in both tmux and subprocess terminal backends.
Activity
openhands-ai commentedon Sep 13, 2025
I'm on it! xingyaoww can track my progress at all-hands.dev
🔴 Solvability: HARD
This issue appears to be completely empty with no title or description provided, making it impossible to understand what problem needs to be solved. The lack of any contextual information, technical details, or problem description creates significant barriers to resolution.
You can make the issue easier to resolve by addressing these concerns in the conversation:
• Provide a clear title and detailed description of the problem you're experiencing
• Include specific error messages, code snippets, or examples that demonstrate the issue
• Add information about your environment, setup, and steps to reproduce the problem
Fix execute_bash tool to inherit environment variables from parent pr…
openhands-ai commentedon Sep 13, 2025
Summary
I have successfully fixed issue #243 - "
execute_bashtool should be able to inherit current env vars".✅ Request Completion Checklist:
openhands/fix-execute-bash-env-inheritanceprefix as requiredexecute_bashtool should be able to inherent current env vars #243"🔧 Changes Made:
Code Changes (concise and targeted):
env = os.environ.copy()and passedenvironment=envtonew_session()andnew_window()calls (3 lines of actual changes)test_environment_variable_inheritance_from_parent()to verify the fix works for both terminal typesRoot Cause: TmuxTerminal wasn't passing environment variables to tmux session creation, while SubprocessTerminal already worked correctly.
🎯 Result:
Now when you
export A=Ain the parent process and use the execute_bash tool withecho $A, the environment variable will be correctly inherited and displayed in both tmux and subprocess terminal backends.PR Ready for Review: #245
View full conversation