Deploying with Visual Code uses rsync to transfer files from the out folder to the Decky Loader plugins folder. To avoid a situation where the out folder contains other zip files (a common issue when building a template plugin and later deciding to change the plugin name, resulting in two files in the out folder), it's important to ensure that only the intended file is present, as Decky Loader will include all zip files, which is not expected.
https://github.com/SteamDeckHomebrew/decky-plugin-template/blob/05cb4433d82c9f8b8071add7ab1d6dc7862d2f76/.vscode/tasks.json#L87
As a solution, the CLI must clear the out folder before building.