SurfSense/surfsense_backend/app/tasks
CREDO23 927009745e refactor(chat): add streaming/flows/new_chat/ per-concern leaf modules
Seven focused modules that the upcoming new_chat orchestrator
composes:

* auto_pin: resolve_initial_auto_pin selects the initial config (with
  vision-capable filtering and error classification).
* llm_capability: check_image_input_capability blocks routing an
  image-bearing turn to a known text-only model.
* runtime_context: build_new_chat_runtime_context assembles the
  SurfSenseContextSchema for a new-chat turn.
* persistence_spawn: spawn_set_ai_responding_bg, spawn_persist_user_task,
  spawn_persist_assistant_shell_task, and await_persist_task background
  the four pre-stream DB writes so they overlap with agent build.
* initial_thinking_step: build_initial_thinking_step +
  iter_initial_thinking_step_frame produce the very first thinking-1 SSE
  step ("Understanding your request" / "Analyzing referenced content").
* title_gen: spawn_title_task + maybe_emit_title_update +
  await_pending_title_update background the thread-title generator and
  interleave its update into the stream when ready.
* input_state: build_new_chat_input_state assembles the LangGraph
  input_state (history bootstrap, mentions resolution, context blocks,
  human-message construction). The heavy one.

Add-only; no orchestrator yet (next commit).
2026-05-25 21:49:45 +02:00
..
celery_tasks feat(connectors): add retry and auth telemetry events 2026-05-22 17:50:02 +05:30
chat refactor(chat): add streaming/flows/new_chat/ per-concern leaf modules 2026-05-25 21:49:45 +02:00
connector_indexers perf(indexers): offload sync embed_text to thread across background workers 2026-05-20 10:09:38 +02:00
document_processors perf(indexers): offload sync embed_text to thread across background workers 2026-05-20 10:09:38 +02:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
composio_indexer.py chore: ran frontend and backend linting 2026-02-01 22:54:25 +05:30
surfsense_docs_indexer.py chore: ran linting 2026-03-17 04:40:46 +05:30