From 4ccd45e5493b1b77624229f10d40bd3fe8227c2d Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Mon, 30 Mar 2026 22:34:49 +0900 Subject: [PATCH] fix: arbiter always uses discord-review bot regardless of model --- src/message-runtime.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/message-runtime.ts b/src/message-runtime.ts index 42279bf..3b6cf0c 100644 --- a/src/message-runtime.ts +++ b/src/message-runtime.ts @@ -449,9 +449,8 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): { REVIEWER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review'; handoffChannel = findChannelByName(deps.channels, revChName) || channel; } else if (isArbiterHandoff) { - const arbChName = - ARBITER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review'; - handoffChannel = findChannelByName(deps.channels, arbChName) || channel; + handoffChannel = + findChannelByName(deps.channels, 'discord-review') || channel; } const runId = `handoff-${handoff.id}`; @@ -527,11 +526,9 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): { ); const reviewerChannel = foundReviewerChannel || channel; - // Arbiter channel: route arbiter output through the appropriate bot. - const arbiterChannelName = - isPairedRoomJid(chatJid) && ARBITER_AGENT_TYPE === 'claude-code' - ? 'discord' - : 'discord-review'; + // Arbiter always uses discord-review bot regardless of model — + // the arbiter role is tied to the 3rd bot, not the model behind it. + const arbiterChannelName = 'discord-review'; const foundArbiterChannel = findChannelByName( deps.channels, arbiterChannelName,