+ {panelSession && (
+
setPanelSession(null)}
+ onResume={doResume}
+ />
+ )}
+
{/* Conversation column */}
{activeSessionId && (
@@ -125,16 +189,66 @@ export function AppShell() {
-
{ await resumeSession(id); setActiveSessionId(id); }}
- menuFor={() => null}
- />
+ {showArchive ? (
+
+ ) : (
+
+ {groups.map((g) => (
+
+
{g}
+
s.group === g)}
+ activeSessionId={activeSessionId}
+ onOpenPanel={openPanel}
+ menuFor={menuFor}
+ />
+
+ ))}
+
+ {groups.length > 0 && (
+
No group
+ )}
+
!s.group)}
+ activeSessionId={activeSessionId}
+ onOpenPanel={openPanel}
+ menuFor={menuFor}
+ />
+
+
+ )}
+
+
+ {renameTarget && (
+ { if (!o) setRenameTarget(null); }}
+ onSubmit={async (name) => { await renameSession(renameTarget.id, name); setRenameTarget(null); refresh(); }}
+ />
+ )}
+ {deleteTarget && (
+ { if (!o) setDeleteTarget(null); }}
+ onConfirm={async () => {
+ await deleteSession(deleteTarget.id);
+ if (panelSession?.id === deleteTarget.id) setPanelSession(null);
+ if (activeSessionId === deleteTarget.id) { resetSession(); setActiveSessionId(null); }
+ setDeleteTarget(null); refresh();
+ }}
+ />
+ )}
);
}