π OpenHands: AI-Driven Development
replace erroneous rstrip() with removesuffix() (#8024)
Chase5d749aeba795
diff --git a/openhands/agenthub/codeact_agent/function_calling.py b/openhands/agenthub/codeact_agent/function_calling.pyindex 1b8a34fff2..023acca660 100644--- a/openhands/agenthub/codeact_agent/function_calling.py+++ b/openhands/agenthub/codeact_agent/function_calling.py@@ -199,7 +199,7 @@ def response_to_actions(response: ModelResponse) -> list[Action]:# ================================================elif tool_call.function.name.endswith(MCPClientTool.postfix()):action = McpAction(- name=tool_call.function.name.rstrip(MCPClientTool.postfix()),+ name=tool_call.function.name.removesuffix(MCPClientTool.postfix()),arguments=tool_call.function.arguments,)else: