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
Fix Matrix chat history loading and backend compatibility
Enhanced Session Mapping Service:
- Modified getBackendSessionId to return null for Matrix sessions without mappings
- Added shouldMakeBackendCalls method to check if backend calls should be made
- Added ensureMappingExists method for creating mappings for existing Matrix rooms
- Prevents 404 errors when loading Matrix chat history without existing mappings
Updated Backend Integration:
- useChatEngine now skips session token fetching for Matrix sessions without mappings
- useMessageStream SSE handling skips session data fetching for unmapped Matrix sessions
- Proper null checking prevents backend API calls with Matrix room IDs
- Comprehensive logging for debugging session mapping decisions
Matrix Chat History Support:
- Matrix sessions loaded from history no longer cause backend 404 errors
- Sessions without mappings gracefully skip backend calls while maintaining Matrix functionality
- Future enhancement: can create mappings on-demand for existing Matrix rooms
- Maintains full compatibility with existing Goose sessions
This resolves the 'GET /sessions/!roomId 404 Not Found' errors when loading Matrix chat history
while preserving all Matrix collaborative features and backend compatibility for mapped sessions.
0 commit comments