feat: add URL-driven workspace state and streamed Codex research

This commit is contained in:
2026-09-28 20:08:28 +09:00
parent 85d23a328b
commit 8085ad2f90
207 changed files with 15287 additions and 16026 deletions
+7 -6
View File
@@ -1,8 +1,9 @@
import { useEffect, useState } from 'react'
import { useSyncExternalStore } from "react";
const subscribe = () => () => {};
const getSnapshot = () => Boolean(document.modelContext);
const getServerSnapshot = () => false;
export function useWebMCPSupported() {
const [supported, setSupported] = useState(false)
useEffect(() => {
setSupported(Boolean(document.modelContext))
}, [])
return supported
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
}