SurfSense/surfsense_backend/app/agents/new_chat/middleware
CREDO23 49da7a57df Merge remote-tracking branch 'upstream/dev' into improvement-agent-speed
Resolves: surfsense_backend/app/agents/new_chat/middleware/memory_injection.py
- Took both imports: upstream moved MEMORY_HARD_LIMIT/SOFT_LIMIT to
  app.services.memory; kept our perf-logger import for timing.

Pulls in upstream changes:
- Memory document feature (services/memory refactor, removal of
  app.agents.new_chat.memory_extraction and background extraction in
  stream_new_chat — agent now drives memory via update_memory tool).
- BACKEND_URL env refactor across web tool-ui/editor/chat/dashboard/lib.
- GitHub Actions backend test workflow + pre-commit biome bump.
- Token-display polish in MessageInfoDropdown; save_memory no-update
  sentinel.

Verified: 1723 unit tests pass, ruff clean. No semantic regression in
stream_new_chat (their memory-extraction deletion and our preflight
removal touch different functions).
2026-05-20 21:23:48 +02: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 Merge upstream/dev into feature/multi-agent 2026-05-05 01:44:46 +02:00
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 Harden HITL for multi-step tasks: bypass internal MCP gate, full-args dedup, and decision-envelope normalization. 2026-05-04 19:25:27 +02: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 perf(kb-persistence): offload sync embed_texts to thread 2026-05-20 10:03:14 +02:00
kb_postgres_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
knowledge_search.py perf(kb-planner): route internal planner calls to dedicated small/fast LLM 2026-05-20 11:42:52 +02:00
knowledge_tree.py perf(new-chat): add knowledge_tree middleware timing log 2026-05-19 21:30:14 +02:00
local_folder_backend.py feat: improved agent streaming 2026-04-29 07:20:31 -07:00
memory_injection.py Merge remote-tracking branch 'upstream/dev' into improvement-agent-speed 2026-05-20 21:23:48 +02:00
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 hitl/wire: rename 'always' decision-type to 'approve_always' 2026-05-15 14:47:32 +02:00
retry_after.py chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
scoped_model_fallback.py chore: trim narrative comments and docstrings 2026-05-05 18:27:46 +02: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