fix(desktop): initialize MCP defaults after rebase

New snapshot construction sites added after the original MCP change require empty local-only MCP configuration. Raise the discovery fixture-file exception by the two required fields.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
2026-07-14 17:34:04 -04:00
co-authored by Will Pfleger
parent b1ba455996
commit f75a9a9865
4 changed files with 8 additions and 3 deletions
+4 -3
View File
@@ -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
@@ -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,
@@ -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,
@@ -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,