happy-helicopter-7895
06/20/2025, 2:10 PMopenhands CLI, the agent is trying to run this command from a directory that does not exist:chilly-france-44439
06/20/2025, 2:12 PMchilly-france-44439
06/20/2025, 2:12 PMchilly-france-44439
06/20/2025, 2:12 PMmost-glass-98046
06/20/2025, 2:12 PMchilly-france-44439
06/20/2025, 2:13 PMhappy-helicopter-7895
06/20/2025, 2:13 PMchilly-france-44439
06/20/2025, 2:14 PMhappy-helicopter-7895
06/20/2025, 2:14 PMDeprecationWarning a lot:
/Users/seth/venvs/py3_12/lib/python3.12/site-packages/httpx/_models.py:408: DeprecationWarning: Use 'content=<...>' to upload raw bytes/text content.
headers, stream = encode_request(nutritious-balloon-65098
06/20/2025, 2:14 PMchilly-france-44439
06/20/2025, 2:14 PMhappy-helicopter-7895
06/20/2025, 2:15 PMpip install openhands-ai this morning thoughchilly-france-44439
06/20/2025, 2:15 PMpip install git+<https://github.com/All-Hands-AI/OpenHands> and see if it is betterchilly-france-44439
06/20/2025, 2:17 PMnutritious-balloon-65098
06/20/2025, 2:20 PMenable_browsing = False)
• Browser tools are correctly excluded from the agent's tool list
• However, system prompts remain unchanged regardless of runtime type
• This causes the agent to still attempt browser-based solutions (like trying to parse images with browser actions)
Documentation Created:
1. CLI_PROMPT_ISSUE.md - Complete GitHub issue content following the repository's feature request template, including:
◦ Detailed problem description with code references
◦ Root cause analysis
◦ Proposed technical solution
◦ Implementation plan with specific file paths
◦ Benefits and example scenarios
2. CLI_PROMPT_IMPLEMENTATION_PLAN.md - Comprehensive technical implementation guide with:
◦ Directory structure for CLI-specific prompts
◦ Code changes needed in codeact_agent.py and PromptManager
◦ Detection logic for CLI mode
◦ Testing strategy and migration path
3. create_cli_prompt_issue.py - Python script that formats and displays the issue content for easy copying to GitHub
4. ISSUE_SUMMARY.md - Executive summary of the entire analysis and proposed solution
Key Findings
The issue occurs because while the CLI runtime correctly disables browser tools, the agent's system prompts don't change based on runtime type. This leads to the agent attempting browser-based image parsing that fails with "Browser functionality is not implemented in CLIRuntime" errors.
Proposed Solution
Create CLI-specific prompts in openhands/agenthub/codeact_agent/prompts/cli/ that:
• Remove all browser action references
• Add explicit CLI limitations guidance
• Suggest CLI-appropriate alternatives (command-line tools, Python libraries)
• Focus on available tools (bash, file editing, etc.)
Next Steps
The issue is now fully documented and ready to be created in GitHub using the content from CLI_PROMPT_ISSUE.md. This will provide a clear tracking mechanism for implementing the separate CLI prompt system to resolve the browser action space conflicts in CLI mode.happy-helicopter-7895
06/20/2025, 2:20 PMchilly-france-44439
06/20/2025, 2:25 PMnutritious-balloon-65098
06/20/2025, 2:25 PMnutritious-balloon-65098
06/20/2025, 2:27 PMCLIRuntime) doesn't support browser functionality. This leads to:
1. Failed image parsing: Agent tries browser actions but fails in CLI mode
2. Confusing error messages: Users get "Browser functionality is not implemented in CLIRuntime" errors
3. Poor user experience: Agent suggests impossible browser-based solutions
Root Cause Analysis
• CLI runtime correctly disables enable_browsing = False and excludes browser tools
• However, system prompts remain unchanged regardless of runtime type
• Agent may still attempt browser-based solutions due to training patterns
Proposed Solution
The issue documents a comprehensive solution to create CLI-specific prompts that:
• Remove all browser action references
• Emphasize CLI-appropriate alternatives (command-line tools, Python libraries)
• Provide explicit guidance about CLI limitations
• Focus on available tools (bash, file editing, etc.)
Technical Implementation Plan
The issue includes detailed implementation guidance:
• Create openhands/agenthub/codeact_agent/prompts/cli/ directory with CLI-specific templates
• Modify CodeActAgent to detect CLI mode and use appropriate prompts
• Add CLI limitations guidance and alternative tool suggestions
This issue will help track and resolve the fundamental mismatch between agent capabilities and CLI runtime limitations, improving the user experience for CLI users who encounter image parsing failures.chilly-france-44439
06/20/2025, 2:27 PMhappy-helicopter-7895
06/20/2025, 2:42 PM