fix: use stdout/stderr fields for Bash tool_response output extraction

CC sends Bash results as {stdout, stderr, interrupted, isImage, noOutputExpected}.
Previous code guessed output/content/text — all wrong, so encounter detection
never matched. Confirmed via active.json relay debug.
This commit is contained in:
pyr0ball 2026-04-02 11:20:00 -07:00
parent 7b9e78a501
commit b0deb21d3a

View file

@ -280,12 +280,11 @@ def main():
# ── Bash tool: error detection + auto-resolution + commit tracking ───────
if tool_name == "Bash":
output = ""
# CC Bash tool_response keys: stdout, stderr, interrupted, isImage, noOutputExpected
if isinstance(tool_response, dict):
parts = [
tool_response.get("output", ""),
tool_response.get("content", ""),
tool_response.get("stdout", ""),
tool_response.get("stderr", ""),
tool_response.get("text", ""),
]
output = "\n".join(p for p in parts if isinstance(p, str) and p)
elif isinstance(tool_response, str):