Skip to content

[Bug] Blob Storage getMessages() returns empty [] — URL-encode & Message ID mismatch #76

Description

@ipzoone

Describe the bug

context.agent.store.getMessages() returns empty array [] even though message data exists in Blob Storage.

The index layer and content layer are out of sync due to:

  1. URL-encoding mismatch in path (%3A vs :)
  2. Different Message ID between index pointer and actual content files

To Reproduce

  1. Create LangGraph agent with conversation memory using Blob SDK
  2. Send some messages
  3. Call getMessages() → returns []
  4. Check Blob Storage console → messages actually exist in conversations/.../messages/

Evidence

Index entry (from message_index):

{
  "conversationId": "chat:budi123:javascript-basics",
  "key": "conversations/chat%3Abudi123%3Ajavascript-basics/messages/1785902147491_msg_cb128d2767af4c81bfe573a084b0e642",
  "messageId": "msg_cb128d2767af4c81bfe573a084b0e642",
  "createdAt": 1785902147491
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions