• nextime's avatar
    Enforce strict ID matching and complete JSON validation before serving responses · 9920f907
    nextime authored
    - Add comprehensive logging with emojis for better debugging visibility
    - Implement strict validation requiring exact ID match and non-empty response
    - Enhanced observer logic to only resolve on complete, validated JSON
    - Add priority-based detection: HTML code blocks first, then text content
    - Prevent premature response serving until complete JSON with matching ID is found
    - Add detailed console logging for tracking detection progress
    - Ensure system waits for complete ID match before serving any API response
    
    This ensures the API absolutely waits for the complete JSON response
    with the matching request ID before serving any reply to clients.
    9920f907
olproxy.py 46.9 KB