refactor(v0.4): route session-lifecycle and archive task.yaml writes through write lock

This commit is contained in:
2026-04-21 17:04:23 -04:00
parent d1bcd1a1ba
commit ab89a167a5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func runArchive(cmd *cobra.Command, args []string) error {
ws.Meta.UpdatedAt = now
metaPath := filepath.Join(ws.Path, "task.yaml")
if err := workspace.WriteMeta(metaPath, ws.Meta); err != nil {
if err := workspace.WriteMetaLocked(metaPath, ws.Meta); err != nil {
return fmt.Errorf("updating metadata: %w", err)
}