fix(agent): use semicolon as separator in history annotation to avoid ambiguity with IDs
This commit is contained in:
parent
ec84c4dd70
commit
0e72ac87c1
2 changed files with 2 additions and 2 deletions
|
|
@ -876,7 +876,7 @@ func messageHistoryAnnotation(msg providers.Message) string {
|
||||||
if len(parts) == 0 {
|
if len(parts) == 0 {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("[%s] ", strings.Join(parts, ", "))
|
return fmt.Sprintf("[%s] ", strings.Join(parts, "; "))
|
||||||
}
|
}
|
||||||
|
|
||||||
func messageSenderAnnotation(sender *providers.MessageSender) string {
|
func messageSenderAnnotation(sender *providers.MessageSender) string {
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ func TestMessageHistoryAnnotation_IncludesSenderAndThreading(t *testing.T) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if got := messageHistoryAnnotation(msg); got != "[from:Alice Example (@alice), msgs:#m1, reply_to:#p0] " {
|
if got := messageHistoryAnnotation(msg); got != "[from:Alice Example (@alice); msgs:#m1, reply_to:#p0] " {
|
||||||
t.Fatalf("messageHistoryAnnotation() = %q", got)
|
t.Fatalf("messageHistoryAnnotation() = %q", got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue