Refactor local memory and role-fixed runtime routing

This commit is contained in:
Eyejoker
2026-04-04 03:50:28 +09:00
parent ca58e8c8eb
commit 3dd772c229
47 changed files with 6158 additions and 669 deletions

View File

@@ -7,7 +7,6 @@ import {
DATA_DIR,
IDLE_TIMEOUT,
POLL_INTERVAL,
REVIEWER_AGENT_TYPE,
SERVICE_ID,
isSessionCommandSenderAllowed,
STATUS_CHANNEL_ID,
@@ -445,10 +444,8 @@ async function main(): Promise<void> {
}
// Start subsystems (independently of connection handler)
// Resolve the reviewer channel so cron output in paired rooms is posted
// via the reviewer bot — the owner then treats it as a peer request.
const reviewerChannelName =
REVIEWER_AGENT_TYPE === 'claude-code' ? 'discord' : 'discord-review';
// Paired-room scheduler output goes through the reviewer bot slot.
const reviewerChannelName = 'discord-review';
const reviewerChannelForCron = findChannelByName(
channels,
reviewerChannelName,