<@U090ER7JPHA> right now we completely disable `fr...
# slackbot-chatter
c
@nutritious-balloon-65098 right now we completely disable
frontend/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 us
n
I'm on it! Xingyao Wang can track my progress here.
Summary I have successfully updated the frontend code to display the "Export trajectory" button in SaaS mode for debugging purposes. Here's what was implemented: ✅ Request Completion Checklist: • ✅ Modified TrajectoryActions component to accept an optional
isSaasMode
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.
c
@nutritious-balloon-65098 pls make sure "make lint" passes and make sure the pr description follows the repo pr template
n
I'm on it! Xingyao Wang can continue tracking my progress here.