Complete paired-room SSOT cleanup and logger singleton

This commit is contained in:
ejclaw
2026-04-07 05:12:22 +09:00
parent ae12b157be
commit 10e10b499c
18 changed files with 648 additions and 473 deletions

View File

@@ -5,11 +5,11 @@ import {
import {
getPairedWorkspace,
hasActiveCiWatcherForChat,
updatePairedTask,
} from './db.js';
import { logger } from './logger.js';
import { markPairedTaskReviewReady } from './paired-workspace-manager.js';
import {
applyPairedTaskPatch,
classifyVerdict,
hasCodeChangesSinceRef,
requestArbiterOrEscalate,
@@ -207,10 +207,12 @@ export function handleOwnerCompletion(args: {
const result = markPairedTaskReviewReady(taskId);
if (result) {
updatePairedTask(taskId, {
round_trip_count: task.round_trip_count + 1,
review_requested_at: now,
updated_at: now,
applyPairedTaskPatch({
taskId,
updatedAt: now,
patch: {
round_trip_count: task.round_trip_count + 1,
},
});
logger.info(
{ taskId, roundTrip: task.round_trip_count + 1 },