fix(agent): 合并回归 - 保留当前输入提示与任务租约安全边界

This commit is contained in:
ddCat
2026-09-22 11:21:38 +08:00
parent 2cbe80369b
commit 76613edadc
3 changed files with 7 additions and 12 deletions

View File

@@ -122,10 +122,9 @@ describe("canvas resource mention editor", () => {
expect(component).toContain("slash.start + 1 + slash.query.length");
expect(component).toContain("buildSkillMentionReferences(availableSlashSkills)");
expect(component).toContain("[/、]([^\\s/、]*)$");
// 输入框提示语已随外观配置搬进 agent-appearance(面板只消费 appearance.inputPlaceholder),
// 这里断言"文案在、面板仍用它",而不是把文案钉在面板源码里。
// 保留主分支已恢复的固定 Skills 提示,不能因合并旧分支退回失效的外观配置断言。
expect(source("../src/lib/canvas/agent-appearance.ts")).toContain("用 / 或 、 引用 Skills");
expect(source("../src/components/canvas/canvas-cloud-agent-panel.tsx")).toContain("agentCopy(appearance.inputPlaceholder, appearance.agentName)");
expect(source("../src/components/canvas/canvas-cloud-agent-panel.tsx")).toContain("用 / 或 、 引用 Skills");
});
test("skill chips use one colored icon instead of exposing the serialized token", () => {