Skip to content

fix(login): protect 2FA input pipe lifecycle - #212

Merged
bitxeno merged 1 commit into
bitxeno:masterfrom
YellowNest:fix/login-2fa-pipe-lifecycle
Oct 12, 2026
Merged

bitxeno merged 1 commit into
bitxeno:masterfrom
YellowNest:fix/login-2fa-pipe-lifecycle

Conversation

@YellowNest

Copy link
Copy Markdown
Contributor

Summary

  • Serialize login attempts to prevent overlapping subprocesses from sharing mutable state.
  • Synchronize cancellation and stdin pipe state.
  • Safely ignore late 2FA responses after the login process exits.
  • Avoid holding the state mutex across potentially blocking pipe writes.

Validation

  • Five lifecycle regression tests.
  • Go unit tests and race detector passed.
  • Frontend tests, build and lint passed.

This is an independent login lifecycle fix. It does not claim to resolve the Avahi crash in #202 or Apple's -22411 authentication error.

@bitxeno
bitxeno merged commit e5bae1e into bitxeno:master Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址