Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge PR #1535 mastery skills and persona presets

Bingxi Zhao (Frank)a6d15e4730c8
diff --cc web/components/chat/home/StandaloneComposer.tsx
index a57c83802,8e508ad68..2554f13ba
--- a/web/components/chat/home/StandaloneComposer.tsx
+++ b/web/components/chat/home/StandaloneComposer.tsx
@@@ -27,8 -27,8 +27,9 @@@ import { useTranslation } from "react-i
import ChatComposer from "@/components/chat/home/ChatComposer";
import type { ContextBudget } from "@/components/chat/home/ContextBudgetChip";
+ import type { ResourceSelection } from "@/features/chat/ChatStateAdapter";
import type { CapabilityDef } from "@/features/capabilities/presentation";
+import type { ResourceSelection } from "@/features/chat/ChatStateAdapter";
import type { ComposerResourceCatalog } from "@/hooks/useComposerResources";
import type { SelectedHistorySession } from "@/components/chat/HistorySessionPicker";
import type { SelectedQuestionEntry } from "@/components/chat/QuestionBankPicker";
@@@ -897,11 -900,11 +905,14 @@@ function StandaloneComposerImpl(
onSubagentBudgetChange={setSubagentBudget}
personaSelection={personaSelection}
onPersonaSelectionChange={onPersonaSelectionChange}
+ resourceCatalog={resourceCatalog}
+ resourceSelection={resourceSelection}
+ onResourceSelectionChange={onResourceSelectionChange}
personaSelectorOpen={personaSelectorOpen}
onPersonaSelectorOpenChange={setPersonaSelectorOpen}
+ resourceCatalog={resourceCatalog}
+ resourceSelection={resourceSelection}
+ onResourceSelectionChange={onResourceSelectionChange}
llmOptions={llmOptions}
activeLLMDefault={activeLLMDefault}
llmSelection={llmSelection}
diff --cc web/components/space/learning/MasteryComposer.tsx
index 9c6b179aa,9de28c192..9519625e3
--- a/web/components/space/learning/MasteryComposer.tsx
+++ b/web/components/space/learning/MasteryComposer.tsx
@@@ -60,14 -61,10 +61,16 @@@ export function MasteryComposer(
setPersonaSelection,
setResourceSelection,
} = useChatStateAdapter();
+ // A mastery session is a chat session in a workspace, so the same skills and
+ // MCP servers are on offer here. Without the catalog the composer had no
+ // Skills entry at all, and a learner whose workspace allows a skill could
+ // only reach it by opening the chat page instead (#1534).
+ const { workspaces } = useChatWorkspaces();
+ const resourceCatalog = useComposerResources(state.workspaceId, workspaces);
// Pins the turn to the tutor loop; returns no capabilities to offer.
useWorkspaceChatActions({ pinnedCapability: MASTERY_CAPABILITY_VALUE });
+ const { workspaces } = useChatWorkspaces();
+ const resourceCatalog = useComposerResources(state.workspaceId, workspaces);
const contextBudget = useContextBudget(state.messages);
const { t } = useTranslation();