feat: add project-aware agent workspace
This commit is contained in:
@@ -74,3 +74,12 @@ describe("investigation report read contract", () => {
|
||||
expect(() => investigationReportSchema.parse({ ...result, ...changes })).toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
it("retains fallback text from a future component while reading the fixed report facts", () => {
|
||||
const value = investigationReportSchema.parse({ ...base, ui_blocks: [{ evidence_refs: ["query-1"], block: {
|
||||
version: "answer-ui@future", block_id: "future", fallback_text: "旧版客户端仍可阅读。", spec: { future: true },
|
||||
} }] });
|
||||
expect(value.current_conclusion).toBe(base.current_conclusion);
|
||||
expect(value.ui_blocks?.[0].block.fallback_text).toBe("旧版客户端仍可阅读。");
|
||||
expect(investigationReportSchema.parse(base).ui_blocks).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user