fix(agent): improve team lead delegation messaging + group chat reply hint

- Team lead: no completion language after delegating, no question phrasing
- Group chat: inject reply context hint (NO_REPLY when reply addresses others)
- Both v1 and v2 team lead sections updated
This commit is contained in:
viettranx committed 2026-03-19 13:35:57 +07:00
1 parent 6085e724a2
commit 1e2ca2df7c
4 files changed
+23 -3

No files matched your search

+5
View File
@@ -250,6 +250,11 @@ func BuildSystemPrompt(cfg SystemPromptConfig) string {
lines = append(lines, hint...)
}
// 9.6. Group chat reply hint — remind bot to check reply content, not just reply context
if cfg.PeerKind == "group" {
lines = append(lines, buildGroupChatReplyHint()...)
}
// 10. Extra system prompt (wrapped in tags for context isolation)
if cfg.ExtraPrompt != "" {
header := "## Additional Context"