Skip to content

pi install npm:bigpowers breaks pi — extension fails to load at startup, pi exits (v2.88.0) #119

Closed

Description

@jbalatero

Summary

Installing bigpowers v2.88.0 via pi install npm:bigpowers and then starting pi makes pi exit immediately at startup with an extension load error. pi becomes unusable until the package is removed.

Environment

  • pi: @earendil-works/pi-coding-agent v0.84.4
  • bigpowers: v2.88.0 (latest, via npm:bigpowers package entry)
  • Install method: pi install npm:bigpowers (package listed in settings → packages)

Steps to reproduce

  1. pi install npm:bigpowers (installs v2.88.0)
  2. Run pi
  3. pi exits during startup with:
Error: Failed to load extension "/Users/<user>/.pi/agent/npm/node_modules/bigpowers/extensions/omp-hooks.ts": Failed to load extension: Extension runtime not initialized. Action methods cannot be called during extension loading.
Hint: Start without extensions using "pi -ne".

Expected behavior

pi starts normally; the bigpowers extension registers its slash commands and tools without crashing startup.

Actual behavior

pi aborts at startup with the error above. The failure is in extensions/omp-hooks.ts (shipped in v2.88.0, story e82s03), which is auto-discovered from the package manifest.

Impact

Any pi user following the documented install flow is blocked from using pi entirely — the broken extension aborts the whole process, and there is no partial-load/graceful-skip behavior that lets pi continue.

Activity

  1. added a commit that references this issue on Sep 5, 2026
  2. danielvm-git commented on Sep 5, 2026

    @danielvm-git
    Owner

    Fixed in v2.88.1 (commit a487565) — thank you for the exceptionally clear report; the exact error text, environment, and the pointer to omp-hooks.ts/e82s03 made this fast to pin down.

    Root cause was a fork-API mismatch: extensions/omp-hooks.ts was ported from @oh-my-pi/pi-coding-agent but runs against @earendil-works/pi-coding-agent, and carried two startup-aborting assumptions (the second masked behind the first):

    1. pi.setLabel("bigpowers") was called in the extension factory body. On @earendil-works pi, action methods are throwing stubs during extension load — hence Extension runtime not initialized…. Removed (it's a session-entry bookmark API, never an extension namer).
    2. pi.zod — which doesn't exist on @earendil-works pi (it uses TypeBox). Ported the bigpowers_skill tool schema to Type.Object/Union/… and corrected the type-only import.

    Also hardened the release so this can't regress silently:

    • Declared the pi.extensions manifest key (the one pi actually reads) so discovery is deterministic.
    • Reworked scripts/omp-smoke.ts to model pi's load-phase guard and wired it into CI, so a load-time action call now fails the build.

    Verified against real pi 0.85.1: the packed extension loads cleanly with all 81 slash commands, the bigpowers_skill tool, and the git-safety tool_call hook — 0 load errors.

    Please pi install npm:bigpowers again (or update to ≥2.88.1) and pi should start normally. Reopen if anything's still off. Thanks again! 🙏

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