feat: organize project conversations and add coding teacher side chat
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user