[chat/streaming] _active_streams dict has no eviction, TTL, or size limit #736
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#736
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
routes/chat_routes.pyline 43 defines_active_streams: Dict[str, dict] = {}— a module-level dictionary that tracks active streaming sessions.Entries are added when streaming starts and removed in
finallyblocks. However:finallyblock fails (e.g., exception during partial-save), the entry persists foreverThis is the same pattern flagged in #682 for
_RUNSin agent_runs.py.Impact
finallycleanup is skipped/api/chat/stream_statusreturn stale dataSuggested fix
agent_runstracking into a unified stream registry