Skip to content

Installer Error Every Time with every new version #1162

Closed

Description

@diegohb

What happened?

OS: Windows
Shell: PWSH (Core)

Error:

PS C:\Users\diego> powershell -c "irm https://plannotator.ai/install.ps1 | iex"
Fetching latest version...
Installing plannotator v0.25.1...
SHA256 verified. For build provenance verification, see
https://docs.plannotator.ai/open-source/start/installation#pin-or-verify-a-release

plannotator v0.25.1 installed to C:\Users\diego\AppData\Local\plannotator\plannotator.exe
Semantic diff sidecar already installed at C:\Users\diego.plannotator\vendor\sem\v0.8.0\sem.exe
Agent terminal runtime already installed at C:\Users\diego.plannotator\vendor\agent-terminal\webtui-0.1.0.

Codex detected.
Codex plan review hooks are experimental on Windows. To try them manually:

  1. Add this to C:\Users\diego.codex\config.toml:

    [features]
    hooks = true

  2. Add a Stop hook in C:\Users\diego.codex\hooks.json that runs:

    C:\Users\diego\AppData\Local\plannotator\plannotator.exe
    Command/skill install failed: Cloning into 'C:\Users\diego\AppData\Local\Temp\plannotator-skills-667482691\repo'...
    Error: unable to fetch backnotprop/plannotator at v0.25.1 (network or git error).
    Something went wrong - run the installer again.

Side quests:

  1. anyway to control the installer to only target a specific agent (OpenCode) ?
  2. any plans to support npm/bun global installer - or better yet just npx/bunx (no install, always latest by default) ?

Plannotator version

latest

OS

Windows

Agent

OpenCode

Where did it happen?

Install / CLI

Activity

  1. backnotprop commented on Jul 31, 2026

    @backnotprop
    Owner

    Found and fixed, thanks for the clear transcript. Diagnosis: the error message is the giveaway. "Cloning into '...'" is git's normal progress output, which git prints on stderr. On PowerShell versions before 7.2 (and newer ones with the legacy compatibility preference set), redirecting a native command's stderr while $ErrorActionPreference is Stop turns the first stderr line into a terminating error, so the skill install died on the message announcing the clone had started. That is why it failed deterministically on every release for you while most users never see it. Reproduced under pwsh 7.1.3 and fixed in 15bca13: the two git calls now run under a scoped Continue preference, with success/failure detected by exit codes and Test-Path instead of throws.

    Two notes for right now:

    • Your install actually mostly succeeded: the binary, sem sidecar, and agent terminal runtime all landed before the failing step. Only the skills/commands copy was skipped, and for OpenCode that matters little (the OpenCode integration ships as the @plannotator/opencode npm package, not via that clone).
    • Immediate workaround until the fixed script reaches the hosted URL (next release): upgrade to PowerShell 7.2+ (winget install Microsoft.PowerShell), or simply ignore the final error.

    On the side quests:

    1. Agent-specific targeting: PLANNOTATOR_MINIMAL=1 (or -Minimal) installs only the binary, skipping all per-agent skills/hooks/config. There is no per-agent selector yet (e.g. "OpenCode only"); fair request, happy to track it as a separate issue if you open one.
    2. npm/npx distribution: @plannotator/opencode and @plannotator/pi-extension are already on npm. The CLI itself is a compiled Bun binary, so npx-style always-latest execution is not currently supported; also a fair feature request.
  2. backnotprop commented on Jul 31, 2026

    @backnotprop
    Owner

    Update: the fixed installer is live at https://plannotator.ai/install.ps1 as of now (we shipped the script ahead of the next release since scripts are version-independent). Re-running your usual install command should complete cleanly, no PowerShell upgrade needed. If it still errors, paste the output here and we will dig further.

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

Metadata

Metadata

Assignees

No one assigned

    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