docs: Add session debrief about test fixes and MCP tool lesson
This commit is contained in:
20
debug_resp.py
Normal file
20
debug_resp.py
Normal file
@@ -0,0 +1,20 @@
|
||||
with open("src/orchestrator_pm.py", "r", encoding="utf-8", newline="") as f:
|
||||
content = f.read()
|
||||
|
||||
# Add debug to see what response looks like
|
||||
old = """# 4. Parse JSON Output
|
||||
try:
|
||||
json_match = response.strip()"""
|
||||
|
||||
new = """# 4. Parse JSON Output
|
||||
try:
|
||||
sys.stderr.write(f"[DEBUG] generate_tracks response: {response[:300]}\\n")
|
||||
sys.stderr.flush()
|
||||
json_match = response.strip()"""
|
||||
|
||||
content = content.replace(old, new)
|
||||
|
||||
with open("src/orchestrator_pm.py", "w", encoding="utf-8", newline="") as f:
|
||||
f.write(content)
|
||||
|
||||
print("Added debug to see response")
|
||||
Reference in New Issue
Block a user