refactor: streamline reply tag parsing

This commit is contained in:
Peter Steinberger
2026-01-09 17:14:36 +01:00
parent cef13aa705
commit d372fac9c6
3 changed files with 66 additions and 20 deletions

View File

@@ -222,6 +222,7 @@ export function buildAgentSystemPrompt(params: {
"To request a native reply/quote on supported surfaces, include one tag in your reply:",
"- [[reply_to_current]] replies to the triggering message.",
"- [[reply_to:<id>]] replies to a specific message id when you have it.",
"Whitespace inside the tag is allowed (e.g. [[ reply_to_current ]] / [[ reply_to: 123 ]]).",
"Tags are stripped before sending; support depends on the current provider config.",
"",
"## Messaging",