Spaces:
Paused
Paused
Commit History
-
Merge branch 'audit-nexus-hub-optimization'
dushyantsingh01f417af -
Fix workspace onboarding crash: make admin user resolve idempotent to prevent UniqueViolation on existing email
dushyantsingh0bfc34e2 -
backend
dushyantsingh015ba76c -
fix: terminate session on portal-mismatch 403 to stop polling flood
dushyantsingh0 +1: Claude Sonnet 4.6The interceptor handled 401 and 429 but not 403. When a superadmin accessed the customer portal, every polling hook retried on its interval after getting blocked, producing hundreds of BLOCKED log lines per minute. Now a 403 whose detail contains 'Operations Console' or 'cannot access' clears localStorage/sessionStorage and reloads, killing all in-flight polls immediately. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c8ea94d -
fix: normalize naive DB datetimes to UTC-aware in personnel analytics
dushyantsingh0 +1: Claude Sonnet 4.6created_at and resolved_at come from the DB as offset-naive datetimes while datetime.now(timezone.utc) is offset-aware. Subtracting them raised TypeError. Wrap both with .replace(tzinfo=timezone.utc) when tzinfo is None before computing duration_mins. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>94afd06 -
fix: always render new session button in Nexus chat header
dushyantsingh0 +1: Claude Sonnet 4.6Previously conditional on messages.length > 0 which hid the button during initial render or before context hydrated. Now always visible but dimmed/disabled when no messages exist, making it immediately discoverable and eliminating conditional render race. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6489fc7 -
feat: add new session button to Nexus chat widget on both portals
dushyantsingh0 +1: Claude Sonnet 4.6Adds a SquarePen icon button in the chat header that appears once the conversation has messages. Clicking it calls resetState() which clears the thread ID, messages, and sessionStorage so the next query starts a completely fresh conversation. Button is hidden on empty sessions to keep the UI clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>06adf00 -
fix: clean tab transition in customer ticket queue
dushyantsingh0 +1: Claude Sonnet 4.6Old rows were animating out while new rows animated in simultaneously (AnimatePresence popLayout on tbody rows) because isApplyingFilters didn't trigger the skeleton when loading=false (cache hit path). Wrap the content panel in AnimatePresence mode=wait keyed by viewMode so the old panel fully fades out before the new one enters. Also fix the skeleton condition to fire on isApplyingFilters regardless of loading state, so cache hits still get a clean transition skeleton. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>688da93 -
fix: eliminate loading flash on ticket queue navigation in both portals
dushyantsingh0 +1: Claude Sonnet 4.6Internal portal: sort_by was always 'recency' which made hasFilters=true on every mount, forcing globalQueueLoading=true every time the board opened. sort_by is a presentation preference, not a data filter. Customer portal: useTicketsPaginated started with useState([]) on every remount, causing a flash of empty state before the useEffect could hydrate from sessionStorage. Module-level globalLastResult seeds useState with the most recent valid cache entry so remounts show stale data instantly with no visible loading gap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>4dd1686 -
fix: use block layout for NexusMarkdown so mermaid diagrams fill full width
dushyantsingh0 +1: Claude Sonnet 4.6The flex column with alignItems flex-start caused pre elements (mermaid code block wrappers) to shrink-wrap to intrinsic content width, making width:100% on NexusMermaid resolve circularly to the diagram's natural compact size. Block layout is correct for markdown content — children fill the containing block width by default. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0eb22a3 -
fix: expand mermaid diagram container to full width in NexusMarkdown
dushyantsingh0 +1: Claude Sonnet 4.6alignItems: flex-start on the flex column caused NexusMermaid children to shrink to intrinsic content width instead of filling the parent. Adding width: 100% restores the full-width chain so RCA sequence diagrams render at proper size across all three portals. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b4d120d -
fix: responder deflects 'identical to original ticket'; rate limits on responder LLM
dushyantsingh0 +1: Claude Sonnet 4.6prompts.py — Rule 4: ban 'identical to original ticket' and similar lazy deflections; explicit directive to always present full ticket details when GET_TICKET_DETAILS returns data, regardless of conversation history. nexus_master.py — two changes: 1. Switch responder from use_fast_model=True (llama-3.1-8b-instant, 6k TPM shared with router) to get_llm() (llama-3.3-70b-versatile, separate TPM bucket). Router burns 8b-instant budget; responder was starved when tool output was large. 2. Hard-cap effective_tool_output at 4000 chars (~2500 tokens) with a trim note. SEARCH_TICKETS was returning 8584 chars which alone exceeded the 6k TPM limit, causing 429 → ollama failover. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>513c876 -
fix: router mis-routes 'my active tickets' to SUMMARIZE_WORKSPACE; responder deflects with no-data despite tool output
dushyantsingh0 +1: Claude Sonnet 4.6Router: strengthen SUMMARIZE_WORKSPACE exclusion to explicitly cover 'my tickets / my active tickets / my requests' queries (always SEARCH_TICKETS), and add two new few-shot examples to anchor the LLM. Responder Rule 2: flip the default — ALWAYS synthesize non-empty tool output before asking a clarifying question. Remove the old guard that only covered ticket-specific fields (workspace snapshot slipped through), replace with a hard rule: non-empty TOOL OUTPUT = present it, never open with a clarifying question. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e46996d -
backend
dushyantsingh02fd20f1 -
backend
dushyantsingh07f3168f -
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 -
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
-
fix: harden NexusMermaid rendering — skip false-positive parse, show error detail
dushyantsingh0 +1: Claude Sonnet 4.6- Remove explicit mermaid.parse() pre-check; go straight to render() which validates internally. parse() in v10.9 can throw on valid syntax. - Remove nested xyChart object from themeVariables (not a valid mermaid key; may corrupt internal config and cause all diagrams to fail) - Always call mermaid.initialize() per render to avoid stale config state - Show the actual mermaid error message when a diagram fails (+ console.error) so failures are diagnosable without opening devtools Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d30af1d -
feat: pin tool steps to messages + robust mermaid multi-diagram rendering
dushyantsingh0 +1: Claude Sonnet 4.6- NexusContext: add _toolSteps to NexusMessage; on SSE done, snapshot completed tool steps into the assistant message before clearing live state - NexusHub + both NexusMasterAgent: render pinned tool pills (green) above message content when _toolSteps present on a completed message - NexusMarkdown: split multi-diagram mermaid blocks into separate renders so each chart renders independently instead of all failing together - NexusMermaid: strip trailing 'end' keyword, convert bracket-style xychart data ('0' [16] → bar [16, ...]), fix colon-style headers (title: X → title "X") for both xychart and pie charts - prompts.py: instruct both responders to put each diagram in its own separate mermaid block, no 'end' keyword, no colon-style headers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>92c20b5 -
fix: delete thread drops paginated sessions, Groq 20s retry, empty response, invisible NX avatar
dushyantsingh0 +1: Claude Sonnet 4.6deleteThread: optimistic removal instead of fetchSessions() refetch — refetching only page 1 caused sessions loaded via scroll-pagination to disappear temporarily Groq LLM: max_retries=0 disables Groq's internal 20s exponential backoff so LazyFailoverChatModel immediately catches the rate-limit error and switches to the backup provider instead of stalling the response for 20+ seconds Responder prompt: replaced vague 'synthesize into briefing' + '2-4 sentences max' with explicit rule — response IS the delivery channel, never say 'I've provided', always present full ticket data inline with GFM tables. Length scales with data. NexusHub: fix invisible NX avatar in loading indicator (var(--primary-gradient) → var(--banner-gradient) which actually exists in the design tokens) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>53d8723 -
fix: resolve creator/assignee names and expose all ticket fields in tools
dushyantsingh0 +1: Claude Sonnet 4.6get_ticket_details_tool: - JOIN User table 3x (creator, assignee, resolver) — now answers 'who created/assigned this' - JOIN User on messages — shows sender names instead of raw UUIDs - JOIN User on audit events — shows actor names in activity history - Include: created_at, sla_deadline, expected_resolution_at, estimated_effort_hours, category, is_escalated, resolved_by — all fields an agent needs to answer basic questions - Staff sees creator email too; customers see only name search_tickets_tool: - JOIN assignee + creator — shows names in list results - Include created_at, sla_deadline, category per ticket row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>76bd96a -
fix: CLARIFY misfires on explicit ticket IDs, add audit history to ticket details
dushyantsingh0 +1: Claude Sonnet 4.6- Router: add CLARIFY guard (never CLARIFY when ticket ID present or active ticket in context) - Router: add few-shot examples for 'activities/history/summary on ticket X' → GET_TICKET_DETAILS - Fast-track: new rule matching 'activities/history/timeline on ticket' → GET_TICKET_DETAILS with proper ticket_id extraction (not generic query arg) - get_ticket_details_tool: fetch AuditLog events and include as ACTIVITY HISTORY section so ticket history events (SLA breaches, escalations) are visible to the agent - Responder prompt: do not ask for 'more context' when tool output contains ticket details (empty conversation != empty data) - Graph cache key bumped nexus_v2 → nexus_v3 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1181145 -
fix: remove duplicate loading bubble in NexusHub and NexusMasterAgent
dushyantsingh0 +1: Claude Sonnet 4.6NexusContext immediately adds an empty assistant message on query start. With content="", isActivelyStreaming was false, so both the empty bubble from messages.map() and the ActivityPanel rendered simultaneously. Skip rendering the empty assistant placeholder — ActivityPanel already handles the pre-first-token loading phase. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>7002df6 -
feat: live activity panel with tool steps, async Phase 5 persistence, agent overhaul
dushyantsingh0 +1: Claude Sonnet 4.6- NexusContext: track tool_start/tool_end SSE events as ToolStep[] state; clear on done - Customer/Internal NexusMasterAgent: replace dots with ActivityPanel showing each tool step checking off in real-time (running purple → done green with Check icon) - NexusHub: same live activity panel inline in hub chat UI - useNexus: re-export ToolStep type for consumers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>ce92d20 -
backend
dushyantsingh0fee8487 -
backend
dushyantsingh05813b86 -
Fix xychart nested themeVariables and add CSS overrides to force label contrast
dushyantsingh00b41ed9 -
Optimize Nexus Hub: align workspace checks, fix worker backoff, frontend approval HUD, Mermaid validation & high-contrast theme variables, and simplify backend response handling
dushyantsingh00ae165b -
backend
dushyantsingh0f95ecf7 -
backend sprint
dushyantsingh05a41337 -
design: enhance landing page with line height fix, glassmorphic styling, entrance animations, and interactive particle canvas background
dushyantsingh0c04c757 -
fix: resolve greedy regex matching for triple-backtick markdown blocks in NexusMarkdown
dushyantsingh01bead8c -
style: increase margin between badge and hero title on landing page
dushyantsingh018e0a6e -
fix: allow superadmin to edit and delete articles in KB UI
dushyantsingh0a4c08a4 -
backend sprint
dushyantsingh050d145d -
fix customer analytics summary formatting and font sizes
dushyantsingh048209bc -
backend sprint
dushyantsingh0d050df5 -
backend sprint
dushyantsingh04c985e0 -
backend sprint
dushyantsingh0cf96a4f
-
backend sprint
dushyantsingh077de24c -
backend sprint
dushyantsingh08f627ba -
backend sprint
dushyantsingh0ecca730
-
Initial commit
dushyantsingh07de9344 -
Initial commit
dushyantsingh0c73e23d -
Initial commit
dushyantsingh0c0fc2f2 -
Initial commit
dushyantsingh0aa510be -
Initial commit
dushyantsingh058231d3 -
Initial commit
dushyantsingh0d8744fd -
Initial commit
dushyantsingh017923f1 -
Initial commit
dushyantsingh0053ff4c