it0/packages
hailin f186c57afb fix(agent): decode JWT directly to get userId for system prompt
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>
2026-03-09 08:51:28 -07:00
..
gateway feat(feishu): add Feishu channel integration — long-connection bot + OAuth binding 2026-03-09 03:15:38 -07:00
openclaw-bridge feat(openclaw): OpenClaw skill injection pipeline — iAgent → bridge → SKILL.md 2026-03-09 02:16:47 -07:00
services fix(agent): decode JWT directly to get userId for system prompt 2026-03-09 08:51:28 -07:00
shared feat(feishu): add Feishu channel integration — long-connection bot + OAuth binding 2026-03-09 03:15:38 -07:00