borg-backup-ui
borg-backup-ui copied to clipboard
Prune stale Docker runtime selections in the Job Wizard
Summary
When editing a job, Docker container names stored in the runtime selection can remain selected even after the container was deleted from Docker.
Problem
The Job Wizard loads the saved Docker selection into frontend state. If a selected container no longer exists, it is not rendered in the current Docker container list, so the user cannot uncheck it. The stale name still appears in preview/save output, for example in the Docker exclusion mode.
Desired behavior
- When Docker inventory is available, stale selected Docker names should be removed from the Wizard state.
- Existing valid selections must be preserved.
- If Docker inventory cannot be loaded, saved selections should not be silently wiped.
User impact
Deleted containers no longer remain invisibly selected in Job Wizard preview or saved metadata.