Bug Report
Description
ui/app/api/agent/route.ts stores conversation history in a module-level Map.
This means:
- All history is wiped on every server restart or hot reload
- The app cannot scale to more than one process (Vercel serverless, multiple dynos, etc.)
- Two users on the same session ID will share history if both hit different instances
Affected file
ui/app/api/agent/route.ts
Acceptance criteria
Bug Report
Description
ui/app/api/agent/route.tsstores conversation history in a module-levelMap.This means:
Affected file
ui/app/api/agent/route.tsAcceptance criteria
next devrestartsession_id