Cursor cannot find package files

When I am editing a package file (e.g. File that a pip package is in), Cursor can ‘read it’ when I chat with it, but it has trouble finding it when I want it to apply changes.
image

image