diff --git a/src/main/codex/history/index/codex-session-index-heal.ts b/src/main/codex/history/index/codex-session-index-heal.ts index 2c4e79b9b89..88455005f18 100644 --- a/src/main/codex/history/index/codex-session-index-heal.ts +++ b/src/main/codex/history/index/codex-session-index-heal.ts @@ -1,6 +1,7 @@ import { dirname, join } from 'node:path' import { resolveCodexCommand } from '../../../codex-cli/command' import { isTransientSqliteContention } from '../../../sqlite/sqlite-read-failure' +import { isMissingProviderExecutable } from '../../../provider-process/provider-executable-missing' import { CODEX_SHORT_LIVED_PROBE_APP_SERVER_ARGS } from '../../../codex-cli/codex-read-only-app-server-args' import { buildWslCodexAppServerArgs } from '../../../codex-cli/wsl-codex-command' import { resolveWslExecutablePath } from '../../../wsl/execution/wsl-executable-path' @@ -189,8 +190,9 @@ export async function readCodexThreadsForIndexHeal { + await runSession(invocation, async (rpc) => { let nextIndex = 0 const worker = async (): Promise => { while (nextIndex < batch.length && !shouldStop()) { @@ -211,6 +213,10 @@ export async function readCodexThreadsForIndexHeal { return new Promise((resolve) => { setTimeout(resolve, ms)