Chat stack: groups of open chats, synced with the open-chat set
A chat dropped onto the middle of another makes a named group (asked at once, "Group N" by default); onto a group it joins, a group dropped onto a chat takes it in, groups merge. The top level shows each group as a small pile with its name and count; a tap opens it in place under a header that leads back (also the scrim, Back and Escape). In a group, dropping a chat on the header leaves the group; a group of one dissolves. The close button ungroups a dropped group with Undo. Rename, Ungroup, Close all (with Undo), Move to group and Remove from group are in the group menu and as semantic actions. Each open-chat entry carries its group name (protocol field "group", omitted when ungrouped; older clients ignore it), stored and pushed by the server like the order; names are trimmed, printable, at most 80 characters. Needs a server restart to keep groups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,7 @@ class ChatStackEntry {
|
||||
required this.paneId,
|
||||
required this.session,
|
||||
this.current = false,
|
||||
this.group,
|
||||
});
|
||||
|
||||
final String paneId;
|
||||
@@ -23,6 +24,9 @@ class ChatStackEntry {
|
||||
/// Whether this is the chat on screen.
|
||||
final bool current;
|
||||
|
||||
/// The chat stack group it is in, or null.
|
||||
final String? group;
|
||||
|
||||
String get sessionId => '${session['id'] ?? ''}';
|
||||
String get title => chatSessionTitle(session);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user