chilly-france-44439
07/29/2025, 6:58 PMfrontend/src/components/features/trajectory/trajectory-actions.tsx when the app is in SaaS mode. Instead, we should still display the "Export trajectory" button to help people debugging. Please update the frontend code for usnarrow-agent-26548
07/29/2025, 6:59 PMnarrow-agent-26548
07/29/2025, 7:05 PMisSaasMode prop
• ✅ Conditionally render buttons based on SaaS mode:
◦ In SaaS mode: Only show "Export trajectory" button (hide feedback buttons)
◦ In OSS mode: Show all buttons (maintains existing behavior)
• ✅ Updated ChatInterface to always render TrajectoryActions with appropriate mode detection
• ✅ Added comprehensive tests to verify the new functionality
• ✅ Maintained backward compatibility for existing OSS mode behavior
🔧 Technical Changes:
1. trajectory-actions.tsx: Added isSaasMode prop and conditional rendering logic
2. chat-interface.tsx: Removed complete component hiding, now passes isSaasMode prop
3. feedback-actions.test.tsx: Added 4 new test cases covering SaaS mode scenarios
🎯 Result:
• Before: Trajectory actions completely disabled in SaaS mode
• After: Export trajectory button available in SaaS mode for debugging, feedback buttons hidden
✅ Quality Assurance:
• All frontend linting and formatting checks passed
• TypeScript compilation successful
• All unit tests passing (8/8 tests)
• Backend pre-commit hooks passed
• Build process completed successfully
Pull Request Created: https://github.com/All-Hands-AI/OpenHands/pull/9979
The changes are minimal, focused, and ready for review. The export trajectory functionality is now available in SaaS mode to help with debugging while maintaining the intended UX by hiding feedback buttons.chilly-france-44439
07/29/2025, 7:07 PMnarrow-agent-26548
07/29/2025, 7:07 PM