social-autoposter 1.6.26 → 1.6.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1260,6 +1260,13 @@ if [ "$EXTRACT_EXIT" -ne 0 ] || [ ! -f "$RAW_FILE" ]; then
|
|
|
1260
1260
|
# context_overflow) or just "model found nothing relevant". Classify
|
|
1261
1261
|
# the failure for the post-loop log_run summary; the loop control below
|
|
1262
1262
|
# decides whether to retry or give up.
|
|
1263
|
+
# SCAN_OUTPUT was a stale leftover from the pre-lean design (when the scan's
|
|
1264
|
+
# stdout was captured into a shell var); the lean Phase 1 loop now tees its
|
|
1265
|
+
# output to $LOG_FILE instead, so an empty-scan attempt hit `set -u` and
|
|
1266
|
+
# aborted the whole cycle here. Feed the classifier the recent log tail (the
|
|
1267
|
+
# actual scan output, where harness/Anthropic error signatures land) so we
|
|
1268
|
+
# still distinguish a real error from "found nothing relevant".
|
|
1269
|
+
SCAN_OUTPUT=$(tail -n 80 "$LOG_FILE" 2>/dev/null || true)
|
|
1263
1270
|
PHASE1_REASON_LATEST=$(echo "$SCAN_OUTPUT" | python3 "$REPO_DIR/scripts/classify_run_error.py" 2>/dev/null)
|
|
1264
1271
|
[ -z "$PHASE1_REASON_LATEST" ] && PHASE1_REASON_LATEST="phase1_no_tweets"
|
|
1265
1272
|
LAST_PHASE1_REASON="$PHASE1_REASON_LATEST"
|