Merge pull request #24 from BaaRai/bot/debug-tail

Bot: log the raw reply tail for triage debugging
This commit is contained in:
BaaRai
2026-10-10 19:06:04 +02:00
committed by GitHub
+1
View File
@@ -117,6 +117,7 @@ $body
Repository file list:
$(repo_context)")
[ -z "$answer" ] && { log "model returned nothing"; exit 0; }
log "raw reply tail: ...${answer: -160}"
clean_text=$(split_labels <<<"$answer")
reply_labels=$(tail -1 /tmp/bot-labels-line 2>/dev/null)
[ -z "$reply_labels" ] && reply_labels="none"