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
* Update agent-sdk version and import paths
- Update agent-sdk SHA to latest commit (ab8980714dd397f26fe811227afbc533c59fae70)
- Change subdirectory from openhands/core to openhands/sdk
- Update import paths from openhands.core.* to openhands.sdk.*
- Replace CodeActAgent with Agent class
- Update lock file with new dependencies
- All tests passing
Fixes#25
Co-authored-by: openhands <openhands@all-hands.dev>
* Fix binary build error and improve error handling
- Update PyInstaller spec to use new agent-sdk import paths (openhands.sdk instead of openhands.core)
- Fix missing prompt file error by updating data collection paths
- Improve error handling to return proper exit codes instead of exceptions
- Update CI to properly test binary startup and catch errors
- Add comprehensive binary testing for missing API keys and prompt files
- Update tests to match new return code behavior
Fixes the 'Prompt file system_prompt.j2 not found' error in binary builds.
* Refactor setup_agent to raise exceptions instead of returning exit codes
- Created AgentSetupError exception class with exit_code attribute
- Modified setup_agent() to raise AgentSetupError instead of returning exit codes
- Updated run_agent_chat() to catch AgentSetupError and return appropriate exit code
- This allows GitHub CI to properly catch and handle setup failures
Co-authored-by: openhands <openhands@all-hands.dev>
* Rework agent chat and CI to use message outputs instead of exit codes
- Remove exit code dependencies from agent_chat.py and simple_main.py
- Functions now raise exceptions and exit normally with sys.exit()
- Update CI to test message outputs for long-lived process behavior
- Add comprehensive CI tests for interactive commands (/help, /status, /exit)
- Update unit tests to expect SystemExit exceptions instead of return codes
- Improve error handling to be more natural and maintainable
Co-authored-by: openhands <openhands@all-hands.dev>
* Simplify CI to use single test job with environment variables
- Remove complex error checking and multiple test jobs
- Use single test job with LITELLM_API_KEY and LITELLM_MODEL already exported
- Test /status, /help, and /exit commands in sequence
- Simply display output without explicit validation checks
- Cleaner and more maintainable CI approach
Co-authored-by: openhands <openhands@all-hands.dev>
* Simplify build and CI tests
- Focus CI on core functionality: app startup and /help command
- Remove complex exit code testing and error handling verification
- Simplify build.py test_executable() to test /help command output
- Update CI workflow to verify expected help output content
- Maintain all existing functionality while reducing test complexity
Co-authored-by: openhands <openhands@all-hands.dev>
* Clean up error handling: remove sys.exit() calls and let application finish normally
- Remove sys.exit() calls from agent_chat.py and simple_main.py
- Replace with proper exception raising to let application finish normally
- CI and build will still catch errors through output validation
- Tested that CI still detects build/runtime errors without explicit exit codes
Co-authored-by: openhands <openhands@all-hands.dev>
* Fix linting: remove unused sys import
Co-authored-by: openhands <openhands@all-hands.dev>
* Update tests to match new error handling behavior
- Tests now expect original exceptions instead of SystemExit
- ImportError and general exceptions are now raised directly
- This aligns with the cleanup that removed sys.exit() calls
Co-authored-by: openhands <openhands@all-hands.dev>
---------
Co-authored-by: openhands <openhands@all-hands.dev>
0 commit comments