@@ -326,7 +326,13 @@ func (a *agent) generateTitle(ctx context.Context, sessionID string, content str
326326 return fmt.Errorf("no response received from title provider")
327327 }
328328
329− title := strings.TrimSpace(strings.ReplaceAll(finalResponse.Content, "\n", " "))
329+ title := strings.ReplaceAll(finalResponse.Content, "\n", " ")
330+
331+ if idx := strings.Index(title, "</think>"); idx > 0 {
332+ title = title[idx+len("</think>"):]
333+ }
334+
335+ title = strings.TrimSpace(title)
330336 if title == "" {
331337 return nil
332338 }