fix(templates): default_contactable toujours sérialisé (idea_template_update retourne false au lieu de Null) + fixture app-tauri adaptée — #264 (QA verte)

This commit is contained in:
2026-09-07 16:55:37 +02:00
parent 032fbaeeef
commit 3513e90101
2 changed files with 2 additions and 1 deletions

View File

@ -489,6 +489,7 @@ mod tests {
Some("Agent".to_owned()),
None,
None,
false,
)
.unwrap();

View File

@ -75,7 +75,7 @@ pub struct AgentTemplate {
)]
pub default_mcp_tool_policy: Option<McpToolPolicy>,
/// Whether agents created from this template are cross-project contactable.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
#[serde(default)]
pub default_contactable: bool,
}