feat(coding): keep one ongoing conversation per delivered agent

This commit is contained in:
brother7 committed 2026-09-28 14:19:02 +08:00
1 parent e54f3d234d
commit 7aa81da616
23 files changed
+1205 -160

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ export function TeacherCompanion({ companion, open, onOpen, bubbleRef }: {
aria-controls="coding-consultation-dock" data-agent-id={agent.teacher_id}
onMouseDown={(event) => event.preventDefault()} onClick={() => onOpen(agent.teacher_id)}>
<span className="teacher-companion-avatar"><TeacherAvatar definition={agent.definition} />
{activeId === agent.teacher_id && invitation && <span className="teacher-companion-unread" aria-hidden="true" />}</span>
{(companion.unreadAgentIds.includes(agent.teacher_id) || (activeId === agent.teacher_id && invitation)) && <span className="teacher-companion-unread" aria-hidden="true" />}</span>
<span className="teacher-companion-name">{agent.definition.name}</span>
{activeId === agent.teacher_id && checking && <Loader2 className="h-3 w-3 shrink-0 animate-spin text-muted-foreground motion-reduce:animate-none" aria-label="智能体正在思考" />}
</button>)}