Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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 --json to 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 update and 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