diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx index 5e88c8b0..7d251cbf 100644 --- a/ui/src/pages/AgentDetail.tsx +++ b/ui/src/pages/AgentDetail.tsx @@ -1803,65 +1803,65 @@ function PromptsTab({ Advanced - + - - - Mode - - - - - - Managed: Paperclip stores and serves the instructions bundle. External: you provide a path on disk where the instructions live. - - - - - { - if (currentMode === "external") { - externalBundleRef.current = { - rootPath: currentRootPath, - entryFile: currentEntryFile, - selectedFile: selectedOrEntryFile, - }; - } - const nextEntryFile = currentEntryFile || "AGENTS.md"; - setBundleDraft({ - mode: "managed", - rootPath: bundle?.managedRootPath ?? currentRootPath, - entryFile: nextEntryFile, - }); - setSelectedFile(nextEntryFile); - }} - > - Managed - - { - const externalBundle = externalBundleRef.current; - const nextEntryFile = externalBundle?.entryFile ?? currentEntryFile ?? "AGENTS.md"; - setBundleDraft({ - mode: "external", - rootPath: externalBundle?.rootPath ?? (bundle?.mode === "external" ? (bundle.rootPath ?? "") : ""), - entryFile: nextEntryFile, - }); - setSelectedFile(externalBundle?.selectedFile ?? nextEntryFile); - }} - > - External - - - - + + + Mode + + + + + + Managed: Paperclip stores and serves the instructions bundle. External: you provide a path on disk where the instructions live. + + + + + { + if (currentMode === "external") { + externalBundleRef.current = { + rootPath: currentRootPath, + entryFile: currentEntryFile, + selectedFile: selectedOrEntryFile, + }; + } + const nextEntryFile = currentEntryFile || "AGENTS.md"; + setBundleDraft({ + mode: "managed", + rootPath: bundle?.managedRootPath ?? currentRootPath, + entryFile: nextEntryFile, + }); + setSelectedFile(nextEntryFile); + }} + > + Managed + + { + const externalBundle = externalBundleRef.current; + const nextEntryFile = externalBundle?.entryFile ?? currentEntryFile ?? "AGENTS.md"; + setBundleDraft({ + mode: "external", + rootPath: externalBundle?.rootPath ?? (bundle?.mode === "external" ? (bundle.rootPath ?? "") : ""), + entryFile: nextEntryFile, + }); + setSelectedFile(externalBundle?.selectedFile ?? nextEntryFile); + }} + > + External + + + + Root path @@ -1874,8 +1874,8 @@ function PromptsTab({ {currentMode === "managed" ? ( - - {currentRootPath || "(managed)"} + + {currentRootPath || "(managed)"} {currentRootPath && (