Two bugs fixed: 1. CodeMirror raw editor didn't reflect frontmatter changes (e.g. Trashed: true) after trash/archive because useCodeMirror only used content as initial state. Added content-sync effect with external-sync guard to prevent infinite loops. 2. Entry actions (trash/archive/restore/unarchive) showed "Property updated" toast instead of contextual message because runFrontmatterAndApply overwrote it. Added silent option to suppress toast when caller manages its own feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4.7 KiB
4.7 KiB