Skip to content

Commit d93bad4

Browse files
committed
Force rebuild of Matrix session error fixes
- Add timestamp comments to force browser cache refresh - Ensure Matrix session ID checks are properly applied - Both useChatEngine.ts and useMessageStream.ts now skip backend calls for Matrix sessions - Matrix room IDs (starting with '!') are properly filtered out from Goose session API calls This should resolve the persistent 'Failed to read session: Session not found' errors.
1 parent 59e55a5 commit d93bad4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ui/desktop/src/hooks/useChatEngine.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { ChatType } from '../types/chat';
1717
import { ChatState } from '../types/chatState';
1818
import { getSession } from '../api';
1919

20+
// Force rebuild timestamp: 2025-01-15T02:35:00Z - Fixed Matrix session token fetching
21+
2022
// Helper function to determine if a message is a user message
2123
const isUserMessage = (message: Message): boolean => {
2224
if (message.role === 'assistant') {

ui/desktop/src/hooks/useMessageStream.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { createUserMessage, hasCompletedToolCalls, Message, Role } from '../type
44
import { getSession, Session } from '../api';
55
import { ChatState } from '../types/chatState';
66

7+
// Force rebuild timestamp: 2025-01-15T02:35:00Z - Fixed Matrix session SSE stream error
8+
79
let messageIdCounter = 0;
810

911
function generateMessageId(): string {

0 commit comments

Comments
 (0)