feat: full conversation relay #253 — user messages + error notifications to Discord
This commit is contained in:
@@ -1808,6 +1808,8 @@ function setupMonitor() {
|
|||||||
}
|
}
|
||||||
const description = `Step #${si} ${stepStatus} — Retry?`;
|
const description = `Step #${si} ${stepStatus} — Retry?`;
|
||||||
logToFile(`[STEP-PROBE] ★ ERROR! step=${si} status=${stepStatus} type=${stepType}`);
|
logToFile(`[STEP-PROBE] ★ ERROR! step=${si} status=${stepStatus} type=${stepType}`);
|
||||||
|
// Notify Discord chat about error
|
||||||
|
writeChatSnapshot(`❌ **에러 발생** (step ${si})\n\n\`${command.replace('⚠️ Error: ', '')}\`\n${stepStatus.replace('CORTEX_STEP_STATUS_', '')}`);
|
||||||
if (si !== lastPendingStepIndex) {
|
if (si !== lastPendingStepIndex) {
|
||||||
stallProbed = true;
|
stallProbed = true;
|
||||||
lastPendingStepIndex = si;
|
lastPendingStepIndex = si;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1775,6 +1775,8 @@ function setupMonitor() {
|
|||||||
}
|
}
|
||||||
const description = `Step #${si} ${stepStatus} — Retry?`;
|
const description = `Step #${si} ${stepStatus} — Retry?`;
|
||||||
logToFile(`[STEP-PROBE] ★ ERROR! step=${si} status=${stepStatus} type=${stepType}`);
|
logToFile(`[STEP-PROBE] ★ ERROR! step=${si} status=${stepStatus} type=${stepType}`);
|
||||||
|
// Notify Discord chat about error
|
||||||
|
writeChatSnapshot(`❌ **에러 발생** (step ${si})\n\n\`${command.replace('⚠️ Error: ', '')}\`\n${stepStatus.replace('CORTEX_STEP_STATUS_', '')}`);
|
||||||
if (si !== lastPendingStepIndex) {
|
if (si !== lastPendingStepIndex) {
|
||||||
stallProbed = true;
|
stallProbed = true;
|
||||||
lastPendingStepIndex = si;
|
lastPendingStepIndex = si;
|
||||||
|
|||||||
Reference in New Issue
Block a user