Skip to content

In-app chat memory tools still hard-deny on missing_rollout_state — #10094 fixed the Developer API path but not chat #10736

Closed

Description

@mdmohsin7

Summary

#10094 taught the Developer API path to treat missing_rollout_state as "un-enrolled, fall back to the legacy store" rather than a hard deny. The in-app chat retrieval tools were not updated and still hard-deny on the same signal, so users in the legacy cohort get "No memories available for this request." from Omi chat while the memories list screen shows their memories normally.

Where

backend/utils/retrieval/tools/memory_tools.py:220 and :381:

if default_memories.read_decision != MemoryReadDecision.USE_LEGACY_SAFE:
    logger.info(
        "🛑 get_memories_tool - memory chat memory list denied without legacy fallback: "
        f"{default_memories.fallback_reason}"
    )
    return default_memories.text or "No memories available for this request."

Same pattern at backend/utils/retrieval/tool_services/memories.py:84 and :173.

The equivalent check in backend/routers/developer.py:397 was relaxed by #10094:

if memory_result.fallback_reason != 'missing_rollout_state':
    raise HTTPException(status_code=403, ...)
# ... otherwise fall through to the legacy store

Impact

Any account with no users/{uid}/memory_control/state document resolves to DENY_MEMORY / missing_rollout_state, which is the expected un-enrolled state for the legacy cohort — the same population #10094 was written to rescue. For those users, chat cannot see their memories at all. Prod logs show 23 of these denials on 2026-07-27 alone.

It is silent from the user's side: chat simply answers as though the user has no memories, so it reads as the assistant forgetting rather than as an error.

Proposed fix

Apply the #10094 treatment here: when fallback_reason == 'missing_rollout_state', fall through to the legacy memories read instead of returning the "no memories" string. Keep the hard deny for the other reasons (e.g. missing_app_key_scope_grant).

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions