fix: carry prompt projection source identity

This commit is contained in:
2026-08-19 04:30:00 +09:00
parent 0d011ea0cd
commit 382b5e57f2
3 changed files with 28 additions and 14 deletions
@@ -215,13 +215,15 @@ pub fn project_prompts_from_workspace_config(
"active Workspace config projection has no prompts namespace".to_string(),
)
})?;
EffectivePromptCatalog::from_projection(
let mut catalog = EffectivePromptCatalog::from_projection(
prompts,
state.snapshot.revision,
state.contract.schema_bundle.fingerprint.clone(),
state.contract.fingerprint.clone(),
)
.map_err(|error| Error::RegistryInconsistency(error.to_string()))
.map_err(|error| Error::RegistryInconsistency(error.to_string()))?;
catalog.source_digest = state.snapshot.digest.clone();
Ok(catalog)
}
pub fn project_workspace_prompt_projection(