({ prompt, resumeLast = false })
| 538 | } |
| 539 | |
| 540 | function 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 | |
| 556 | function renderQueuedTaskLaunch(payload) { |
| 557 | return `${payload.title} started in the background as ${payload.jobId}. Check /codex:status ${payload.jobId} for progress.\n`; |
no test coverage detected