fix: add turn check debug logs + one-time prompt injection #6
Reference in New Issue
Block a user
Delete Branch "fix/turn-check-debug-and-onetime-inject"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Problem 1: Moderator not working
ctx.agentId, resolved accountId, turnOrder lengthctx.accountIdifresolveAccountIdfailsresolveDiscordUserIddebug logs for handoff troubleshootingProblem 2: Prompt injected on every user message
prependContext(notsystemPromptwhich overrides base system prompt)sessionInjectedSet to track which sessions have already injectedDiscussion with Orion
systemPrompthook directly overrides base system prompt (no append capability)prependContextapproach is a good compromise until core supports appending to system prompt