fix: make AgentRun log tail render-only

This commit is contained in:
Codex
2026-06-11 09:06:26 +00:00
parent cb181cd21a
commit bb0f0ec497
2 changed files with 54 additions and 4 deletions
+4 -2
View File
@@ -117,8 +117,10 @@ assertCondition(
assertCondition(
agentRunSource.includes("const effectiveLimit = options.tail ?? options.limit;")
&& agentRunSource.includes("resourceLogsTailResult(config, ref.name, effectiveLimit, options.fullText)")
&& agentRunSource.includes("clientTail: {")
&& agentRunSource.includes("return renderEventLike(command, result, { ...options, limit: effectiveLimit }, \"Log\""),
"AgentRun logs must map --tail N into the low-noise page limit and preserve pagination commands",
"AgentRun logs must map --tail N into render-only client tailing for human and raw outputs",
);
assertCondition(
@@ -143,7 +145,7 @@ console.log(JSON.stringify({
"AgentRun resource parser supports apply -f -",
"AgentRun resource task dispatch and active task list visibility",
"AgentRun resource failure output is visible in human mode",
"AgentRun logs tail controls page limit",
"AgentRun logs tail is enforced by the render-only client",
"AgentRun dry-run mutations keep resource-command follow-up",
],
}));