req.user is never populated in agent-service (Kong verifies JWT, no Passport strategy). This caused userId to always be undefined → system prompt had no 'Current User ID' → Claude used tenant slug 'shenzhengj' as userId → DB error 'invalid input syntax for type uuid'. Fix: decode JWT payload from Authorization header (no signature verify needed — Kong already verified it) to extract sub (user UUID) for both AgentController and VoiceSessionController. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| gateway | ||
| openclaw-bridge | ||
| services | ||
| shared | ||