-
nextime authored
- Increase main timeout to 45 seconds as requested for complete response detection - Add strict JSON validation requiring both 'response' and 'id' keys - Implement isCompleteValidJson() function to ensure JSON completeness - Only return responses when JSON is complete and valid - Add enhanced logging for debugging partial matches - Prevent premature response extraction from incomplete JSON - Add safety timeout at 60 seconds to prevent hanging - Improve observer logic to only resolve on complete, valid JSON This ensures the API only serves responses when we have complete, valid JSON with both required keys, preventing partial or corrupted responses.
c0d398f4