SurfSense/surfsense_backend/app/agents/new_chat/middleware
DESKTOP-RTLN3BA\$punk a34f1fb25c
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
feat: implement agent caches and fix invalid prompt cache configs
- Added a new function `_warm_agent_jit_caches` to pre-warm agent caches at startup, reducing cold invocation costs.
- Updated the `SurfSenseContextSchema` to include per-invocation fields for better state management during agent execution.
- Introduced caching mechanisms in various tools to ensure fresh database sessions are used, improving performance and reliability.
- Enhanced middleware to support new context features and improve error handling during connector and document type discovery.
2026-05-03 06:03:40 -07:00
..
__init__.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
action_log.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
anonymous_document.py feat: updated file management for main agent 2026-04-28 04:32:52 -07:00
busy_mutex.py feat(busy_mutex): enhance thread lock management to prevent stale middleware interference 2026-05-02 01:35:30 +05:30
compaction.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
context_editing.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
dedup_tool_calls.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
doom_loop.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
file_intent.py feat: updated file management for main agent 2026-04-28 04:32:52 -07:00
filesystem.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
flatten_system.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
kb_persistence.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
kb_postgres_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
knowledge_search.py feat: implement agent caches and fix invalid prompt cache configs 2026-05-03 06:03:40 -07:00
knowledge_tree.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
memory_injection.py fix: guard display_name.split() against whitespace-only IndexError (recurseml feedback) 2026-04-10 15:29:56 +05:30
multi_root_local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
noop_injection.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
otel_span.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
permission.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
retry_after.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
skills_backends.py chore: linting 2026-04-28 21:37:51 -07:00
tool_call_repair.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00