fix: Corrected a bug in the coder agent that wasn't outputting a summary of the changes made, so the parent Sisyphus agent has no idea if the agent worked or not

This commit is contained in:
2026-03-17 14:57:07 -06:00
parent 16cdf47101
commit 0fdb1bbc42
2 changed files with 11 additions and 8 deletions
+5 -2
View File
@@ -402,7 +402,6 @@ invoke_agent_with_summary() {
summary=$(echo "${output}" | sed -n '/^## Recommendation/,/^## /{/^## Recommendation/d;/^## /d;p}' | sed '/^$/d' | head -10)
fi
# Failsafe: extract up to 5 meaningful lines if no markers found
if [[ -z "${summary}" ]]; then
summary=$(echo "${output}" | grep -v "^$" | grep -v "^#" | grep -v "^\-\-\-" | tail -10 | head -5)
fi
@@ -411,7 +410,11 @@ invoke_agent_with_summary() {
append_context "${agent}" "${summary}"
fi
echo "${output}"
if [[ -z "${output}" ]] || [[ -z "$(echo "${output}" | tr -d '[:space:]')" ]]; then
echo "[${agent} agent completed but produced no text output. The agent may have performed work via tool calls (file writes, builds, etc.) that did not generate visible text. Check the project directory for changes.]"
else
echo "${output}"
fi
}
###########################