TOTP secrets saved
TOTP secrets not saved if set up from within entry
The only way it works correct(save secrets) if set up TOTP for entry from the main grid.
KeePassXC - Version 2.5.1
Revision: 0fd8836
Qt 5.13.1
Debugging mode is disabled.
Operating system: macOS 10.15
CPU architecture: x86_64
Kernel: darwin 19.2.0
Setup from WITHIN entry:

Advanced attribute not created:

Setup from main grid:

Advanced attribute created fine:

TOTP status is YES for both and works for both:

Close and reopen DB causes TOTP clean up for TEST1 entry:

Same behavior on Windows 10, so seems common issue.
I could have sworn to have tested this when I enabled the menu actions while editing an entry. This is an unfortunate side effect. The reason for this is because the entry object has a TOTP settings attached in code but not in the attributes (why it disappears on lock). I bet if you pressed "Cancel" to the entry editing the otp attribute would appear.
Right, just checked. If push "Cancel" it saves OTP, too complex pattern I would say for end users ). Might be better either disable TOTP set up within entry or make behavior consistent(which would be preferable).
Its a bug, not intentional pattern
Just hit this as well. Seems like a very dangerous bug — if the user does this and does not save recover codes or the secret key, they would be locked out of their account.
I agree will fix
I hit this bug as well and it will cost me 5€ to get access to the account again because there are no recover codes or secret keys available...
@droidmonkey Any update on this? I can confirm the same issue happens on KeePassXC 2.5.4 on Linux Mint.
Yeah I need to fix this for 2.6
Most helpful comment
I agree will fix