Spaces:
Paused
Paused
Commit History
-
backend stabilisation
dushyantsingh02720670 -
backend stabilisation
dushyantsingh033e1eb1 -
backend stabilisation
dushyantsingh07b7b4ef
-
backend stabilization
dushyantsingh0918d162 -
backend stabilization
dushyantsingh01f5f84c -
backend stabilization
dushyantsingh0054ee7d -
backend stabilization
dushyantsingh09f4dea0 -
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: guard against invalid ARQ_REDIS_URL scheme and fix CSP blocking Swagger UI
dushyantsingh0 +1: Claude Sonnet 4.6- core/config.py: get_redis_settings() now validates that ARQ_REDIS_URL uses redis:// or rediss:// before calling RedisSettings.from_dsn(). Falls back to LOCAL_REDIS_URL (localhost:6379) if the scheme is anything else (e.g. Upstash REST URLs use https://, which arq rejects with "invalid DSN scheme"). This was crashing both ARQ workers and the API lifespan at startup. - main.py: SecurityHeadersMiddleware now applies a relaxed CSP (adds 'unsafe-inline' to script-src) only for /docs, /redoc, and /openapi paths. Swagger UI injects inline scripts that the previous blanket CSP was blocking, rendering the docs page completely blank. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a1f89d3 -
fix: use local Redis for WebSocket pub/sub, not Upstash
dushyantsingh0 +1: Claude Sonnet 4.6The previous approach (polling get_message every 100ms across 4 workers) would have consumed ~3.5M Upstash commands/day — far beyond any free tier. Root cause was using CACHE_REDIS_URL (Upstash) for pub/sub. Upstash is a serverless/HTTP Redis designed for short request-response operations. It imposes a 30-second idle-connection timeout and bills per command, making it fundamentally unsuitable for a persistent pub/sub listener. Fix: route WebSocket pub/sub through LOCAL_REDIS_URL (localhost:6379). The local Redis is already started by run_prod.sh and all 4 Gunicorn workers share the same host, so local pub/sub fan-out works correctly. Zero Upstash commands consumed. No idle timeouts. No polling hacks needed. Changes: - main.py: pass settings.LOCAL_REDIS_URL to ws_manager.start_pubsub() instead of settings.clean_cache_redis_url - core/websockets.py: revert subscriber to clean listen() loop (no polling, no keepalive PING), simplify _get_pub_redis() to use local URL directly Note…5df217f -
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 -
fix: prevent race condition on static dir creation
dushyantsingh0800f93d -
backend stabilization
dushyantsingh05efb6af
-
backend stabilization
dushyantsingh012dfdef
-
fix: production boot and improve ticket filters (strict no-binaries)
dushyantsingh052ef1b7 -
backend stabilization
dushyantsingh062c828f
-
fix: resolve typescript build errors in internal portal navigation
dushyantsingh00fe602d -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh05d6e6fd -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh00509823 -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh01049d57
-
fix: redirect global arq pool to arq:regular to prevent phantom queue bloat
dushyantsingh0a4c074e -
fix: resolve typescript build errors in internal portal navigation
dushyantsingh0e6526ed
-
fix: resolve typescript build errors in internal portal navigation
dushyantsingh03b1f62b
-
backend stabilization
dushyantsingh0058e076
-
backend stabilization
dushyantsingh06ba1c48
-
fix: resolve router precedence collision for kb_insights
dushyantsingh069b1512 -
backend stabilization
dushyantsingh0c8fb83f -
backend stabilization
dushyantsingh04405ca9
-
backend stabilization
dushyantsingh0a27a4ab
-
fix: allow staff cross-workspace live events via WebSockets
dushyantsingh04640159 -
fix: resolve workspace recursion 500 by using clean pydantic schemas
dushyantsingh01266347 -
security: enforce strict portal isolation and role-based guards
dushyantsingh02dfe0ae -
feat: unified portal migration with local redis and fixed routing
dushyantsingh05df0bfe -
backend stabilization
dushyantsingh0f3a0c24
-
backend stabilization
dushyantsingh091ebb5b -
backend stabilization
dushyantsingh07645bba -
backend stabilization
dushyantsingh0f3a5b2f
-
backend stabilization
dushyantsingh0e58f87e -
backend stabilization
dushyantsingh094b1a89 -
backend stabilization
dushyantsingh0accf280
-
backend stabilization
dushyantsingh0b7980f7
-
fix: resolve module import error to enable backend startup
dushyantsingh02c17177 -
fix: resolve login 404 routing issues
dushyantsingh0988d204 -
fix(prod): resolve persistent 404 with proxy-aware diagnostics
dushyantsingh01282961 -
chore(prod): re-trigger production build with full routing overhaul
dushyantsingh0b23c114 -
Beta 1.0: Cloud Isolation (Fix Imports + .dockerignore + Safety Guard)
dushyantsingh097655dc -
Beta 1.0: Startup Resiliency (Fix Arq Type + DB Secret Logic)
dushyantsingh017bb84f -
Beta 1.0: Pure Backend Release (Excluding Frontend)
dushyantsingh05eb4857