diff --git a/desktop/scripts/check-file-sizes.mjs b/desktop/scripts/check-file-sizes.mjs index 5578c4a7d..c8d8d1ee8 100644 --- a/desktop/scripts/check-file-sizes.mjs +++ b/desktop/scripts/check-file-sizes.mjs @@ -290,9 +290,10 @@ const overrides = new Map([ // candidates, cli_install_commands_for_os PowerShell selection, login_shell_path // None regression, .cmd shim resolution, no-git-bash error hint. // +32: deterministic .cmd resolver + no-registry + install_shell_from tests. - // team-instructions-first-class: record_with test fixture gained the new - // ManagedAgentRecord.team_id field (+1 line) alongside persona_team_dir. - ["src-tauri/src/managed_agents/discovery/tests.rs", 1271], + // `team-instructions-first-class` added `team_id`; MCP configuration added + // two required `mcp_servers` test-fixture fields. The gate counts the + // trailing newline, so 1,272 physical lines are 1,273 counted lines. + ["src-tauri/src/managed_agents/discovery/tests.rs", 1273], // identity-import-keyring: the identity resolution state machine's behavioral // matrix (46 tests over FakeIdentityStore — probe × marker × file cells, // adoption / read-back-corruption / marker-failure arms, recovery-mode diff --git a/desktop/src-tauri/src/commands/team_snapshot.rs b/desktop/src-tauri/src/commands/team_snapshot.rs index dc376ca06..c42ceb057 100644 --- a/desktop/src-tauri/src/commands/team_snapshot.rs +++ b/desktop/src-tauri/src/commands/team_snapshot.rs @@ -132,6 +132,7 @@ fn definition_from_snapshot( source_team: None, source_team_persona_slug: None, env_vars: Default::default(), + mcp_servers: Default::default(), respond_to, respond_to_allowlist: behavior.respond_to_allowlist, parallelism: behavior.parallelism, diff --git a/desktop/src-tauri/src/commands/team_snapshot/tests.rs b/desktop/src-tauri/src/commands/team_snapshot/tests.rs index ca7dc6183..d7d2c39c3 100644 --- a/desktop/src-tauri/src/commands/team_snapshot/tests.rs +++ b/desktop/src-tauri/src/commands/team_snapshot/tests.rs @@ -67,6 +67,7 @@ fn team_export_round_trip_preserves_team_and_excludes_member_memory() { source_team: None, source_team_persona_slug: None, env_vars: Default::default(), + mcp_servers: vec![], respond_to: None, respond_to_allowlist: vec![], parallelism: None, @@ -87,6 +88,7 @@ fn team_export_round_trip_preserves_team_and_excludes_member_memory() { source_team: None, source_team_persona_slug: None, env_vars: Default::default(), + mcp_servers: vec![], respond_to: None, respond_to_allowlist: vec![], parallelism: None, diff --git a/desktop/src-tauri/src/managed_agents/team_snapshot.rs b/desktop/src-tauri/src/managed_agents/team_snapshot.rs index d88a36272..173480c7a 100644 --- a/desktop/src-tauri/src/managed_agents/team_snapshot.rs +++ b/desktop/src-tauri/src/managed_agents/team_snapshot.rs @@ -278,6 +278,7 @@ mod tests { m.insert("API_KEY".to_string(), "secret123".to_string()); // MUST NOT appear m }, + mcp_servers: vec![], start_on_app_launch: false, auto_restart_on_config_change: true, runtime_pid: None,