Skip to content

Windows skill loading fails when PowerShell archive module cannot load #24489

Closed as not planned

Description

@mugnimaestra

Description

On Windows, loading a skill can fail before the skill content is shown when opencode bootstraps ripgrep. The ripgrep ZIP extraction path invokes PowerShell Expand-Archive, which can fail if Microsoft.PowerShell.Archive cannot autoload.

Observed error:

Expand-Archive : The 'Expand-Archive' command was found in the module 'Microsoft.PowerShell.Archive', but the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Archive'.
FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Plugins

None required.

OpenCode version

Current dev / Windows build.

Steps to reproduce

  1. On Windows, ensure cached rg.exe is removed from %LOCALAPPDATA%\\opencode\\bin.
  2. Run opencode.
  3. Load a skill, for example context7.
  4. Observe skill loading fail while ripgrep extraction calls PowerShell Expand-Archive.

Screenshot and/or share link

N/A

Operating System

Windows

Terminal

PowerShell / Windows Terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 26, 2026
  2. github-actions commented on Apr 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review the above before continuing here — a fix or workaround may already be tracked.

  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions