Skip to content
Merged
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 src/codex/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export function collectOrcaCodexHomeDiagnostic(deps: OrcaCodexHomeDeps = {}): Or
? `CODEX_HOME targets Orca's runtime home (${displayEffective}), while the Windows ChatGPT/Codex app uses ${displayApp}; OpenCodex injection will not reach that app.`
: null,
action: mismatch
? "If a service was installed from Orca, run 'ocx service uninstall' in that original Orca shell first. Then in Command Prompt run set \"ORCA_CODEX_HOME=\" and set \"CODEX_HOME=%USERPROFILE%\\.codex\"; or in PowerShell run Remove-Item Env:ORCA_CODEX_HOME -ErrorAction SilentlyContinue and $env:CODEX_HOME = Join-Path $env:USERPROFILE '.codex'. Rerun the command, then reinstall with 'ocx service install'."
? "If a service was installed from Orca, run 'ocx service uninstall' in that original Orca shell first. Then in Command Prompt run set \"ORCA_CODEX_HOME=\" and set \"CODEX_HOME=%USERPROFILE%\\.codex\"; or in PowerShell run Remove-Item Env:ORCA_CODEX_HOME -ErrorAction SilentlyContinue; $env:CODEX_HOME = Join-Path $env:USERPROFILE '.codex'. Rerun the command, then reinstall with 'ocx service install'."
: null,
};
}
1 change: 1 addition & 0 deletions tests/doctor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ describe("doctor", () => {
expect(mismatch.action).toContain("ocx service install");
expect(mismatch.action).toContain("%USERPROFILE%\\.codex");
expect(mismatch.action).toContain("Remove-Item Env:ORCA_CODEX_HOME");
expect(mismatch.action).toContain("SilentlyContinue; $env:CODEX_HOME");
expect(mismatch.action).not.toContain("C:\\Users\\[USER]");

const matching = collectOrcaCodexHomeDiagnostic({
Expand Down
Loading