fix: show teacher introductions as standalone clickable bubbles

This commit is contained in:
鲨鱼辣椒 committed 2026-09-29 17:16:37 +08:00
1 parent 2922f35e4b
commit 3a175101c9
11 files changed
+43 -26

No files matched your search

@@ -33,7 +33,6 @@ export function Layout() {
welcome: null, enabled: true, loading: false, checking: false, error: null,
welcomes: welcomeMode && !open ? agents.flatMap((agent, index) => dismissed.includes(agent.teacher_id) ? [] : [{ agentId: agent.teacher_id, definition: agent.definition, text: agent.definition.description, tone: index % 3 }]) : [],
dismissWelcome: (id: string) => setDismissed(ids => [...new Set([...ids, id])]),
dismissWelcomes: () => setDismissed(agents.map(agent => agent.teacher_id)),
refreshing, refreshStatus,
refresh: async () => {
setRefreshing(true);