perf(agent): optimize active task lookup using indexed sessionId column

This commit is contained in:
yiling
2026-07-14 15:44:10 +08:00
parent cd48d2d389
commit a7dc7bbff2
13 changed files with 69 additions and 27 deletions
@@ -630,10 +630,7 @@ export function ChatbotSidebar({ projectId, contextAssetId }: ChatbotSidebarProp
</Select>
) : (
<div className="flex items-center gap-1.5 px-2 py-1 text-[11px] text-muted-foreground/60 italic select-none">
<Bot className="h-3.5 w-3.5" />
<span>
{m.no_chat_agents_warning ? m.no_chat_agents_warning() : 'No agents'}
</span>
<span>{m.no_chat_agents_warning()}</span>
</div>
)}
</div>