Integrate master agent runtime orchestration updates
This commit is contained in:
@@ -61,3 +61,27 @@ test("RemoteRuntimeAdapter 不会误杀包含路径和 sandbox 描述的有效
|
||||
assert.equal(normalized.status, "completed");
|
||||
assert.match(normalized.replyBody ?? "", /gptpluscontrol/);
|
||||
});
|
||||
|
||||
test("RemoteRuntimeAdapter 会透传远端 warning 列表并完成基础清洗", () => {
|
||||
const normalized = normalizeRemoteExecutionResultForTesting({
|
||||
status: "completed",
|
||||
replyBody: "线程执行完成。",
|
||||
warnings: [
|
||||
{
|
||||
title: "上下文接近上限",
|
||||
summary: "本轮输出较长,建议尽快压缩。",
|
||||
},
|
||||
{
|
||||
title: " ",
|
||||
summary: " ",
|
||||
},
|
||||
],
|
||||
} as never);
|
||||
|
||||
assert.deepEqual(normalized.warnings, [
|
||||
{
|
||||
title: "上下文接近上限",
|
||||
summary: "本轮输出较长,建议尽快压缩。",
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user