From c0857641cdbb26e49650b26e0cb48eabfee08ee2 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 10 Jul 2026 08:06:23 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8=20A?= =?UTF-8?q?gentRun=20=E5=9B=BA=E5=AE=9A=20lane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .agents/skills/unidesk-code-queue/SKILL.md | 2 ++ config/agentrun.yaml | 2 +- scripts/src/agentrun/rest-bridge.ts | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.agents/skills/unidesk-code-queue/SKILL.md b/.agents/skills/unidesk-code-queue/SKILL.md index 7389d8ef..f14baab9 100644 --- a/.agents/skills/unidesk-code-queue/SKILL.md +++ b/.agents/skills/unidesk-code-queue/SKILL.md @@ -18,6 +18,8 @@ bun scripts/cli.ts agentrun result bun scripts/cli.ts agentrun send --prompt-stdin ``` +资源命令未传 `--node/--lane` 时固定使用 `config/agentrun.yaml#controlPlane.default`,当前为 `NC01/nc01-v02`;只有查询非默认 lane 时才显式传目标参数。主机 direct HTTP auth 只保留独立诊断,固定 Secret 文件路径为 `/root/.unidesk/.env/agentrun.env`,不得回退到 worktree 或旧 `/root/.config/hwlab-*` 路径。 + AipodSpec/Artificer、task manifest 和 queue 渐进披露见 [references/resources.md](references/resources.md);session 控制、HWLAB Code Agent 整合、trace/output 分页、judge、中断/取消见 [references/sessions.md](references/sessions.md);旧队列归档见 [references/legacy.md](references/legacy.md)。 ## P0 边界 diff --git a/config/agentrun.yaml b/config/agentrun.yaml index e26d8d8f..6ff45205 100644 --- a/config/agentrun.yaml +++ b/config/agentrun.yaml @@ -23,7 +23,7 @@ publicExposure: responseHeaderTimeoutSeconds: 60 auth: env: HWLAB_API_KEY - file: /root/.config/hwlab-v02/master-server-admin-api-key.env + file: /root/.unidesk/.env/agentrun.env header: Authorization scheme: Bearer client: diff --git a/scripts/src/agentrun/rest-bridge.ts b/scripts/src/agentrun/rest-bridge.ts index 9a2bcd5c..b0f1dfba 100644 --- a/scripts/src/agentrun/rest-bridge.ts +++ b/scripts/src/agentrun/rest-bridge.ts @@ -1028,8 +1028,10 @@ try { } export function resolveAgentRunRestTarget(config: UniDeskConfig | null, options: AgentRunRestTargetOptions): AgentRunRestTarget | null { - if (options.node === null && options.lane === null) return null; - if (config === null) throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config"); + if (config === null) { + if (options.node === null && options.lane === null) return null; + throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config"); + } const { configPath, spec } = resolveAgentRunLaneTarget(options); return { config, configPath, spec }; }