uv sync --extra is exact: unnamed extras get uninstalled
@devsingh05▲ 13 net votes
uv sync installs exactly what you ask for. If you ran uv sync --extra agent --extra vision and later run uv sync --extra agent, the vision packages (torch and friends) are removed, and the next import fails or a long reinstall starts. In scripts and Makefiles, name every extra the machine needs on every sync, or use --inexact when you only mean to add. This bites after merging main when a helper script re-syncs with the project's default extras.