Skip to content

A Few Session Related Issues #4899

@alexhancock

Description

@alexhancock

Start of session

To Reproduce
Steps to reproduce the behavior:

  1. Go to chat and send a message "hi"
  2. Observe JS console and see error:
CHAT ENGINE RECEIVED ERROR FROM MESSAGE STREAM: {
  "errorMessage": "Failed to read session: Session not found",
  "errorName": "Error",
  "errorStack": "Error: Failed to read session: Session not found\n    at http://localhost:5173/src/hooks/useMessageStream.ts:131:27\n    at async http://localhost:5173/src/hooks/useMessageStream.ts:205:33\n    at async http://localhost:5173/src/hooks/useMessageStream.ts:255:7",
  "timestamp": "2025-09-30T16:12:13.376Z",
  "sessionId": ""
}
  1. Observe no message added to chat
  2. Send another message "hi"
  3. Observe message showing up and no error

Manual compaction

To Reproduce
Steps to reproduce the behavior:

  1. Go to chat and send a message "hi"
  2. Click context management popover and click "compact now"
  3. Observe error in JS console:
Error during compaction: Error: Context management failed: Error: Context management failed: Failed to deserialize the JSON body into the target type: missing field `sessionId` at line 1 column 1809

Start a new session.
    at manageContextFromBackend (index.ts:46:11)
    at async ContextManager.tsx:47:33
    at async ContextManager.tsx:116:7
  1. Observe compaction did not occur

Adding Extensions

To Reproduce
Steps to reproduce the behavior:

  1. Go to extensions section and click "Add custom extension"
  2. Enter title and description as anything. Use npx -y @modelcontextprotocol/server-everything as a test server
  3. Observe error in JS console:
ExtensionsView: No session ID available
ExtensionsView | @ | ExtensionsView.tsx:38
  1. Observe extension was not added

Metadata

Metadata

Assignees

No one assigned

    Labels

    p0Priority 0 - Critical/Urgent

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions