Skip to content

fix(chat): a reply in flight can re-create chat:conversation:{id} after its session was deleted #18313

Open

Description

@mrveiss

Found in review of #18309 (#18293), LOW. chat_workflow/conversation.py:224 writes the chat:conversation:{id} projection cache after a reply completes. If the session is deleted while that reply is in flight, the write lands after the delete cleared the key (chat_history/session.py:714-715), re-creating a cache entry for a deleted session until its TTL expires.

Acceptance criteria

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions