Skip to content

Avoid registry checks when launching npm wrappers#5861

Open
AndrijaSkontra wants to merge 1 commit into
basecamp:devfrom
AndrijaSkontra:fix/npm-wrapper-offline-launch
Open

Avoid registry checks when launching npm wrappers#5861
AndrijaSkontra wants to merge 1 commit into
basecamp:devfrom
AndrijaSkontra:fix/npm-wrapper-offline-launch

Conversation

@AndrijaSkontra
Copy link
Copy Markdown

Summary

This changes Omarchy-generated npm wrappers so normal command launches prefer pnpm's local store instead of checking the registry every time.

Previously, wrappers generated by omarchy-npm-install ran a pnpm dlx --package ... true warmup during every command invocation. If DNS or the npm registry was
slow/unavailable, commands like opencode, codex, or gemini could hang or fail before the actual CLI started.

Changes

  • Remove the per-launch pnpm dlx --package "$package" true warmup from generated wrappers.
  • Use pnpm dlx --prefer-offline when resolving package binaries during normal wrapper launches.
  • Add OMARCHY_NPM_REFRESH=1 as an explicit refresh mode for npm wrappers.
  • Run npm wrapper refreshes during:
    • omarchy refresh applications
    • omarchy update
  • Keep PNPM_CONFIG_MINIMUM_RELEASE_AGE=7200 behavior intact.

Small warning, the changes in this PR are gpt-5.5. generated as I am not a bash expert. Please review them carefully.

Copilot AI review requested due to automatic review settings May 15, 2026 20:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AndrijaSkontra
Copy link
Copy Markdown
Author

This attempts to resolve issue: #5800 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants