fix: improve context panel session visibility

Marks active embedded chat sessions as seen only while focused
Shows real session titles for context panel chat tabs
Names review sessions after the implementation session
This commit is contained in:
Bohdan Triapitsyn
2026-06-28 01:39:15 +03:00
parent 84d7303346
commit 4d4b3aa9d9
4 changed files with 91 additions and 7 deletions
@@ -82,7 +82,7 @@ type Props = {
removeSessionFromFolder: (scopeKey: string, sessionId: string) => void;
addSessionToFolder: (scopeKey: string, folderId: string, sessionId: string) => void;
createFolderAndStartRename: (scopeKey: string, parentId?: string | null) => { id: string } | null;
openContextPanelTab: (directory: string, options: { mode: 'chat'; dedupeKey: string; label: string; readOnly?: boolean }) => void;
openContextPanelTab: (directory: string, options: { mode: 'chat'; dedupeKey: string; label: string; sessionTitleFallback?: string; readOnly?: boolean }) => void;
handleDeleteSession: (session: Session, source?: { archivedBucket?: boolean; hardDelete?: boolean; skipConfirm?: boolean }) => void;
mobileVariant: boolean;
alwaysShowActions: boolean;
@@ -867,6 +867,7 @@ function SessionNodeItemComponent(props: Props): React.ReactNode {
mode: 'chat',
dedupeKey: `session:${session.id}`,
label: sessionTitle,
sessionTitleFallback: sessionTitle,
});
}}
className="[&>svg]:mr-1"