SurfSense/surfsense_backend/app/tasks/chat
CREDO23 9c845d562e refactor(agents): colocate main-agent middleware under main_agent/ slice
Vertical-slice colocation: all main-agent code should live under
main_agent/ instead of being split across a parallel middleware/main_agent
tree. Move multi_agent_chat/middleware/main_agent/ -> main_agent/middleware/
and its assembler middleware/stack.py -> main_agent/middleware/stack.py, so
the main-agent slice is self-contained (graph, runtime, system_prompt, tools,
middleware).

Genuinely cross-slice middleware (middleware/shared/, middleware/subagent/)
stays under multi_agent_chat/middleware/ for a later slice; the moved builders
now reference it via absolute imports.

Pure move + import rewrite (git-tracked renames). Verified: full unit suite
green (2430 passed, 1 skipped), including test_import_all and the
checkpointed-subagent middleware suite.
2026-06-04 18:03:49 +02:00
..
streaming refactor(agents): colocate main-agent middleware under main_agent/ slice 2026-06-04 18:03:49 +02:00
content_builder.py feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
persistence.py feat(web): enhance mention handling to support connectors and improve document key management 2026-05-26 21:52:04 +05:30