See file that the agent was trying to run and output:
import subprocess, json
for cid in [YY, YY]:
result = subprocess.run(
["gh", "api", f"repos/XXXXX/pulls/comments/{cid}"],
capture_output=True, text=True
)
data = json.JSONDecoder(strict=False).decode(result.stdout)
print(f"=== Comment {cid} (line: {data.get('line')}, path: {data['path']}) ===")
print(data['body'])
print()
Output

See file that the agent was trying to run and output:
Output
