@devries-cameron20 / t3code Mirror · read-only / commits / 6d9b21c5d0
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 07:30 UTC

[codex] migrate Effect.fn in apps/server/src/provider/Layers/CodexProvider.ts (#1635)

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Apr 1, 2026 at 08:56 UTC 6d9b21c5d042ff992b26493563096459cb9158ac
1 file changed +13 -14
apps/server/src/provider/Layers/CodexProvider.ts
+13 -14
@@ -306,21 +306,20 @@ const probeCodexCapabilities = (input: {
306 }),
307 );
308
309 -const runCodexCommand = (args: ReadonlyArray<string>) =>
310 - Effect.gen(function* () {
311 - const settingsService = yield* ServerSettingsService;
312 - const codexSettings = yield* settingsService.getSettings.pipe(
313 - Effect.map((settings) => settings.providers.codex),
314 - );
315 - const command = ChildProcess.make(codexSettings.binaryPath, [...args], {
316 - shell: process.platform === "win32",
317 - env: {
318 - ...process.env,
319 - ...(codexSettings.homePath ? { CODEX_HOME: codexSettings.homePath } : {}),
320 - },
321 - });
322 - return yield* spawnAndCollect(codexSettings.binaryPath, command);
309 +const runCodexCommand = Effect.fn("runCodexCommand")(function* (args: ReadonlyArray<string>) {
310 + const settingsService = yield* ServerSettingsService;
311 + const codexSettings = yield* settingsService.getSettings.pipe(
312 + Effect.map((settings) => settings.providers.codex),
313 + );
314 + const command = ChildProcess.make(codexSettings.binaryPath, [...args], {
315 + shell: process.platform === "win32",
316 + env: {
317 + ...process.env,
318 + ...(codexSettings.homePath ? { CODEX_HOME: codexSettings.homePath } : {}),
319 + },
320 });
321 + return yield* spawnAndCollect(codexSettings.binaryPath, command);
322 +});
323
324 export const checkCodexProviderStatus = Effect.fn("checkCodexProviderStatus")(function* (
325 resolveAccount?: (input: {