Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/src/syncShellEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function syncShellEnvironment(
readEnvironment?: ShellEnvironmentReader;
} = {},
): void {
if ((options.platform ?? process.platform) !== "darwin") return;
if ((options.platform ?? process.platform) === "win32") return;

try {
const shell = env.SHELL ?? "/bin/zsh";
Expand Down
5 changes: 5 additions & 0 deletions apps/server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import {
} from "./config";
import { fixPath, resolveStateDir } from "./os-jank";
import { Open } from "./open";

// Fix PATH eagerly before any Layer construction so that CLI probes
// (e.g. ProviderHealthLive → `codex --version`) can find binaries
// installed via version managers (nvm, bun, etc.).
fixPath();
import * as SqlitePersistence from "./persistence/Layers/Sqlite";
import { makeServerProviderLayer, makeServerRuntimeServicesLayer } from "./serverLayers";
import { ProjectionSnapshotQuery } from "./orchestration/Services/ProjectionSnapshotQuery";
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/os-jank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Effect, Path } from "effect";
import { readPathFromLoginShell } from "@t3tools/shared/shell";

export function fixPath(): void {
if (process.platform !== "darwin") return;
if (process.platform === "win32") return;

try {
const shell = process.env.SHELL ?? "/bin/zsh";
Expand Down