From d7349b62daaf676b0e0897eeb2ca471c5a057ddd Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 8 Mar 2026 02:17:44 +0900 Subject: [PATCH] fix(todo-continuation-enforcer): add stagnation state fields Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/todo-continuation-enforcer/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/todo-continuation-enforcer/types.ts b/src/hooks/todo-continuation-enforcer/types.ts index 20c28d6f3..699b726cd 100644 --- a/src/hooks/todo-continuation-enforcer/types.ts +++ b/src/hooks/todo-continuation-enforcer/types.ts @@ -27,8 +27,10 @@ export interface SessionState { isRecovering?: boolean countdownStartedAt?: number abortDetectedAt?: number + lastIncompleteCount?: number lastInjectedAt?: number inFlight?: boolean + stagnationCount: number consecutiveFailures: number }