fix: arbiter always uses discord-review bot regardless of model
This commit is contained in:
@@ -449,9 +449,8 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
|
|||||||
REVIEWER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review';
|
REVIEWER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review';
|
||||||
handoffChannel = findChannelByName(deps.channels, revChName) || channel;
|
handoffChannel = findChannelByName(deps.channels, revChName) || channel;
|
||||||
} else if (isArbiterHandoff) {
|
} else if (isArbiterHandoff) {
|
||||||
const arbChName =
|
handoffChannel =
|
||||||
ARBITER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review';
|
findChannelByName(deps.channels, 'discord-review') || channel;
|
||||||
handoffChannel = findChannelByName(deps.channels, arbChName) || channel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const runId = `handoff-${handoff.id}`;
|
const runId = `handoff-${handoff.id}`;
|
||||||
@@ -527,11 +526,9 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): {
|
|||||||
);
|
);
|
||||||
const reviewerChannel = foundReviewerChannel || channel;
|
const reviewerChannel = foundReviewerChannel || channel;
|
||||||
|
|
||||||
// Arbiter channel: route arbiter output through the appropriate bot.
|
// Arbiter always uses discord-review bot regardless of model —
|
||||||
const arbiterChannelName =
|
// the arbiter role is tied to the 3rd bot, not the model behind it.
|
||||||
isPairedRoomJid(chatJid) && ARBITER_AGENT_TYPE === 'claude-code'
|
const arbiterChannelName = 'discord-review';
|
||||||
? 'discord'
|
|
||||||
: 'discord-review';
|
|
||||||
const foundArbiterChannel = findChannelByName(
|
const foundArbiterChannel = findChannelByName(
|
||||||
deps.channels,
|
deps.channels,
|
||||||
arbiterChannelName,
|
arbiterChannelName,
|
||||||
|
|||||||
Reference in New Issue
Block a user