Skip to content

User memory store scope resolution failure in channel conversations #564

@eanzhao

Description

@eanzhao

Problem

Channel conversation LLM turns consistently log a warning:

warn: ActorBackedUserMemoryStore[0]
  Failed to load user memory for prompt injection
  System.InvalidOperationException: User memory store requires an authenticated user scope.
  No scope could be resolved.

User memory context is never injected into the system prompt for channel (Lark) conversations.

Root Cause

ActorBackedUserMemoryStore requires an authenticated user scope (e.g. from HTTP request context), but channel conversation LLM turns run inside an Orleans actor with no HTTP auth context. The scope resolver returns null, causing the store to throw.

Evidence

Every LLM turn in aevatar-console-backend pod logs this warning. The user memory feature is effectively dead for all channel conversations.

PR Target

feature/lark-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions