it0/packages
hailin 6ca8aab243 fix(agent-service): store proper title in session metadata, exclude systemPrompt from list API
Two issues fixed:

1. agent.controller.ts — on the FIRST task of each session, write title+voiceMode
   into session.metadata so the client can display a meaningful conversation title:
     - Text sessions: metadata.title = first 40 chars of user prompt
     - Voice sessions: metadata.title = '' + metadata.voiceMode = true
       (Flutter renders these as '语音对话 M/D HH:mm')
   titleSet flag prevents overwriting the title on subsequent turns of the same session.

2. session.controller.ts — listSessions() now returns a DTO instead of the raw entity.
   systemPrompt is an internal engine instruction and is explicitly excluded from the
   response. The client receives { id, status, engineType, metadata, createdAt, updatedAt }.
2026-03-04 02:39:47 -08:00
..
gateway feat: implement complete commercial monetization loop (Phases 1-4) 2026-03-03 21:09:17 -08:00
services fix(agent-service): store proper title in session metadata, exclude systemPrompt from list API 2026-03-04 02:39:47 -08:00
shared fix: correct billing migration schema refs and testing mock TenantInfo 2026-03-03 21:22:02 -08:00