How edits are saved¶
Nothing you do in the grid reaches your vault at once. Every edit goes into a queue first, whether you change a cell or save a template. A dialog and a merge queue their edits the same way. bwtidy writes the queue in batches and takes a backup before each one. This page explains what a write does to your vault and how you undo one.
The queue and the auto-commit¶
An edit shows in the grid at once on an amber background, and the app bar shows Commit now. The auto-commit writes all waiting edits together 180 seconds after the oldest one or as soon as 20 wait. You change both numbers in the Auto-commit box on the Queue page. Commit now writes the waiting edits at once. A save on the Types page or of the generator settings skips the wait and is written right away.
When you log out or switch account, bwtidy tries to write the waiting edits first. The same happens when your session times out. An edit that could not be written then stays in the queue and the next unlock tries it again at once.
An agent's proposals wait in the same queue. The auto-commit never takes them, so they are written only when you approve them (see What an agent can do). The only writes that skip the queue are a few to the bwtidy note (see How bwtidy writes it).
What a write does¶
A write first syncs with the server so that bwtidy sees changes made in other vault apps. It then checks each edit against the item as it is now. An edit fails as a conflict when its item changed elsewhere since you made it, and nothing of that edit is written. The other edits go on without it. Such a change gives the item a new revision date or changes its folder, favorite or collections.
Next comes a backup of the whole vault as it is now. When the vault has not changed since the newest backup, bwtidy reuses that one. Without a backup nothing is written and the edits stay in the queue. The backup can take a while, so the write syncs and checks once more after it.
A short limit for an account whose premium ended: bwtidy cannot take a backup while a personal item has an attachment. Bitwarden lets only accounts with premium download attachments of personal items, and a backup needs every attachment. The write is refused with a message that names the item and says why. Nothing is written and the edits stay in the queue until you renew premium or move or remove those attachments. The reason is shown in the app, not only in the log. Organization attachments are not affected.
Then the write takes one item at a time. It fetches the item whole and changes only the values that the edit touches before it puts the item back. Everything else on the item stays as it was. That includes its passkeys and password history, its attachments and any field that bwtidy does not know. Each item gets one last check right before it is written. When an edit fails there the edits before it stay written and the ones after it wait in the queue for the next write.
Last, the write records its changes in the Change log and reloads the vault. It also starts the next backup in the background.

While a write runs you can hover the spinner in the app bar to see its step, such as taking a backup or writing 3 of 5 changes.
Trash, never delete¶
Deleting an item moves it to the trash, where any vault app can restore it. A change of an item's type creates a new item and moves the old one to the trash. Taking an item out of an organization does the same. In both cases the passkeys and password history stay with the old item.
bwtidy deletes only two things for good. One is an empty folder that you delete. The other is the old file of an attachment you rename, once its copy under the new name is in place. The backup holds that old file. When such a rename fails halfway, bwtidy deletes its own copy again as long as the old file is still there.
The Change log¶
Each change that a write tries gets a row in the Change log. Changes written together share their backup. The row says when the write ran and whether the change came from the grid or an agent. It names the operation and the items and fields it touched. It also shows the result and the backup taken before the write. A row never holds a value.

Restore on a row puts its items back as that backup holds them, after a dialog that says what happens to each one. A restore is a write like any other. It gets a backup and a row of its own, so you can undo it in turn. An item deleted for good after the backup comes back as a new item without its passkeys and password history. An item you archived after the backup stays archived. Without premium Bitwarden cannot keep an item archived when it is written. The restore of an archived item is then refused until you take it out of the archive. The web UI says what Restore does on each kind of row.
When a write fails¶
An edit that fails its checks is not written. A red message names the item and the reason. The grid marks what changed elsewhere and the Queue page lists the edit under Failed.
There you can retry the edit or dismiss it. Retry writes it again. When the item changed elsewhere Retry asks you first. The backup keeps that other change. Dismiss drops the edit. A failed edit loses its secret value when bwtidy restarts. You then dismiss it and type the value again.
For developers¶
Every edit is a queue entry. It is checked on arrival with the same rules that the write runs, and one write path commits it after a backup. The section How a write flows of the architecture document leads to the code behind this page.