modcomms/backend/app/services
Vadym Samoilenko 5c338c31fb Fix WebSocket connection dropped during long proof analysis
- Add 25s heartbeat ping from backend to prevent Apache/proxy idle-timeout
  killing the connection during 1-3 min analysis runs
- Handle heartbeat silently in both analyzeProof and analyzeWIPProof frontend handlers
- Run PDF rasterization via asyncio.to_thread so heartbeats aren't blocked
- Wrap analyze_proof with asyncio.wait_for(timeout=300) for a hard 5-min cap
- Log dropped send_message calls in ConnectionManager instead of swallowing silently
- cloudrun.yaml: add sessionAffinity, startup probe, raise containerConcurrency 4→10,
  document DISABLE_AUTH option

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 11:23:59 +00:00
..
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
analysis_service.py Fix WebSocket connection dropped during long proof analysis 2026-03-18 11:23:59 +00:00
auth_service.py Reduce auth logging verbosity: INFO → DEBUG 2026-02-12 16:13:25 -06:00
email_service.py Fix email service crash when Mailgun not configured 2026-01-27 14:40:42 -06:00
gemini_service.py Add toast notification when primary Gemini model falls back to backup 2026-03-02 13:00:12 +00:00
knowledge_base_service.py Fix KB distillation fallback and SpecVersion type annotation 2026-03-16 14:03:25 +00:00
llamaparse_service.py Fix LlamaParse 401 + update logo to v5 2026-03-16 12:22:31 +00:00
pdf_service.py Add PDF rasterization support for reliable preview and analysis 2026-01-24 09:36:56 -06:00
reference_docs.py Fix cache invalidation falling back to static files after reprocessing 2026-02-12 17:56:11 -06:00
storage_service.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00