Fix deep scan: log output even on failure, capture exit code for debugging
This commit is contained in:
@@ -475,12 +475,14 @@ process_entity() {
|
||||
run_deep_scan() {
|
||||
log "🔬 Running deep cross-document validation scan..."
|
||||
local output
|
||||
local rc=0
|
||||
output=$(kiro-cli chat --trust-all-tools --no-interactive --model "$MODEL" \
|
||||
"Run check_repository with deep_check=true. Review any new issues found — answer what you can, defer what you cannot. If any factbase tool behaves unexpectedly during this process, file a bug to Vikunja (project 2, Authorization: Bearer tk_ff251f3d3512775c71913bc2f8ec0dabbf5016a8). Describe issues in domain-agnostic terms — factbase is used for many knowledge bases, not just this one." 2>&1) || {
|
||||
log "❌ Deep scan agent failed, continuing..."
|
||||
return 1
|
||||
}
|
||||
"Run check_repository with deep_check=true. Review any new issues found — answer what you can, defer what you cannot. If any factbase tool behaves unexpectedly during this process, file a bug to Vikunja (project 2, Authorization: Bearer tk_ff251f3d3512775c71913bc2f8ec0dabbf5016a8). Describe issues in domain-agnostic terms — factbase is used for many knowledge bases, not just this one." 2>&1) || rc=$?
|
||||
echo "$output"
|
||||
if [[ $rc -ne 0 ]]; then
|
||||
log "❌ Deep scan agent failed (exit code $rc), continuing..."
|
||||
return 1
|
||||
fi
|
||||
do_commit "deep scan: cross-document validation"
|
||||
log "✅ Deep scan complete"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user