Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(workflows): reopen details on node selection

Rahman05993a14ef46
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index f231628c..d9fceecd 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `workflows` reopen details on node selection
- `mcp` normalize widget resource discovery
**Changed**
diff --git a/frontend/slices/workflows/app.tsx b/frontend/slices/workflows/app.tsx
index b1758a9e..9fd95e4c 100644
--- a/frontend/slices/workflows/app.tsx
+++ b/frontend/slices/workflows/app.tsx
@@ -82,8 +82,19 @@ export default function WorkflowsApp(props: AppProps) {
const next = await saveSessionWorkflowDraft(sessionView.session.id, stepRef);
setGraphs(await listGraphs(true)); setGraph(next); setLibraryMode("automations"); setSelected(next.nodes[0]?.id ?? null); setDirty(false); setRun(null); setDetailsOpen(false); setMessage(`Saved ${stepRef ?? "session"} as review-first workflow draft`);
});
- const chooseNode = (id: string | null) => { setSelected(id); if (!id) return; setPanel("inspector"); if (overlayPane) setDetailsOpen(true); };
- const chooseSessionNode = (id: string | null) => { setSessionSelected(id); if (id && overlayPane) setDetailsOpen(true); };
+ const chooseNode = (id: string | null) => {
+ setSelected(id);
+ if (!id) return;
+ setPanel("inspector");
+ if (overlayPane) setDetailsOpen(true);
+ else setShowDetails(true);
+ };
+ const chooseSessionNode = (id: string | null) => {
+ setSessionSelected(id);
+ if (!id) return;
+ if (overlayPane) setDetailsOpen(true);
+ else setShowDetails(true);
+ };
const tidy = () => graph && mutate({ ...graph, nodes: tidyWorkflowNodes(graph) });
const toggleLibrary = () => overlayPane ? setLibraryOpen(true) : setShowLibrary((value) => !value);
const toggleDetails = () => overlayPane ? setDetailsOpen(true) : setShowDetails((value) => !value);