MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / renderTaskResult

Function renderTaskResult

plugins/codex/scripts/lib/render.mjs:315–323  ·  view source on GitHub ↗
(parsedResult, meta)

Source from the content-addressed store, hash-verified

313}
314
315export function renderTaskResult(parsedResult, meta) {
316 const rawOutput = typeof parsedResult?.rawOutput === "string" ? parsedResult.rawOutput : "";
317 if (rawOutput) {
318 return rawOutput.endsWith("\n") ? rawOutput : `${rawOutput}\n`;
319 }
320
321 const message = String(parsedResult?.failureMessage ?? "").trim() || "Codex did not return a final message.";
322 return `${message}\n`;
323}
324
325export function renderStatusReport(report) {
326 const lines = [

Callers 1

executeTaskRunFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected