fix: use role-specific cursor keys in review_ready and arbiter_requested paths

The review_ready and arbiter_requested paths in processGroupMessages
were advancing the default (owner) cursor instead of the role-specific
cursor. This caused the reviewer to miss the owner's messages because
the owner cursor had already moved past them.

Now review_ready advances chatJid:reviewer cursor only, and
arbiter_requested advances chatJid:arbiter cursor only.
This commit is contained in:
Eyejoker
2026-03-30 22:50:26 +09:00
parent 4ccd45e549
commit 46926f32f3
2 changed files with 6 additions and 2 deletions

View File

@@ -631,7 +631,7 @@ describe('createMessageRuntime', () => {
expect(result).toBe(true);
expect(agentRunner.runAgentProcess).toHaveBeenCalledTimes(1);
expect(lastAgentTimestamps[chatJid]).toBe('41');
expect(lastAgentTimestamps[`${chatJid}:reviewer`]).toBe('41');
expect(saveState).toHaveBeenCalled();
expect(channel.sendMessage).toHaveBeenCalledWith(chatJid, '리뷰 확인 완료');
});