mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
- Update delete_conversation function to use BackgroundTasks parameter - Add sandbox_service parameter for V1 conversation handling - Fix all 6 conversation deletion tests to work with background task pattern - Update test mocks to use AsyncMock for proper async function testing - Add proper exception handling for V1 deletion with V0 fallback Fixes failing tests: - test_delete_conversation - test_delete_v1_conversation_success - test_delete_v1_conversation_not_found - test_delete_v1_conversation_invalid_uuid - test_delete_v1_conversation_service_error - test_delete_v1_conversation_with_agent_server Co-authored-by: openhands <openhands@all-hands.dev>