feat: organize project conversations and add coding teacher side chat

This commit is contained in:
2026-09-22 12:30:26 +08:00
parent 2f82b9f79c
commit 9242a40d87
45 changed files with 2987 additions and 1137 deletions

View File

@@ -407,6 +407,9 @@ function App() {
};
const unsubscribeAgentLink = window.electron.ipcRenderer.on('cloud-agent-link', openAgentLink);
openAgentLink();
void hostApiFetch<{draftRevision: number | null}>('/api/coding/teacher-preview/pending-link')
.then(({draftRevision}) => { if (draftRevision) navigate('/coding-teacher-preview?draftRevision=' + draftRevision); })
.catch(() => undefined);
return () => {
if (typeof unsubscribe === 'function') {
@@ -463,6 +466,7 @@ function App() {
<Route path="/kangaroo" element={<Navigate to="/project-config" replace />} />
<Route path="/subagents" element={<Navigate to="/project-config" replace />} />
<Route path="/chat" element={<ProjectChatRoute />} />
<Route path="/coding-teacher-preview" element={<TeacherPreviewPage />} />
<Route path="/deliverables" element={<PreviewScene />} />
<Route path="/image-canvas" element={<ImageCanvas />} />
<Route path="/image-prompts/*" element={<Navigate to="/image-canvas" replace />} />
@@ -489,3 +493,5 @@ function App() {
}
export default App;
import { TeacherPreviewPage } from '@/pages/Chat/TeacherPreviewPage';
import { hostApiFetch } from '@/lib/host-api';