fix(compress): remove 'Do not retry' directive from failure result

The proxy-tool result must report the failure FACT only, not instruct the
model. 'Do not retry the same range.' was a directive the model followed
poorly (retried slightly-different ranges, looping). Per the principle
that failure is the tool output and the model decides its own next action,
the result now states only what failed.
This commit is contained in:
Sisyphus
2026-08-12 13:08:30 +08:00
parent aec851700e
commit 6bad08b42c
+2 -2
View File
@@ -256,7 +256,7 @@ export function applyRanges(ranges: ReturnType<typeof parseCompressInput>, ctx:
if (r.blocksCreated === 0) {
const errs = r.errors.join("; ") || "no blocks created";
ctx.log(`[acp-proxy: compress FAILED ${detail} → 0 blocks. ${errs}]`);
return `[Compression FAILED: ${errs} Do not retry the same range.]`;
return `[Compression FAILED: ${errs}]`;
}
const warn = r.warnings.length > 0 ? ` ${r.warnings.join("; ")}` : "";
@@ -265,7 +265,7 @@ export function applyRanges(ranges: ReturnType<typeof parseCompressInput>, ctx:
return msg;
} catch (err) {
ctx.log(`[acp-proxy: compress failed: ${String(err)}]`);
return `[Compression FAILED: ${String(err)} Do not retry the same range.]`;
return `[Compression FAILED: ${String(err)}]`;
}
}