MCPcopy
hub / github.com/openai/codex-plugin-cc / buildTaskRunMetadata

Function buildTaskRunMetadata

plugins/codex/scripts/codex-companion.mjs:540–554  ·  view source on GitHub ↗
({ prompt, resumeLast = false })

Source from the content-addressed store, hash-verified

538}
539
540function buildTaskRunMetadata({ prompt, resumeLast = false }) {
541 if (!resumeLast && String(prompt ?? "").includes(STOP_REVIEW_TASK_MARKER)) {
542 return {
543 title: "Codex Stop Gate Review",
544 summary: "Stop-gate review of previous Claude turn"
545 };
546 }
547
548 const title = resumeLast ? "Codex Resume" : "Codex Task";
549 const fallbackSummary = resumeLast ? DEFAULT_CONTINUE_PROMPT : "Task";
550 return {
551 title,
552 summary: shorten(prompt || fallbackSummary)
553 };
554}
555
556function renderQueuedTaskLaunch(payload) {
557 return `${payload.title} started in the background as ${payload.jobId}. Check /codex:status ${payload.jobId} for progress.\n`;

Callers 2

executeTaskRunFunction · 0.85
handleTaskFunction · 0.85

Calls 1

shortenFunction · 0.70

Tested by

no test coverage detected