unlinkParent in src/core/federation.ts refuses last_way_in when the account has no other way to sign in. No test names it.
Done:
[ ] A new test: an account signed up through its parent forge, with no password or passkey, tries to unlink and gets last_way_in. The link stays.
[ ] After adding a passkey or password, the unlink succeeds.
[ ] Unlinking through Settings shows the refusal in words.
Files: test/federation-last-way-in.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing: bun x tsc --noEmit and the new test.
unlinkParentinsrc/core/federation.tsrefuseslast_way_inwhen the account has no other way to sign in. No test names it.Done:
last_way_in. The link stays.Files: test/federation-last-way-in.test.ts
If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.
Before pushing:
bun x tsc --noEmitand the new test.