Spaces:
Paused
Paused
Commit History
-
refactor: replace ARQ+Redis stream with direct async SSE for Nexus chat
dushyantsingh0 +1: Claude Sonnet 4.6LangGraph/LLM work is pure async I/O, so running it directly in a FastAPI coroutine eliminates the ARQ enqueue hop, Redis Stream relay, and 50-300ms pickup lag. Browser disconnects now cancel the LangGraph coroutine via asyncio.CancelledError (no wasted LLM tokens). - nexus_stream.py: full rewrite — event_generator() runs astream_events() directly and yields SSE tokens; _persist_interaction fire-and-forget via safe_create_task after 'done' - tasks/nexus_ai.py: remove nexus_stream_task; keep _persist_interaction - core/tasks.py: drop nexus_stream_task re-export - nexus_worker.py: remove nexus_stream_task from imports and HeavyWorkerSettings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>2e01964
-
backend stabilization
dushyantsingh04fa956a
-
feat: scale backend to 10K concurrent users via Redis pub/sub + ARQ streaming
dushyantsingh0 +1: Claude Sonnet 4.6Four root bottlenecks addressed: 1. WebSocket cross-process delivery (core/websockets.py, main.py) - ConnectionManager now publishes broadcasts to Redis pub/sub channels (nexus:ws:workspace/user/role/ticket:{id}) instead of delivering directly to in-process sockets. - Each API worker runs a background subscriber task that receives published messages and delivers them to its own WebSocket objects. - Fallback to local-only delivery when Redis is unreachable. - Without this, multi-worker deployments silently dropped most WebSocket messages because each process held its own isolated connection map. 2. SSE streaming decoupled from HTTP workers (tasks/nexus_ai.py NEW, api/v1/nexus_stream.py) - POST /nexus/stream/ now: auth → rate-limit → enqueue nexus_stream_task to ARQ heavy queue → return SSE that reads Redis Stream via XREAD. - nexus_stream_task (new ARQ heavy task) runs LangGraph and publishes each SSE event to nexus:stream:{job_id} vi…356a201
-
backend stabilization
dushyantsingh018b8104
-
backend stabilization
dushyantsingh04777084 -
backend stabilization
dushyantsingh07724a94 -
feat: reimagine visuals with 3-card layout and generate metric AI insights
dushyantsingh0bad4e91 -
fix: allow AI categorization for 'Imported' articles
dushyantsingh0033b112 -
fix: strictify semantic deduplication threshold to prevent false positives
dushyantsingh02d36212 -
backend stabilization
dushyantsingh037c3bcb -
backend stabilization
dushyantsingh009fa229 -
backend stabilization
dushyantsingh0f51757d -
backend stabilization
dushyantsingh0d8eb3eb -
backend stabilization
dushyantsingh044609e2 -
backend stabilization
dushyantsingh0eb2bcc8
-
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0f530d09 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh051d164b -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0c4fa3b7 -
fix: resolve dropdown clipping in Knowledge Base header
dushyantsingh081e5ffd -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0736319b -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0cb3b636 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0b595698 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh00fe602d -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh00509823 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh01049d57 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0eb621b0 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh06e84d1b -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh07f2d326 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh03672174
-
fix(orchestration): restore polymorphic enqueue_task logic & align all ai-workflow signatures to prevent worker crashes
dushyantsingh0537e9b6 -
fix: resolve critical redis connection leak in background worker task pool
dushyantsingh0df9739b -
perf: optimize background worker frequency and batch embeddings to prevent chat lag
dushyantsingh03593390 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0168dc31 -
ux: mandate Mermaid, tables, and graphs for all analytics and summaries
dushyantsingh0f94ab1f -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0d4964f5 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh005b92f7 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0fb0e801 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0dd4748a -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0db8786d -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh03ffe073 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh092c3a30 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh01b4e018 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0e0da27c
-
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0cd9d6a0 -
perf: implement single-turn graph fusion for conversational queries
dushyantsingh0e31f3f6 -
backend stabilization
dushyantsingh0a7455db -
backend stabilization
dushyantsingh0eab4a73 -
backend stabilization
dushyantsingh0185724a
-
backend stabilization
dushyantsingh0812e16e -
backend stabilization
dushyantsingh0821d8d2