mirror of
https://github.com/block/buzz.git
synced 2026-11-05 08:51:10 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user