feat: improve elder companion conversations

This commit is contained in:
Codex Local
2026-08-29 22:06:30 +08:00
parent e652516147
commit f0849119f7
11 changed files with 176 additions and 22 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ func TestBuildContextSummaryIncludesContinuityAndBoundariesWithinSnapshotLimit(t
result := buildContextSummary("王阿姨", profile,
[]string{"上次聊到刚刚注册了个体工商户,准备开始新的工作。"},
[]string{"喜欢在周末听越剧。"})
for _, expected := range []string{"交流边界", "收入", "王阿姨", "最近第1次通话摘要", "注册了个体工商户", "已人工确认的长期记忆", "越剧"} {
for _, expected := range []string{"交流边界", "收入", "王阿姨", "本次交流目标:自然陪伴", "交流节奏:放慢语速", "优先话题:家乡", "背景资料:退休教师", "兴趣:戏曲", "最近第1次通话摘要", "注册了个体工商户", "已人工确认的长期记忆", "越剧"} {
if !strings.Contains(result, expected) {
t.Fatalf("context %q does not contain %q", result, expected)
}