fix: gate paired runtime on dual registrations

This commit is contained in:
Eyejoker
2026-03-31 12:14:24 +09:00
parent 89335ab005
commit 236f7c2fea
4 changed files with 19 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ import {
import {
clearChannelOwnerLease,
getAllChannelOwnerLeases,
getEffectiveRoomMode,
getEffectiveRuntimeRoomMode,
getRegisteredAgentTypesForJid,
setChannelOwnerLease,
type ChannelOwnerLeaseRow,
@@ -59,7 +59,7 @@ function getDefaultLease(chatJid: string): EffectiveChannelLease {
const types = getRegisteredAgentTypesForJid(chatJid);
const hasClaude = types.includes('claude-code');
const hasCodex = types.includes('codex');
const roomMode = getEffectiveRoomMode(chatJid);
const roomMode = getEffectiveRuntimeRoomMode(chatJid);
if (roomMode === 'tribunal') {
const ownerServiceId =