Update app.py
Browse files141 unmodified lines142143144145146147145146147151152148149150141 unmodified lines
This eliminates the chance of `Thought:` responses and ensures the regex matches.
---
### ✅ 2. Add a pre-check fallback for non-compliant agent outputs
Before applying the regex, check if the output contains backticks at all:
def extract_json_from_codeagent_output(raw_output): import re, json
app.py-5