Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change prevents conflicting user identities from matching through shared workspace or home paths. It also updates account-manager test setup to use explicit subjects and verifies separate discovery, removal, and materialization for shared provider identifiers. ChangesTeam user identity separation
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Account reconciliation now keeps distinct users in the same workspace separate, including their saved accounts and managed homes. The supplied validation passes, so the change is mergeable. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks 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 |
|
Independent thermo source review: PASS at The identity-conflict guard runs before workspace-ID and removed-home fallback matching. Conflicting subjects remain separate; when both subjects cannot be compared, conflicting email hints also remain separate. Temporary-home regression coverage checks discovery, selective removal, materialization, and preservation of the other user's authentication file. No blocking structural or identity-isolation issue was found in the two-file Rust diff. There are no frontend or tray-render implementation changes. The existing local validation is author-reported, and this head has no hosted Windows gate. Its exact commit is being included in #610 for full validation against current |
Summary
Fix saved-account reconciliation for different OpenAI users that belong to the same ChatGPT Team workspace.
Account matching previously accepted an equal effective workspace ID before rejecting conflicting user identity. This could collapse two independently authenticated users into one saved account even though they have separate usage quotas.
This change:
No persisted account schema or migration is required.
Related issue
Fixes #592
Affected areas
Check every area this PR changes or could affect:
The frontend is unchanged. The checked UI surfaces consume the corrected shared Rust account list.
Validation
Hosted PR check runs on Blacksmith Windows when
CI_BUDGET_MODEis notoff(see.github/workflows/pr-check.ymlandCONTEXT.md). Still run the local slice and list commands/results below. If a check is not relevant, say why.powershell.exe -ExecutionPolicy Bypass -NoProfile -File scripts\local-check.ps1— passed.git diff --check— passed.UI / tray proof
For UI, tray, settings, or visual behavior changes, use CUA Driver for visual proof. If CUA Driver cannot be used, explain why and attach equivalent manual proof.
Manual runtime verification confirmed that two independently authenticated users in the same Team workspace remain visible as separate saved accounts.
Notes for reviewers
The identity precedence is intentionally narrow:
Regression coverage verifies subject conflicts, email fallback, email changes for a stable subject, different workspaces, discovery, removal, and managed-home materialization.
CLI
--all-accountsenumeration is unchanged and outside this PR.Summary by CodeRabbit