fix(SessionMessageService): stringify user message content to ensure proper formatting

This commit is contained in:
icarus 2025-09-19 17:54:25 +08:00
parent 7060aab33d
commit 92ba1e4fc3

View File

@ -334,7 +334,7 @@ export class SessionMessageService extends BaseService {
const insertData: InsertSessionMessageRow = { const insertData: InsertSessionMessageRow = {
session_id: sessionId, session_id: sessionId,
role: 'user', role: 'user',
content: prompt, content: JSON.stringify({ role: 'user', content: prompt }),
agent_session_id: agentSessionId, agent_session_id: agentSessionId,
created_at: now, created_at: now,
updated_at: now updated_at: now