File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
openhands-tools/openhands/tools/execute_bash Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def __call__(
129129 if action .reset and action .is_input :
130130 raise ValueError ("Cannot use reset=True with is_input=True" )
131131
132- if action .reset :
132+ if action .reset or self . session . _closed :
133133 reset_result = self .reset ()
134134
135135 # Handle command execution after reset
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ def test_bash_executor_with_conversation_secrets():
6565 output = "Token: secret-value-123, Key: another-secret-456" ,
6666 )
6767 mock_session .execute .return_value = mock_observation
68+ mock_session ._closed = False
6869 executor .session = mock_session
6970
7071 # Execute command with conversation - secrets should be exported and masked
You can’t perform that action at this time.
0 commit comments