Trim page props and page the conversation's messages
Bot and workspace lists in page props leave out instructions, memory and workspace context, and carry the last message as a short preview. The header avatar's edit form loads the bot's instructions when it opens. The conversation renders its latest 30 messages and loads older ones as the thread scrolls to its top. Also: the composer shows a placeholder until its editor loads, and `bun start` no longer builds first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -666,6 +666,15 @@ export type BotMessageWithAttachments = BUN_SQLITE_COBBLE_BOT_MESSAGES & {
|
||||
/**
|
||||
* `server:bot-reaction` data: a message's reactions changed.
|
||||
*/
|
||||
/**
|
||||
* A page of a session's older messages, oldest first, and whether there
|
||||
* are older still.
|
||||
*/
|
||||
export type OlderBotMessagesData = {
|
||||
messages: BotMessageWithAttachments[];
|
||||
has_more: boolean;
|
||||
};
|
||||
|
||||
export type BotMessageReactionData = {
|
||||
message_id: number;
|
||||
reactions: BotMessageReaction[];
|
||||
@@ -725,6 +734,10 @@ export type PagePropsType = {
|
||||
bots?: BotWithLastMessage[] | null;
|
||||
bot?: BotWithLastMessage | null;
|
||||
bot_messages?: BotMessageWithAttachments[] | null;
|
||||
/**
|
||||
* The session has messages older than `bot_messages`.
|
||||
*/
|
||||
bot_messages_more?: boolean | null;
|
||||
/**
|
||||
* The open conversation's active session.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user