Mnemonic recovery doesn't work, even with sync argument

Hi there. We are playing around with Libra locally. We are launching the cli as follow:

./bin/cli \
    -c TESTING \
    -m <path to mint.key> \
    -u http://127.0.0.1:8080 \
    -waypoint <block id> \
    -n <path to client.mnemonic> \
    --sync

Though, at launch we see the following output:

Wallet recovered and the first 0 child accounts were derived

and, indeed, this is what we get by listing accounts:

account list

No user accounts
AssocRoot account address: 0000000000000000000000000a550c18, sequence_number: 1, status: Persisted
TC account address: 0000000000000000000000000b1e55ed, sequence_number: 2, status: Persisted
Testnet DD account address: 000000000000000000000000000000dd, sequence_number: 2, status: Persisted

So we are not able to sync the recovered wallet with on-chain data (though we are quite sure wallet addresses do exist on-chain).

What we are doing wrong?
Thanks.
A.

We found the problem: Mnemonic file doesn’t get updated after each account creation.

We solved by manually updating mnemonic file before quitting the CLI:

account write <path to client.mnemonic>