The OpenSpec update I want first is the one that writes nothing
Описание и применение
Проверка обновления OpenSpec с помощью dry‑run позволяет увидеть, что пользовательские локальные заметки будут удалены, и подтвердить, что команда заменяет целый файл.
Задача
Determining whether OpenSpec’s update command will modify custom local notes before applying changes.
Результат
The dry‑run preview correctly identified that the custom note would be replaced, and the subsequent update removed the note, confirming that OpenSpec replaces entire command files rather than preserving local edits.
Рабочий процесс
- 1. Add a local note to a generated OpenSpec command file.
- 2. Run
openspec update --dry-run --jsonto preview changes. - 3. Verify that the preview reports no file hash changes and that the note is marked for replacement.
- 4. Apply the update with
openspec updateand observe the note’s removal.
Доказательства
OpenSpec 1.15.0 adds update --dry-run, with a JSON form that lists planned file actions.
The preview reported a replacement. Every file hash stayed the same.
Then I ran the update. The local note disappeared.
- Дата записи: 2026-10-25T15:26:10.461Z