SurfSense/surfsense_backend/app/tasks/chat/streaming/flows/shared
CREDO23 2c3edb7c84 refactor(chat): add streaming/flows/shared/terminal_error.py
Extracts handle_terminal_exception: the shared except-branch behavior for
the chat orchestrators. Classifies the raised exception, logs the
structured chat_stream error event, and emits the terminal-error SSE
frame + done sentinel via the streaming service.

Add-only; nothing imports it yet.
2026-05-25 21:49:18 +02:00
..
__init__.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
finalize_emit.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
finally_cleanup.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
first_frames.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
llm_bundle.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
pre_stream_setup.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
premium_quota.py refactor(chat): add streaming/flows/shared/premium_quota.py 2026-05-25 21:49:14 +02:00
span.py refactor(chat): add streaming/flows/shared/ base helpers 2026-05-25 21:49:09 +02:00
terminal_error.py refactor(chat): add streaming/flows/shared/terminal_error.py 2026-05-25 21:49:18 +02:00