fix(oauth): retain operator settings across provider login - #3688
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 |
리뷰 · 우선순위 69 / 80이 PR은 OAuth 로그인 때 provider 행을 preset으로 다시 만들어 운영자 설정을 잃던 문제를 줄입니다. 지금 HEAD의 문서에 providers-accounts 참고가 조금 보강됐고, reconcile/upsert 테스트가 늘었습니다. 체크리스트의 security 항목이 아직 비어 있고, draft·hosted CI 대기입니다. Antigravity replay 후속 작업이 이 레이어를 소비한다고 하니, C 열차에서 위치가 분명합니다. types/config 분할과 직접 충돌하지 않습니다. OAuth 재로그인은 자주 일어나는 운영 동작입니다. 그때마다 피커 선택·가격 오버레이·failover 옵트아웃이 리셋되면 “로그인만 했는데 설정이 날아감”이 됩니다. HEAD의 whitelist 보존은 이미 몇 개를 막고 있지만 구멍이 남고, 이 PR은 보존 모델을 뒤집습니다. credential을 만지는 코드라 보안 체크리스트를 비워 둔 채 ready로 올리면 안 됩니다. 경로/심볼 경로 테스트 preserve operator fields / xAI / catalog / key billing - 의도가 테스트 이름으로 잠겨 있습니다. exact-head 원격 통과 주장을 본문이 적습니다. 경로 문서 경로 의존 경로 원본 경로 체크리스트 security - 미체크. OAuth/credential 경계라 독립 보안 리뷰를 머지 게이트로 두는 편이 안전합니다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
✅ Deterministic PR hygiene checks passed. |
|
Owner explicitly authorized admin merging the C-lane stack. Independent security/code review: PASS at |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
OAuth login currently rebuilds a provider row from its preset and loses operator settings outside a small preservation list. Preserve the existing row, refresh only login-owned transport/auth and registry-owned catalog fields, and keep valid live-discovery defaults. OAuth-only providers discard incompatible key credentials; providers supporting key overrides retain sanitized keys and billing intent. Cloud Code Assist login also clears account-owned project metadata so the next request uses the active credential snapshot.
Carries #3631 onto current
dev, preserving the newer xAI transport overrides and their regressions. Original source commits:015c04afd152380e4948c506d49acaa9215694d6,3f4e7c5a46d1f078559bda9aa53b88a1d96c4e48,171451d338ab76b55185e587986450397f20ee02.Stack layer 3/5, depends on #3687 (
codex/c-lane-3536-d778). Review only the OAuth configuration delta. Later Antigravity replay work consumes this layer; merge bottom-up.Verification
macmini-cfBun 1.4.0 at7ca5890ba27b84f238445f0dfa4f4f8cba7f6be7: nine focused files, 174 pass / 0 fail; source archive SHA256 verified.Checklist
Co-authored-by: SB Yoon 44089734+yansigit@users.noreply.github.com