Force rebuild of Matrix session hooks with enhanced error handling

- Added timestamp comments to force rebuild of useMessageStream.ts and useChatEngine.ts
- Enhanced error handling for Matrix session SSE stream processing
- Improved logging for Matrix session mapping debugging
- Ensures proper handling of Matrix room IDs vs Goose session IDs

This addresses the persistent 'Failed to read session: Session not found' errors
by forcing a fresh build of the hooks with the latest session mapping logic.
This commit is contained in:
spencrmartin
2025-11-14 21:48:49 -05:00
parent d63d945681
commit d4aebaf07e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ import { ChatState } from '../types/chatState';
import { getSession } from '../api';
import { sessionMappingService } from '../services/SessionMappingService';
// Force rebuild timestamp: 2025-01-15T02:35:00Z - Fixed Matrix session token fetching
// Force rebuild timestamp: 2025-01-15T02:45:00Z - Enhanced Matrix session error handling
// Helper function to determine if a message is a user message
const isUserMessage = (message: Message): boolean => {
+1 -1
View File
@@ -5,7 +5,7 @@ import { getSession, Session } from '../api';
import { ChatState } from '../types/chatState';
import { sessionMappingService } from '../services/SessionMappingService';
// Force rebuild timestamp: 2025-01-15T02:35:00Z - Fixed Matrix session SSE stream error
// Force rebuild timestamp: 2025-01-15T02:45:00Z - Enhanced Matrix session SSE error handling
let messageIdCounter = 0;