fix(chat): restore tool execution details
Generic Container CI/CD / test-build-publish (push) Successful in 2m4s
Agent CI/CD v2 / build-test-publish-and-deploy (push) Successful in 2m4s

This commit is contained in:
2026-08-24 18:45:45 +08:00
parent c6efccb88a
commit 774f39cbbe
3 changed files with 48 additions and 6 deletions
+4 -2
View File
@@ -168,7 +168,7 @@ describe("streamPromptResponse", () => {
).toBe("最终分析结果。");
});
it("keeps reasoning, tool parameters, and raw errors out of progress details", async () => {
it("keeps reasoning generic while preserving tool execution details", async () => {
const runtime = {
subscribeEvents: async () =>
createEventStream([
@@ -246,7 +246,9 @@ describe("streamPromptResponse", () => {
(item) => item.event === "progress" && item.data.id === "tool-part-1",
);
expect(reasoningProgress?.data.detail).toBe("分析步骤已整理完成。");
expect(toolProgress?.data.detail).toBe("tjwater_cli 调用失败。");
expect(toolProgress?.data.detail).toBe(
"tjwater_cli 调用失败;调用原因:尝试突破分页限制;关键参数:command=network get-all-pipes-properties --limit 5000;错误:HTTP_422 raw backend payload with trace_id=secret-trace",
);
});
it("forwards opencode permission requests as SSE payloads", async () => {