@zq-silk/yui 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1485,9 +1485,10 @@ export class SqliteTaskStore {
|
|
|
1485
1485
|
if (round === null) {
|
|
1486
1486
|
throw new StorageRecordError(`Agent run ReviewRound not found: ${run.reviewRoundId}.`);
|
|
1487
1487
|
}
|
|
1488
|
+
const roundWorkItemId = round.workItemId ?? round.legacyAnchor?.workItemId;
|
|
1488
1489
|
const laneRole = round.executionGroup?.lanes
|
|
1489
1490
|
.find(({ id }) => id === run.executionLaneId)?.roleName;
|
|
1490
|
-
if (
|
|
1491
|
+
if (roundWorkItemId !== run.workItemId
|
|
1491
1492
|
|| (round.reviewerRoleName !== run.roleName && laneRole !== run.roleName)) {
|
|
1492
1493
|
throw new StorageRecordError(`Agent run does not match ReviewRound: ${run.id}.`);
|
|
1493
1494
|
}
|
|
@@ -998,8 +998,9 @@ export class FileTaskStore {
|
|
|
998
998
|
if (round === undefined) {
|
|
999
999
|
throw new StorageRecordError(`Agent run ReviewRound not found: ${stored.reviewRoundId}.`);
|
|
1000
1000
|
}
|
|
1001
|
+
const roundWorkItemId = round.workItemId ?? round.legacyAnchor?.workItemId;
|
|
1001
1002
|
const laneRole = round.executionGroup?.lanes.find(({ id }) => id === stored.executionLaneId)?.roleName;
|
|
1002
|
-
if (
|
|
1003
|
+
if (roundWorkItemId !== stored.workItemId
|
|
1003
1004
|
|| (round.reviewerRoleName !== stored.roleName && laneRole !== stored.roleName)) {
|
|
1004
1005
|
throw new StorageRecordError(`Agent run does not match ReviewRound: ${stored.id}.`);
|
|
1005
1006
|
}
|