diff --git a/frontend/src/app/components/task-backends/page.tsx b/frontend/src/app/components/task-backends/page.tsx
new file mode 100644
index 0000000..349750d
--- /dev/null
+++ b/frontend/src/app/components/task-backends/page.tsx
@@ -0,0 +1,5 @@
+import { ComponentsTaskBackendsPage } from "@/components/pages/ComponentsTaskBackendsPage";
+
+export default function Page() {
+ return
{task.summary}
+{task.backendType === "reasoner" ? "内置 Reasoner" : "OpenCode"} · {task.summary}
{task.status === "waiting_input" && request.kind === "permission" &&远端请求:{request.permission} {request.patterns?.join("、")}
{task.result}{error}
} ; diff --git a/frontend/src/components/assistant-editor/prompt-editor.tsx b/frontend/src/components/assistant-editor/prompt-editor.tsx index 2a70a90..d525c93 100644 --- a/frontend/src/components/assistant-editor/prompt-editor.tsx +++ b/frontend/src/components/assistant-editor/prompt-editor.tsx @@ -41,6 +41,7 @@ import { SectionAnchorTabs } from "@/components/editor/section-anchor-tabs"; import { SectionCard } from "@/components/editor/section-card"; import { VisionConfigSection } from "@/components/editor/vision-config-section"; import { BuiltInToolsEditor } from "@/components/assistant-editor/built-in-tools"; +import { TaskBackendSection } from "@/components/assistant-editor/task-backend-section"; import { ToolBindingEditor } from "@/components/tools/tool-binding-editor"; import { TurnConfigEditor } from "@/components/turn-config-editor"; import { Button } from "@/components/ui/button"; @@ -90,7 +91,6 @@ const EXTERNAL_TOOL_TYPE_LABELS: Record任务后端仅适用于提示词 Pipeline;Realtime 当前不可用。
: <> + + {error &&先在组件库创建一个任务后端,然后回到此处选择。
} + {value && selected && <> + {!selected.enabled &&当前后端已停用,请启用资源或重新选择后端。
} +推理模型:{modelOptions.find(model => model.value === selected.config.modelResourceId)?.label ?? selected.config.modelResourceId}
+推理强度:{selected.config.reasoningEffort === "provider_default" ? "模型默认" : selected.config.reasoningEffort} · 服务端工具 {selected.config.toolBindings.length} 项 · 技能 {selected.config.skills.length} 项
+ > : <> +OpenCode:{selected.config.url} · {selected.config.directory}
+Agent:{selected.config.agent || "远端默认"} · 权限、沙箱与技能由远端管理
+ {selected.config.skillsNote &&技能说明:{selected.config.skillsNote}
} + >} +任务时限 {selected.config.timeoutSeconds} 秒 · 并发 1 · 断线后任务继续
+Speaker 根据对话生成本次目标,后端连接与权限由资源配置决定。
} + {source.source === "variable" && } + {(source.source === "literal" || source.source === "template") && } +助手把任务交给远程 OpenCode 执行,执行期间可继续对话。仅支持提示词 Pipeline,每个助手最多绑定一个。
-含排队时间;重启或重新观察任务后重新计时。
仅允许配置的 HTTP / MCP 服务端工具。浏览器交互工具由 Speaker 使用;技能不能增加工具权限。
+作为任务方法加载到 Reasoner;工具执行仍受上方许可约束。
+ {draft.skills.map((skill, index) =>