🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: always recommend task templates regardless of brief count (#14508)
YuTengjing555a375e676d
diff --git a/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts b/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.tsindex 294720e6b45..3d031031c20 100644--- a/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts+++ b/src/features/RecommendTaskTemplates/useDailyBriefRecommendationsUI.ts@@ -14,9 +14,6 @@ import { authSelectors } from '@/store/user/slices/auth/selectors';import { useResolvedInterestKeys } from './useResolvedInterestKeys';-/** Hide the recommend section once the user already has more existing briefs than this. */-const MAX_EXISTING_BRIEFS_FOR_RECOMMEND = 1;-export type DailyBriefRecommendationsUIState =| { mode: 'hidden' }| { mode: 'skeleton' }@@ -30,7 +27,6 @@ export function useDailyBriefRecommendationsUI(): DailyBriefRecommendationsUIStaconst useFetchBriefs = useBriefStore((s) => s.useFetchBriefs);useFetchBriefs(isLogin && !!enableAgentTask);- const briefs = useBriefStore(briefListSelectors.briefs);const isInit = useBriefStore(briefListSelectors.isBriefsInit);const interestKeys = useResolvedInterestKeys();@@ -78,7 +74,6 @@ export function useDailyBriefRecommendationsUI(): DailyBriefRecommendationsUIStauseFetchLobehubSkillConnections(requiredSources.has('lobehub'));if (!swrEnabled) return { mode: 'hidden' };- if (isInit && briefs.length > MAX_EXISTING_BRIEFS_FOR_RECOMMEND) return { mode: 'hidden' };if (!isInit || isLoading) return { mode: 'skeleton' };if (templates.length === 0) return { mode: 'hidden' };