Background agent does not rebuild image on changes to Dockerfile

Describe the Bug

Noticed that after a successful build, changes to the Dockerfile do not result in rebuilding the image used by the background agent, which is a critical flaw because the development environment will not be correct.

Steps to Reproduce

Initial build must complete

Expected Behavior

Image is rebuilt after changing the Dockerfile

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:22.523Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.1.0

Does this stop you from using Cursor

No - Cursor works, but with this issue