Skip to content

v0.2.4 - Router Bypass Hotfix

Choose a tag to compare

@jwesleye jwesleye released this 19 Sep 14:44
· 14 commits to main since this release

🔧 Critical Hotfix - UI Routing Issue

This hotfix release resolves the critical issue where Docker deployments from PyPI were showing the description page instead of the chat interface.

🐛 Root Cause Fixed

  • React Router Conflicts: React Router was not handling default routes correctly in Docker environments
  • Server vs Client Routing: Mismatch between server-side SPA serving and client-side routing
  • Docker Environment Issues: Browser history API problems in containerized deployments

✅ Solution Implemented

  • Direct Conditional Rendering: Bypassed React Router entirely with pathname-based component selection
  • Chat Interface Default: Forces ChatPage to load by default unless explicitly on /describe route
  • Preserved Navigation: Maintains all navigation functionality while ensuring proper default behavior
  • Docker Compatibility: Eliminates routing conflicts specific to containerized environments

🔍 Technical Changes

  • Replaced <Routes> and <Route> components with direct conditional rendering
  • Added pathname detection: shouldShowDescription = pathname === '/describe'
  • Removed dependency on React Router for default route handling
  • Maintained backward compatibility with existing navigation patterns

📦 Immediate Impact

  • ✅ Chat interface now loads by default in all Docker deployments
  • ✅ Description page still accessible via /describe route
  • ✅ No breaking changes to existing functionality
  • ✅ Resolves reported PyPI Docker deployment issues

This is a critical fix for users experiencing the routing issue reported with v0.2.2 and v0.2.3.

Full Changelog: v0.2.3...v0.2.4