fix(plugins): include the Windows ACL refusal in the stage-root error

verify_finalized_stage_root discarded the inner Windows owner-only/read-execute verification error, so every failing extension-host, plugin-MCP and skills test reported only 'Plugin runtime root has not been finalized read-only'. It now appends the real error chain. No product acceptance changes; the Windows CI log is the diagnostic this change is for.
This commit is contained in:
CodeWhale Bot committed 2026-11-08 19:47:57 -08:00
1 parent 487b47820e
commit 34f8219bb1
1 file changed
+3 -1
+3 -1
View File
@@ -1747,7 +1747,9 @@ pub(super) fn verify_finalized_stage_root(
}
#[cfg(windows)]
codewhale_config::private_directory::verify_windows_owner_only_read_execute_handle(&held)
.map_err(|_| "Plugin runtime root has not been finalized read-only".to_string())?;
.map_err(|error| {
format!("Plugin runtime root has not been finalized read-only: {error:#}")
})?;
#[cfg(not(any(unix, windows)))]
{
Err("Plugin runtime root finalization cannot be verified on this platform".to_string())