fix: use systemPrompt instead of prependContext for end marker instruction

- Change before_prompt_build hook to return systemPrompt instead of prependContext
- This ensures the end marker instruction is injected once per session as a system prompt, not repeatedly prepended to each user message
- Add moderatorBotToken to CONFIG.example.json for documentation
This commit is contained in:
zhi
2026-02-28 19:24:50 +00:00
parent 86fdc63802
commit 81758b9a54
2 changed files with 4 additions and 3 deletions

View File

@@ -22,7 +22,8 @@
"debugLogChannelIds": [],
"discordControlApiBaseUrl": "http://127.0.0.1:8790",
"discordControlApiToken": "<DISCORD_CONTROL_AUTH_TOKEN>",
"discordControlCallerId": "agent-main"
"discordControlCallerId": "agent-main",
"moderatorBotToken": "<MODERATOR_BOT_TOKEN>"
}
}
}