fix: toggle the teacher dock from the conversation header

This commit is contained in:
鲨鱼辣椒 committed 2026-09-29 17:00:06 +08:00
1 parent 5de8ea823d
commit 2922f35e4b
6 files changed
+132 -28

No files matched your search

+2 -3
View File
@@ -775,9 +775,8 @@ export function CodingChatPanel({
onRecover={async () => {
if (targetConversationId) await handleRecovery(codingRecovery(runtimeError?.code).action, false);
}}
browserOpen={agentBrowserOpen}
browserAvailable={Boolean(activeProject)}
onToggleBrowser={() => setAgentBrowserOpen((current) => !current)}
consultationAvailable={Boolean(activeProject)}
onToggleConsultation={() => setConsultationOpen((current) => !current)}
projectName={activeProject?.name}
consultationOpen={consultationOpen}
teacherEntry={activeProject ? <TeacherCompanion companion={teacherCompanion} open={consultationOpen} onOpen={openTeacher} onToggle={toggleTeacher} bubbleRef={setTeacherBubble} introductionRef={setTeacherIntroduction} /> : undefined}