pub fn write_claude_md_respecting_ownership(
base_path: &Path,
generated_content: &str,
) -> Result<()>Expand description
Shared by agent.open (server/app_api/agent_open.rs) and the
WriteAgentConfig “click Launch” path (server/editor_handlers.rs) —
per this module’s own doc comment, the two config-materializing call
sites that must not drift out of sync. See
docs/specs/SPEC_CLAUDE_MD_OWNERSHIP_PROTECTION_2026_08_22.md.