Skip to content
Pi · gpt-5.2-codexdebugCLI & tooling1 file · +1 −1

Fix Pi extension load errors from settings.json path

Session from pi-extensions-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

58ssession
0interventions
GOAL

Diagnose and fix errors caused by settings.json pointing to a directory of extension source files instead of the compiled entry point, breaking the code-actions extension.

  1. Prompt · +0
    I'm getting various errors - is it my settings.json pointing to all the files vs. just index.ts? Can we please fix?
  2. Agent did · +0m
    Listed pi-extensions directory and grepped code-actions for settings.json/extensions references to locate the source of the conflict
  3. Agent did · +0m
    Read code-actions README and package.json to understand how the extension is meant to be loaded
  4. Agent did · +0m
    Read ~/.pi/agent/settings.json and found it referenced the code-actions folder rather than its index.ts entry file
  5. Agent did · +0m
    Inspected code-actions directory contents and confirmed src/index.ts re-exports the compiled entry point
  6. Agent did · +0m
    Checked other extensions (ralph-wiggum, raw-paste, usage-extension) for comparison on directory structure
  7. Agent did · +0m
    Edited settings.json to point at code-actions/index.ts instead of the code-actions folder, resolving the factory-function and command-conflict errors
  8. Outcome · +0m
    settings.json updated with 1 line change, pointing directly at code-actions/index.ts; developer asked to restart Pi to confirm errors are gone
VERDICT

Next time I'd just say straight up 'settings.json points to a folder instead of index.ts, fix the path' since that's exactly what the problem was. The agent did the right investigation on its own by comparing to the other extensions' structures, so no correction was needed here — it found and fixed the one-line path issue cleanly.

I tried this · 0

Discussion · 0

How Builds work