Class: PendingMessage

Inherits:
ApplicationRecord show all
Defined in:
app/models/pending_message.rb

Overview

A user message waiting to enter a session’s conversation history. Pending messages live in their own table — they are NOT part of the message stream and have no database ID that could interleave with tool_call/tool_response pairs.

Created when a user sends a message while the session is processing. Promoted to a real Message (delete + create in transaction) when the current agent loop completes, giving the new message an ID that naturally follows the tool batch.