fix: close mdtodo source modal in web probe

This commit is contained in:
Codex
2026-06-26 12:55:24 +00:00
parent e0df385f12
commit a93236010c
7 changed files with 67 additions and 8 deletions
+1
View File
@@ -138,6 +138,7 @@ export type NodeWebProbeObserveCommandType =
| "openMdtodoReportPreview"
| "toggleMdtodoReportFullscreen"
| "openMdtodoSourceConfig"
| "closeMdtodoSourceConfig"
| "configureMdtodoHwpodSource"
| "probeMdtodoSource"
| "reindexMdtodoSource"
+2 -1
View File
@@ -430,6 +430,7 @@ export function parseNodeWebProbeObserveCommandType(value: string): NodeWebProbe
|| value === "openMdtodoReportPreview"
|| value === "toggleMdtodoReportFullscreen"
|| value === "openMdtodoSourceConfig"
|| value === "closeMdtodoSourceConfig"
|| value === "configureMdtodoHwpodSource"
|| value === "probeMdtodoSource"
|| value === "reindexMdtodoSource"
@@ -447,7 +448,7 @@ export function parseNodeWebProbeObserveCommandType(value: string): NodeWebProbe
|| value === "mark"
|| value === "stop"
) return value;
throw new Error(`web-probe observe command --type must be login, loginAccount, logout, listSessions, switchSessions, preflight, goto, gotoProjectMdtodo, newSession, sendPrompt, steer, cancel, selectProvider, clickSession, refreshCurrentSession, switchAwayAndBack, assertSessionInvariant, selectProjectSource, selectMdtodoSource, selectMdtodoFile, selectMdtodoTask, expandMdtodoTask, openMdtodoReportPreview, toggleMdtodoReportFullscreen, openMdtodoSourceConfig, configureMdtodoHwpodSource, probeMdtodoSource, reindexMdtodoSource, editMdtodoTaskInline, editMdtodoTaskTitle, editMdtodoTaskBody, toggleMdtodoTaskStatus, addMdtodoRootTask, addMdtodoSubTask, continueMdtodoTask, deleteMdtodoTask, launchWorkbenchFromTask, launchWorkbenchFromMdtodo, screenshot, mark, or stop; got ${value}`);
throw new Error(`web-probe observe command --type must be login, loginAccount, logout, listSessions, switchSessions, preflight, goto, gotoProjectMdtodo, newSession, sendPrompt, steer, cancel, selectProvider, clickSession, refreshCurrentSession, switchAwayAndBack, assertSessionInvariant, selectProjectSource, selectMdtodoSource, selectMdtodoFile, selectMdtodoTask, expandMdtodoTask, openMdtodoReportPreview, toggleMdtodoReportFullscreen, openMdtodoSourceConfig, closeMdtodoSourceConfig, configureMdtodoHwpodSource, probeMdtodoSource, reindexMdtodoSource, editMdtodoTaskInline, editMdtodoTaskTitle, editMdtodoTaskBody, toggleMdtodoTaskStatus, addMdtodoRootTask, addMdtodoSubTask, continueMdtodoTask, deleteMdtodoTask, launchWorkbenchFromTask, launchWorkbenchFromMdtodo, screenshot, mark, or stop; got ${value}`);
}
export function parseWebProbeBrowserProxyMode(value: string | undefined): WebProbeBrowserProxyMode {