Skip to content

Commit 2d2d088

Browse files
Debug Agentclaude
andcommitted
chore(file_editor): trim verbose comment on supports_vision call
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7a76a1d commit 2d2d088

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

openhands-tools/openhands/tools/file_editor/definition.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ def create(
229229
base_description = "\n".join(description_lines[:2]) # First two lines
230230
remaining_description = "\n".join(description_lines[2:]) # Rest of description
231231

232-
# Add image viewing line if the agent supports vision. Delegates to
233-
# ``agent.supports_vision()`` so ACPAgent can override — its sentinel
234-
# LLM ("acp-managed") is unknown to LiteLLM and would otherwise
235-
# report False even when the wrapped server forwards images to a
236-
# vision-capable model.
232+
# Add image viewing line if the agent supports vision
237233
if conv_state.agent.supports_vision():
238234
tool_description = (
239235
f"{base_description}\n"

0 commit comments

Comments
 (0)