Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
리뷰 · 우선순위 61 / 80이 글은 Windows에서 Codex 집이 다른 디스크를 가리킬 때, 계정 목록이 안 열리는 문제를 고쳐요.
고침은 기본 집을 정할 때, 그 폴더가 있으면 연결을 풀어서 실제 경로를 내게 해요. 폴더가 없거나 읽지 못하면 예전 이름을 남겨요. WSL이 Windows 집을 찾는 동작은 그대로예요. Windows에서만 연결을 만들고, 돌아온 경로가 실제 폴더와 같은지 보는 테스트를 넣었어요. 라인 - 메인테이너의 판단이 필요한 지점 환경변수 이 함수는 연결만이 아니라, 이미 있는 기본 집이면 항상 실제 경로를 돌려요. 계정 저장 이름(home id)은 native-profile이 native 경로로 다시 해시해요. native가 성공하면 예전 키와 같아야 해요. 아직 초안이고, 준비 체크는 네 칸 모두 비어 있어요. Windows에서 연결 집으로 계정 목록이 열리는지 보고 머지할지 정해 주세요. 너의 추천 바탕은 이 댓글은 grok-bot이 작성했습니다 |
…n#5865) Squashed carry of lidge-jun#5865. Closes lidge-jun#5864 Co-authored-by: pjhsion <pjhsion@gmail.com>
Summary
Closes #5864
Windows users who move Codex state to another volume often keep %USERPROFILE%/.codex as a directory junction. The default Codex-home resolver previously returned that lexical junction path, so the Windows packaged Bun runtime could not safely canonicalize it later during native-profile/account handling and Codex account settings returned HTTP 500.
This change canonicalizes an existing default Codex home with the portable realpath resolver before the path reaches credential and native-profile writers. Missing or unreadable homes retain the existing lexical-path fallback, and WSL discovery behavior is unchanged. A Windows-only regression test creates a real junction and asserts that the physical target is returned.
Verification
Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.