SurfSense/surfsense_local/backend/modules/source_roots
DESKTOP-RTLN3BA\$punk 00ed2a746d feat(sources): keep every source in a folder and let a chat or Studio run read only the ticked folders and sources
File-agent proposal 01, phases 0-2, without the Trash and without linked disk roots. Revisions 0024 and 0025 add a managed source root per workspace, a folders tree, and a nullable folder_id on documents, and back-fill existing sources into the root folder. The folders slice creates, renames, moves and deletes folders (delete removes its sources, as today) and moves sources between them. Uploads can carry a relative path that lands under the matching folders. A thread stores its folder and source scope, and chat sends and Studio regenerations resolve it on the server. The existing document_ids request field keeps working exactly as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 17:32:56 -07:00
..
__init__.py feat(sources): keep every source in a folder and let a chat or Studio run read only the ticked folders and sources 2026-10-04 17:32:56 -07:00
managed_root.py feat(sources): keep every source in a folder and let a chat or Studio run read only the ticked folders and sources 2026-10-04 17:32:56 -07:00
models.py feat(sources): keep every source in a folder and let a chat or Studio run read only the ticked folders and sources 2026-10-04 17:32:56 -07:00