Name sessions opened by handed-off work, and hide empty ones from activity

A session the coordinator's delegation, a routine or a hook opened has
no user message and no reply, so it was never named and showed as
"Untitled conversation". Tasks now name their session too, and a session
with no user message is named from the bot's own messages. Until a
session is named, Latest activity shows what it opened with, and
sessions with no messages are left out of it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-28 07:05:34 +01:00
co-authored by Claude Opus 5.5
parent b4b27dea10
commit f84f0fd0d6
9 changed files with 98 additions and 19 deletions
+4
View File
@@ -275,6 +275,10 @@ export type WorkspaceWithActivity = BUN_SQLITE_COBBLE_WORKSPACES & {
*/
export type WorkspaceActivityItem = BUN_SQLITE_COBBLE_BOT_SESSIONS & {
message_count: number;
/**
* What the session opened with, shown while it has no title yet.
*/
first_message_text?: string | null;
last_message_text?: string | null;
bot_name?: string | null;
bot_image_media_id?: number | null;