fix: dump oversized CLI output via YAML policy

This commit is contained in:
Codex
2026-06-21 15:20:24 +00:00
parent 63e5e62a34
commit 5c2369f78a
4 changed files with 183 additions and 41 deletions
+3 -3
View File
@@ -242,7 +242,7 @@ async function main(): Promise<void> {
const result = await runAgentRunCommand(config, agentRunArgs);
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText);
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
@@ -341,7 +341,7 @@ async function main(): Promise<void> {
const result = await runPlatformInfraCommand(readConfig(), args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText);
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}
@@ -525,7 +525,7 @@ async function main(): Promise<void> {
const result = await runCodeQueueCommand(config, args.slice(1));
const ok = (result as { ok?: unknown }).ok !== false;
if (isRenderedCliResult(result)) {
emitText(result.renderedText);
emitText(result.renderedText, result.command || commandName);
if (!ok) process.exitCode = 1;
return;
}