Skip to content

Commit bfcbe9c

Browse files
committed
show custom assistant icons in chatsessionlist
1 parent b07860c commit bfcbe9c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

web/src/components/sidebar/ChatSessionDisplay.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function ChatSessionDisplay({
2929
parentFolderName,
3030
showDragHandle = true,
3131
projectId,
32+
isCustomAssistant,
3233
}: {
3334
chatSession: ChatSession;
3435
isSelected: boolean;
@@ -40,6 +41,7 @@ export function ChatSessionDisplay({
4041
parentFolderName?: string;
4142
showDragHandle?: boolean;
4243
projectId?: number;
44+
isCustomAssistant?: boolean;
4345
}) {
4446
const router = useRouter();
4547
const [isHovered, setIsHovered] = useState(false);

web/src/components/sidebar/Projects.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,13 @@ export default function Projects({ onOpenProject }: ProjectsProps) {
293293
isSelected={chatSession.id == chatSessionId}
294294
showDragHandle={false}
295295
projectId={p.id}
296+
isCustomAssistant={
297+
currentProjectId === p.id &&
298+
!!currentProjectDetails?.persona_id_to_is_default &&
299+
currentProjectDetails.persona_id_to_is_default[
300+
chatSession.persona_id
301+
] === false
302+
}
296303
/>
297304
))
298305
) : (

0 commit comments

Comments
 (0)