[0.39.3] - 2026-12-01
Highlights
- Installs resolve a dependency's commit through
git ls-remotewhen the commits API is rate-limited or failing, on every host, so the lockfile never holds a dependency without its commit. (#5566, #5591) - Hook configs shared by a home-rooted project and
-gkeep each scope's entries,-gwrites through dotfiles links you own anduninstall -gremoves through them only what it wrote, and the hook entries you wrote or edited are kept. (#5598, #5645, #5677, #5684, #5720) - Git credentials stay on the host they were configured for, and a GitHub rate limit never sends one. (#5631, #5643)
Before you upgrade, skim the upgrade notes: some commands now stop with a named fix instead of continuing.
Upgrade notes
- Use
-gfor dotfiles-managed hook configs: a home-rooted project refuses a linked hook config at install, uninstall and prune (exit 1), and-grefuses a link another user owns; at project scope, uninstall and prune refuse a link below the deploy root by name before any change. (#5598, #5720) - Add new MCP or hook config paths to
unmanaged_files.exclude, or usewarn:unmanaged_files: denycounts the configs an install writes, except.claude/settings.local.json. (closes #5472, #5453, #5482) - Set
COPILOT_CUSTOM_INSTRUCTIONS_DIRSif you used~/.copilot/AGENTS.md:apm compile -gno longer writes it. (#5558) - On GHE.com, allow
https://api.<subdomain>.ghe.comthrough your proxy or firewall: API requests go there instead of/api/v3. (#5581) - Set
GITHUB_URLto a fullhttps://URL; mixed-case hosts keep working. (#5606) - Run
apm approve <package>again after reinstalling a package:apm uninstallremoves itsexecutables.allowapproval, andapm.ymlrewrites are atomic. (#5699) - Run
apm approveonce for MCP servers of a local package outside the project: it is now locked by relative path. (closes #5418, #5485) - Prefer
pathin marketplace sources:githubsources honoursubdirandapm updatemigrates a v0.39.2 root lock, while an invalid catalog subdirectory, traversal,%2eor a control character is refused by name. (#5638, #5676, #5615)
Changed
- Repeat installs do less work: outside CI the first
apm install --frozenafterapm installtakes the verified fast path, and each repository's refs are listed at most once per run. (#5423, #5605) - Failures name their exact fix: helper tools such as az and npm name the skipped project path, and upgrade failures name a full commit SHA,
mcp.trust_transitive: true, a lockfile regeneration or the policy refusal. (#5481, #5484)
Fixed
- Commit resolution: a rate-limited or failing commits API now falls back to
git ls-remoteon the same host, and unpinned virtual files follow the default branch; only if both fail does install stop, naming the dependency, instead of locking it without a commit. Artifactory is unchanged. (#5566, #5573, #5591, #5603) - Local bundles: withdrawing a bundle's approval no longer deletes a hook config or entry you edited; APM moves it, inactive and restorable, to
.apm/disabled-hooks/($APM_HOME/disabled-hooks/with-g), also onapm install <bundle>. (#5677, #5686, #5695) - Hook entries: uninstall keeps your own, byte-identical and shared entries and the scripts they run, and stops without changes on an edited, unrecorded or linked hook config; install removes entries a package no longer ships; a bare-string entry or undocumented event is skipped with one warning. (#5569, #5602, #5656, #5684, #5690, #5647, #5712, #5604, closes #5570, #5660, #5685)
- Hook scopes: a home-rooted project and
-gkeep each other's entries through install, uninstall and prune,apm install -gno longer deploys~/.apm/twice (runapm installin~to restore it), andapm audit --cichecks only project entries. (#5645, #5648, #5654, #5674, closes #5658, #5688, #5662) - Hook commands: only commands that stay inside the package and use no shell expansion (
$(...), backticks,eval, here-docs, subshells) are deployed; rewrite others and rerunapm install. (#5600) - Config and lock files: a hook config that is not valid JSON is no longer overwritten, a leading BOM is kept, a FIFO or other non-regular lockfile, hook config or context file no longer hangs, and a crashed install's
apm.ymlis restored; the command names the file. (#5609, #5678, closes #5619, #5626, #5627, #5652, #5599, #5622, #5454, #5487) - Local packages and update: local packages install from read-only sources such as the Nix store,
apm updateredeploys a changed one, case-variant diamond paths install, andapm install <pkg>configures only the MCP servers it adds. (closes #5544, #5564, #5463, #5489, #5457, #5492, #5562, #5618) - Windows and user paths:
apm uninstallretries a briefly held file on Windows and removes a symlink in a read-onlyapm_moduleswithout following it;apm install -gkeeps an unchanged recreated home's receipts, andcompile -gexplains a kept user root. (closes #5495, #5568, #5601, #5616, #5634, #5653, #5589) - Antigravity:
applyTo: "**"rules render as always-on, hook commands are relative to.agents/, a hook whose matcher names no Antigravity tool (use names such asrun_command) is skipped with a warning while the rest deploy, and uninstall removes its entries and scripts. (#5563, #5590, #5580, #5665) - Plugins, skills and git: native Claude plugins with displayName, documentation, support, privacy or terms URLs or a contained icon install, an agent's skill link points at the deployed copy, a warm partial git cache is reused, and an HTML ref listing fails with a named error. (#5715, #5535, #5623, closes #5687, #5689, #5640)
Security
- Git credentials are scoped to the configured host; a redirect to a different host stops with a named error. (#5631)
- Git commands APM starts never answer a credential prompt; a GitHub rate limit sends no credential, and anonymous-first requests read none until challenged. (#5643, #5679)
Full list of changes: v0.39.2...v0.39.3