fix: keep restore independent of live prompts

This commit is contained in:
2026-08-19 04:41:38 +09:00
parent 39aa465a51
commit d7e35ea9ee
2 changed files with 25 additions and 100 deletions
+5
View File
@@ -211,6 +211,11 @@ impl WorkspacePromptProjection {
"Workspace Prompt projection digest must not be empty".to_string(),
));
}
if projection_digest != catalog.catalog_digest {
return Err(CatalogError::InvalidTemplateCatalog(
"Workspace Prompt projection digest does not match its catalog".to_string(),
));
}
if !catalog.source_digest.is_empty() && catalog.source_digest != source_digest {
return Err(CatalogError::InvalidTemplateCatalog(
"Workspace Prompt projection source digest does not match its catalog".to_string(),