@kenkaiiii/ggcoder 5.60.5 → 5.60.7

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.
@@ -34,7 +34,7 @@ import { buildKenDigest, buildKenAutopilotContext, buildKenAutopilotPlanContext,
34
34
  import { parseAutopilotVerdict } from "./core/autopilot-verdict.js";
35
35
  import { isWorkflowCommandText, countAssistantMessages, shouldStartAutopilotCycle, extractTurnToolCalls, isMechanicalOnlyTurn, } from "./core/autopilot-gate.js";
36
36
  import { driveAutopilotCycle, frameAutopilotInjection } from "./core/autopilot-cycle.js";
37
- import { describeRunVerification } from "./core/run-status.js";
37
+ import { describeRunVerification, describeTurnVerification } from "./core/run-status.js";
38
38
  import { validateKenModelPref, effectiveKenModel } from "./core/ken-model.js";
39
39
  import { normalizeAutopilotMarkersForHistory, normalizeAppMarkersForHistory, normalizeKenTurnsForHistory, getHistoryMessageVisibility, replayMessagesInOrder, restoreUserRow, restoreAssistantTexts, resolveRestoredCommand, autopilotMarkerCopySeed, } from "./core/session-history.js";
40
40
  import { sessionToMarkdown, defaultExportFilename, } from "./core/session-export.js";
@@ -2273,8 +2273,14 @@ async function createSession(deps, opts) {
2273
2273
  ...(cancelled ? { cancelled: true } : {}),
2274
2274
  ...(verificationProblem ? { unverified: true } : {}),
2275
2275
  failed: !cancelled && !runSucceeded,
2276
- reviewPending: !cancelled && runSucceeded && (reviewPending() || !ownsGeneration),
2276
+ // The cycle refuses an unresolved verification gate. Do not advertise
2277
+ // a review handoff that will exit before emitting any review events.
2278
+ reviewPending: !cancelled &&
2279
+ runSucceeded &&
2280
+ !verificationProblem &&
2281
+ (reviewPending() || !ownsGeneration),
2277
2282
  ...describeRunVerification(session.getVerificationEvidence(), verificationProblem),
2283
+ turnVerification: describeTurnVerification(session.getRunVerificationActivity(), verificationProblem),
2278
2284
  ...(verificationProblem ? { verificationReason: verificationProblem } : {}),
2279
2285
  runState: runLifecycle.state,
2280
2286
  });