fix(buzz-agent): restore Windows MCP env contract

Read the shell-resolution allowlist from buzz-model-catalog, where the shared desktop/agent contract moved. This restores the Windows-only build after the direct RMCP registry change.

Co-authored-by: Michael Neale <michael.neale@gmail.com>
Signed-off-by: Jimmy <1fe240cd1a8cf775f6f3060f115e5a303181f3abf28ad4cb0c2515f4a02b36a8@meshllm.communities.buzz.xyz>
This commit is contained in:
Jimmy
2026-09-01 16:45:42 +10:00
parent ef482e886d
commit 2737149dfb

View File

@@ -73,10 +73,11 @@ const PASSTHROUGH_ENV_WINDOWS: &[&str] = &["TMP", "TEMP", "USERPROFILE", "APPDAT
/// Shell resolver keys are shared with Doctor through the public contract.
#[cfg(windows)]
fn windows_child_passthrough_env() -> impl Iterator<Item = &'static str> {
PASSTHROUGH_ENV_WINDOWS
.iter()
.copied()
.chain(crate::WINDOWS_SHELL_RESOLUTION_ENV.iter().copied())
PASSTHROUGH_ENV_WINDOWS.iter().copied().chain(
buzz_model_catalog::WINDOWS_SHELL_RESOLUTION_ENV
.iter()
.copied(),
)
}
type Client = RunningService<RoleClient, ()>;
@@ -1039,7 +1040,7 @@ mod content_tests {
);
}
let child_env: Vec<_> = windows_child_passthrough_env().collect();
for var in crate::WINDOWS_SHELL_RESOLUTION_ENV {
for var in buzz_model_catalog::WINDOWS_SHELL_RESOLUTION_ENV {
assert!(
child_env.contains(var),
"{var} must pass through so the MCP shell resolver matches Doctor"