You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pi install npm:bigpowers breaks pi — extension fails to load at startup, pi exits (v2.88.0) #119
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
pi install npm:bigpowers (installs v2.88.0)
Run pi
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.
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):
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).
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! 🙏
Activity
fix(extensions): prevent omp-hooks from crashing pi at startup (#119)
chore(release): 2.88.1 [skip ci]
danielvm-git commentedon Sep 5, 2026
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.tswas ported from@oh-my-pi/pi-coding-agentbut runs against@earendil-works/pi-coding-agent, and carried two startup-aborting assumptions (the second masked behind the first):pi.setLabel("bigpowers")was called in the extension factory body. On@earendil-workspi, action methods are throwing stubs during extension load — henceExtension runtime not initialized…. Removed (it's a session-entry bookmark API, never an extension namer).pi.zod— which doesn't exist on@earendil-workspi (it uses TypeBox). Ported thebigpowers_skilltool schema toType.Object/Union/…and corrected the type-only import.Also hardened the release so this can't regress silently:
pi.extensionsmanifest key (the one pi actually reads) so discovery is deterministic.scripts/omp-smoke.tsto 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_skilltool, and the git-safetytool_callhook — 0 load errors.Please
pi install npm:bigpowersagain (or update to ≥2.88.1) and pi should start normally. Reopen if anything's still off. Thanks again! 🙏fix(ci): run npm ci before verification gates so omp-extension smoke …
chore(bugs): reconcile registry — mark 14 shipped fixes closed (#231)