SurfSense/surfsense_backend/tests/unit/tasks/chat/streaming
CREDO23 28b13ed25b refactor(agents): move context schema + state reducers to app/agents/shared (slice 2)
Continue promoting the shared agent toolkit out of `new_chat` into the
cross-agent `app/agents/shared` kernel.

- state_reducers.py: clean move (no single-agent importer); all 7 importers
  flipped to app.agents.shared.state_reducers.
- context.py: moved to app.agents.shared.context; flipped the multi-agent,
  app, automations, chat-flows and monolith importers. A thin re-export shim
  remains at new_chat/context.py because the not-yet-retired single-agent
  (chat_deepagent) and the new_chat package __init__ still import it; the shim
  goes away with the single-agent deletion.
- Updated the stream parity test's annotation normalizer to strip the new
  app.agents.shared.context. prefix (SurfSenseContextSchema.__module__ changed
  with the move), keeping monolith<->flows signature parity intact.

Behavior-preserving: definitions unchanged; only import paths move. 1219 tests green.
2026-06-04 12:19:22 +02:00
..
__init__.py Add parity unit tests for extracted chat streaming vs legacy. 2026-05-06 20:08:48 +02:00
test_interrupt_inspector_all.py chore: linting 2026-05-15 17:33:44 -07:00
test_parallel_refactor_parity.py refactor(agents): move context schema + state reducers to app/agents/shared (slice 2) 2026-06-04 12:19:22 +02:00
test_stage_1_parity.py refactor(agents): move error taxonomy to app/agents/shared/errors (slice 1) 2026-06-04 12:13:55 +02:00
test_stage_2_parity.py Carry thinkingStepId on tool output and extend builder and parity tests. 2026-05-08 23:17:12 +02:00
test_stream_output.py refactor: remove memory extraction functions and related components from the new chat agent 2026-05-20 14:03:28 +05:30
test_task_span.py feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
test_tool_activity_metadata.py Cover tool_activity_metadata for span-only, step-only, and combined cases. 2026-05-08 23:16:56 +02:00