Files
ForgeBase/Max API/src/sessions
williamandClaude Sonnet 5 ce25d3f290 feat(sessions): add unified /sessions/messages entry point
Add SessionsService#routeIncomingMessage: if the user has an active
non-completed session, route to its agent by status (only
objective_discovery is implemented so far - any other status rejects
with a clear 409 rather than failing silently); otherwise run the
intent router first and only create a session + start Agent 1 when it
detects a learning intent, replying as plain conversational Max
(PERSONALITY_PROMPT only, no session) otherwise.

Exposed as POST /sessions/messages (JWT-protected), the new single
entry point the chat window should call instead of unconditionally
creating a session on every message.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-01 08:57:29 +01:00
..