af400e1d1c
Review feedback asked for regression coverage of the main process pieces: the connection-config save and apply IPC path that carries allowPlainTextToken down to encryptDesktopSecret, and the Linux --password-store=basic startup branch. main.ts has no exports, so both pieces now live as small injected helpers in hardening.ts next to encryptDesktopSecret. The whenReady block became enableBasicPasswordStoreEncryption, which only acts on linux with the exact basic switch value, tolerates a missing or throwing setUsePlainTextEncryption, and reports whether it actually flipped the flag. The token persistence ternary became resolvePersistedRemoteToken, which owns the strict opt-in coercion in one place: a truthy value that is not exactly true never enables plain text storage. main.ts passes the raw payload field through, so the strictness itself is what the tests pin. hardening.test.ts grows behavioral cases for both helpers, including the full path through the real encryptDesktopSecret for the opt-in, the never downgrade rule when the keyring is available, and the transient test connection passthrough. The wiring inside main.ts (save and apply routing through coerceDesktopConnectionConfig, the raw field handoff, the startup call ordered before createWindow, and the secureTokenStorage and remoteTokenPlainText fields in the sanitized response) is pinned with the repo's source assertion pattern.