Skip to content

Item list still shows an item after it is moved out of the viewed folder #3

Description

@ChrisonSimtian

Usage Information

  • BitwardenSharp dbbf4df (develop)
  • .NET SDK 10.0.400, net10.0
  • Avalonia 12.1.1
  • Bitwarden CLI 2026.7.0
  • macOS 26.5.2 (arm64)

Description

After dragging an item out of the folder currently being viewed, the item remains in the middle
list. The move itself succeeds — the item is in the destination folder in Bitwarden — but the list
still shows it under the folder it left.

Reproduction Steps

  1. Unlock and open the vault browser.
  2. Select a folder in the tree so the middle list is filtered to it.
  3. Drag one of its items onto a different folder.
  4. Observe the middle list.

Expected Behavior

The moved item disappears from the list, because it is no longer in the folder being viewed.

Actual Behavior

The item is still listed under the original folder.

Regression?

No — present since folder management was added (422baed).

Known Workarounds

Press Refresh, or reselect the folder.

Notes — where to look

VaultViewModel.MoveItemsToFolderAsync routes through RunFolderOperationAsync, which does call
ReloadPreservingSelectionAsync() on success, so a refresh is being attempted. Unverified
candidates for why it does not take effect:

  • RebuildFolderTree() calls Folders.Clear(), which can null the TreeView's bound
    SelectedFolder. ApplyFilter() then runs unfiltered, and the selection is only restored
    afterwards by path — if that lookup misses, the list stays on "all items" and the moved item is
    legitimately still shown, just not where the user expects.
  • A race between UpdateItemAsync and the subsequent SyncAsync()/GetItemsAsync(), returning
    the pre-move state.

Worth confirming which before fixing — the two need different remedies.

Related: #2, #4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions