Refactor new-hook to initialize sessions via HTTP and improve privacy handling

- Removed direct database operations in new-hook.ts and replaced them with an HTTP call to initialize sessions.
- Added error handling for HTTP requests and improved logging for session initialization.
- Updated SessionRoutes to handle new session initialization and privacy checks.
- Enhanced privacy tag stripping logic to prevent saving fully private prompts.
- Improved overall error handling and debugging messages throughout the session management process.
This commit is contained in:
Alex Newman
2025-12-09 13:43:11 -05:00
parent fc5c2d5e07
commit a2f7a4dc5a
5 changed files with 734 additions and 519 deletions
File diff suppressed because one or more lines are too long