Skip to content

test(chat): type and directly test fetch_session_messages in the new chat_session_messages module #21353

Open

Description

@mrveiss

Problem

PR #21236 moved the session-message fetch out of chat_sessions.py into the new module autobot-backend/api/chat_session_messages.py to keep the route file under its size baseline. The independent review at head fbe079c7f1 noted two gaps in the new module, non-blocking for that PR:

Acceptance criteria

  • fetch_session_messages has a complete type signature (the request parameter typed as the route passes it).
  • A test exercises fetch_session_messages directly: messages returned for an existing session, the not-found/error path raises the same HTTP error as before the move, and a pending stall question is attached when one exists.

Source

Non-blocking finding of the independent review on PR #21236. Parent: #21022.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions