mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:31:00 +00:00
fix(matrix): scope progress tool status config
This commit is contained in:
@@ -483,6 +483,8 @@ describe("monitorMatrixProvider", () => {
|
||||
[{ mode: "progress" }, "progress", true],
|
||||
[{ mode: "partial", preview: { toolProgress: false } }, "partial", false],
|
||||
[{ mode: "quiet", preview: { toolProgress: false } }, "quiet", false],
|
||||
[{ mode: "partial", progress: { toolProgress: false } }, "partial", true],
|
||||
[{ mode: "quiet", progress: { toolProgress: false } }, "quiet", true],
|
||||
[{ mode: "progress", progress: { toolProgress: false } }, "progress", false],
|
||||
[
|
||||
{ mode: "progress", progress: { toolProgress: false }, preview: { toolProgress: true } },
|
||||
|
||||
@@ -98,7 +98,10 @@ function resolveMatrixPreviewToolProgress(streaming: MatrixConfig["streaming"]):
|
||||
if (!isMatrixStreamingConfig(streaming)) {
|
||||
return true;
|
||||
}
|
||||
return streaming.progress?.toolProgress ?? streaming.preview?.toolProgress ?? true;
|
||||
if (resolveMatrixStreamingMode(streaming) === "progress") {
|
||||
return streaming.progress?.toolProgress ?? streaming.preview?.toolProgress ?? true;
|
||||
}
|
||||
return streaming.preview?.toolProgress ?? true;
|
||||
}
|
||||
|
||||
function resolveMatrixPreviewToolProgressEnabled(streaming: MatrixConfig["streaming"]): boolean {
|
||||
|
||||
Reference in New Issue
Block a user