Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
[codex] migrate Effect.fn in apps/server/src/provider/Layers/CodexProvider.ts (#1635)
Julius Marminge6d9b21c5d042
diff --git a/apps/server/src/provider/Layers/CodexProvider.ts b/apps/server/src/provider/Layers/CodexProvider.tsindex 499d4c6ff..667bdf048 100644--- a/apps/server/src/provider/Layers/CodexProvider.ts+++ b/apps/server/src/provider/Layers/CodexProvider.ts@@ -306,21 +306,20 @@ const probeCodexCapabilities = (input: {}),);-const runCodexCommand = (args: ReadonlyArray<string>) =>- Effect.gen(function* () {- const settingsService = yield* ServerSettingsService;- const codexSettings = yield* settingsService.getSettings.pipe(- Effect.map((settings) => settings.providers.codex),- );- const command = ChildProcess.make(codexSettings.binaryPath, [...args], {- shell: process.platform === "win32",- env: {- ...process.env,- ...(codexSettings.homePath ? { CODEX_HOME: codexSettings.homePath } : {}),- },- });- return yield* spawnAndCollect(codexSettings.binaryPath, command);+const runCodexCommand = Effect.fn("runCodexCommand")(function* (args: ReadonlyArray<string>) {+ const settingsService = yield* ServerSettingsService;+ const codexSettings = yield* settingsService.getSettings.pipe(+ Effect.map((settings) => settings.providers.codex),+ );+ const command = ChildProcess.make(codexSettings.binaryPath, [...args], {+ shell: process.platform === "win32",+ env: {+ ...process.env,+ ...(codexSettings.homePath ? { CODEX_HOME: codexSettings.homePath } : {}),+ },});+ return yield* spawnAndCollect(codexSettings.binaryPath, command);+});export const checkCodexProviderStatus = Effect.fn("checkCodexProviderStatus")(function* (resolveAccount?: (input: {