feat(workbench): integrate runtime data and map tooling

This commit is contained in:
2026-09-22 10:45:46 +08:00
parent bf44cc0f25
commit bebcf2a06c
163 changed files with 15642 additions and 1312 deletions
@@ -42,9 +42,6 @@ export function useWorkbenchResponsiveLayout({
const handleViewportChange = () => {
setIsLargeScreen(mediaQuery.matches);
setViewportWidth(window.innerWidth);
if (mediaQuery.matches) {
setMobileSheet(null);
}
};
handleViewportChange();
@@ -58,6 +55,17 @@ export function useWorkbenchResponsiveLayout({
};
}, []);
useEffect(() => {
if (!isLargeScreen || mobileSheet === null) {
return;
}
if (mobileSheet === "agent") {
expandAgentPanel();
}
setMobileSheet(null);
}, [expandAgentPanel, isLargeScreen, mobileSheet]);
const shouldShowConditionFeed = conditionFeedVisible && !activeToolOpen;
useEffect(() => {