fix: block stale paired IPC and duplicate finalize turns

This commit is contained in:
ejclaw
2026-04-11 04:18:43 +09:00
parent 320fc58763
commit e88073f2f8
10 changed files with 435 additions and 61 deletions

View File

@@ -543,6 +543,7 @@ describe('IPC message authorization', () => {
chatJid: 'other@g.us',
text: 'review text',
senderRole: 'reviewer',
runId: 'run-reviewer-ipc',
},
'other-group',
false,
@@ -554,6 +555,7 @@ describe('IPC message authorization', () => {
'other@g.us',
'review text',
'reviewer',
'run-reviewer-ipc',
);
expect(result).toEqual(
expect.objectContaining({
@@ -572,6 +574,7 @@ describe('IPC message authorization', () => {
chatJid: 'third@g.us',
text: 'review text',
senderRole: 'reviewer',
runId: 'run-reviewer-ipc',
},
'other-group',
false,