{"version":"2.1.328","anchor":"external-plugins-fetched-in-the-background-under-a-lock-wit","canonical_anchor":"external-plugins-fetched-in-the-background-under-a-lock-wit","heading":"Plugin sync fetches missing external plugins in the background and repairs git-sourced ones","tier":"notice","area":"Plugins","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/external-plugins-fetched-in-the-background-under-a-lock-wit","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Plugin sync fetches missing external plugins in the background and repairs git-sourced ones\n\nManaged external plugins not yet cached are now fetched after startup under a lock, and git-sourced plugins are tracked for repair\n\n**What**\n\nPlugin sync is the step at startup that makes sure the plugins you or your organization turned on are present. It changes in two ways:\n\n- External plugins that are not yet cached (saved locally) are no longer skipped with \"External plugin ... not in cache, skipping\". Sync now returns them and fetches them in the background while holding the `enabled-plugins-fetch` lock, so only one fetch runs at a time.\n\n- Before fetching, it checks policy again, whether Claude Code is exiting, and whether non-essential network traffic is turned off. With `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` set it reports that the plugin is not fetched and that `\/reload-plugins` will fetch it.\n\n- Setting `CLAUDE_CODE_SYNC_PLUGIN_INSTALL` skips this deferred background path.\n\n- If remote managed settings are still pending, sync waits for them first.\n\n- The set of managed plugins is now built by a helper instead of being read from `policySettings.enabledPlugins` directly.\n\n- Plugins that come from git (`github`, `url` and `git-subdir` sources) are now tracked so they can be repaired.\n\n**Why**\n\nPlugins your organization manages no longer go missing until you reinstall them by hand; they download after startup. If you turn off non-essential traffic, run `\/reload-plugins` to fetch them.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}