Spaces:
Paused
Paused
Commit History
-
chore: remove stale nexus_stream_task dead code and dead variable
dushyantsingh0 +1: Claude Sonnet 4.6- tasks/system.py: remove nexus_stream_task from HEAVY_TASKS, THROTTLE_EXCLUDED, and workspace_id Pattern D extraction — task is never enqueued since chat moved to direct async SSE - nexus_worker.py: update stale comment referencing old admission control - NexusMermaid.tsx: remove lastInitializedTheme module variable — it was only used as a guard that was removed; now just a dead write Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>aa34d3f
-
backend sprint
dushyantsingh0ecca730
-
Initial commit
dushyantsingh0d8744fd
-
backend stabilisation
dushyantsingh0eced686 -
fix: route ai tasks to heavy worker queue
dushyantsingh0baf85c2
-
ui: fix assignee dropdown and add visual cues for editability
dushyantsingh0c52610e
-
backend stabilisation
dushyantsingh033a5449 -
Fix: follow-up messages silently dropped + Hydra UnboundLocalError in initializer
dushyantsingh0 +1: Claude Sonnet 4.6nexus_stream_task was being throttled by the same 120s dedup guard used for background batch jobs — entity_id is the thread_id, so the second message in any conversation was silently skipped for two minutes. Exclude interactive stream tasks from throttle via THROTTLE_EXCLUDED set. sync_ticket_context() imported get_ticket_details_tool inside the final async-with block but referenced it in an earlier branch. Python's scoping rules made it an UnboundLocalError whenever the early branch executed. Hoisted the import to the top of the function and removed the now-unnecessary async_session_factory wrapper around the plain tool call. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6cc0dee
-
Fix: workspace_id popped from task_kwargs before reaching worker
dushyantsingh0 +1: Claude Sonnet 4.6enqueue_task() was moving workspace_id into metadata_json via .pop(), so the actual ARQ job never received it. generate_nightly_personnel_analytics called without workspace_id hit the cron lock guard and was skipped every time the manual REGENERATE OPINIONS button was clicked. Change pop → copy so the kwarg reaches the task function, and update the log message to display the effective entity so it doesn't say "for none". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>774e02c
-
fix job synchronization and worker lab UI
dushyantsingh0e343b22 -
backend stabilization
dushyantsingh01c7bba3 -
backend stabilization
dushyantsingh047835df
-
fix: correctly route heavy tasks to arq:heavy queue
dushyantsingh0ef24f33
-
fix: break infinite AI insight loop and add server-side throttling
dushyantsingh04c16050 -
perf: reduce Redis EXISTS/UNWATCH storm from token blocklist and SLA monitor
dushyantsingh0 +1: Claude Sonnet 4.6- token_blocklist: cache non-blocked JTIs for 300s (up from 60s) to cut per-process EXISTS calls by ~80%; blocked tokens still evict at 60s - monitor_sla_thresholds: replace N individual redis.get(latch) calls inside the 500-ticket loop with a single MGET before the loop (1 round trip vs 500) - monitor_sla_thresholds: add missing latch for Tier 1 BREACHED notifications; the missing latch caused re-enqueue on every 2-min cron run, producing the WATCH→EXISTS→UNWATCH burst (428 UNWATCH/snapshot) visible in monitoring Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d559c49 -
fix: resolve 18 bugs across auth, workers, agents, frontend, and infra
dushyantsingh0 +1: Claude Sonnet 4.6CRITICAL - nexus_master: fix AttributeError — User.name→full_name, NexusInteraction.query→input_query, .response→ai_answer (BUG-1) - nexus_master: lazy-init asyncio.Lock to avoid 'no event loop' crash on import (BUG-2) - token_blocklist: fix no-op shutdown — actually close core.cache._redis_client (BUG-3) - database: sslmode now conditional on cloud URL; local Postgres no longer fails SSL handshake (BUG-4) - auth: verify password before allowing existing user to join a new workspace (auth bypass) (BUG-5) HIGH - nexus_worker: add refresh_active_workspace_insights to HeavyWorkerSettings.functions so cron job executes (BUG-8) - deps: remove 3sc_admin customer-portal bypass — all staff are blocked equally (BUG-9) - NexusContext: use messagesRef.current for chat_history to fix stale-closure on multi-turn context (BUG-10) - system/nexus_stream: propagate owner_id into metadata_json so job-status endpoint no longer returns 403 (BUG-12) - nexus: title param annotated as Body(...) — fixes 422 …dbc31e7
-
fix: stop Anthropic LLM crashes and enqueue_task Depends passthrough
dushyantsingh0 +1: Claude Sonnet 4.6`_init_anthropic` was leaking `timeout` and `format` into `**f_kwargs`: - `timeout` was set explicitly AND still present in `**f_kwargs` → `ChatAnthropic() got multiple values for keyword argument 'timeout'` - `format="json"` (Ollama-only kwarg from nexus_master router node) was forwarded to `AsyncMessages.create()` → `got an unexpected keyword argument 'format'` Both caused primary LLM to fail on every router call, wasting 30 s of timeout before falling back to DeepSeek. `enqueue_task` used the caller-supplied first argument directly as the ARQ pool when it was not a string. A FastAPI `Depends(get_arq_pool)` object slipped through in some code paths → `'Depends' object has no attribute 'enqueue_job'`. Function now always uses its own singleton pool regardless of what is passed as the first argument. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>878b20d -
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
dushyantsingh012dfdef -
backend stabilization
dushyantsingh0186d110 -
backend stabilization
dushyantsingh01fdd745
-
backend stabilization
dushyantsingh04777084