Skip to content

bug(ask): first-party ask_user_question conflicts with @juicesharp/rpiv-ask-user-question and hard-fails Pi load #1277

Description

@gabrielc00

Before submitting

  • I searched open and closed issues and did not find a report of this problem.

Problem

After #1274, extensions/ask-user-question.ts registers the tool name ask_user_question. Pi treats tool names as exclusive across extensions, so a previously valid install that still has npm:@juicesharp/rpiv-ask-user-question fails at extension load and never starts a session.

This is the same class as closed #607 (todo vs @juicesharp/rpiv-todo). #833 asked for a first-party questionnaire so Gentle would not depend on that external tool. #1274 shipped that replacement, but the package-side migration did not.

Two docs still tell people to install the colliding companion:

  • README.md optional companions table: @juicesharp/rpiv-ask-user-question for "Interactive choice support"
  • docs/readme-reference.md recommended install list: pi install npm:@juicesharp/rpiv-ask-user-question

The extension comment already names juicesharp, states that a duplicate name is a hard load error, and says removal from Pi settings is the migration path. That path is not user-facing: no changelog gate, no startup diagnostic with the exact pi remove command. pi update --extensions on git:github.com/Gentleman-Programming/gentle-pi@main therefore turns a working stack into a dead session.

Steps to reproduce

  1. Keep both packages in Pi settings: npm:@juicesharp/rpiv-ask-user-question and git:github.com/Gentleman-Programming/gentle-pi@main (or any install that loads both extensions).
  2. Update or restart so extensions/ask-user-question.ts from feat(ask): native ask_user_question with a scrollable dock-swap dialog #1274 loads.
  3. Start Pi (interactive or -p).

Expected and actual behavior

Expected:

Actual:

  • Extension load hard-fails. Pi's hint is pi -ne, which disables every extension and is not a usable workaround.

gentle-pi version

3.3.0 (f2d9d073, #1274 on main)

Pi version

0.86.1

Operating system

macOS

Relevant logs or error output (optional)

Error: Failed to load extension "<agent-home>/git/github.com/Gentleman-Programming/gentle-pi/extensions/ask-user-question.ts": Tool "ask_user_question" conflicts with <agent-home>/npm/node_modules/@juicesharp/rpiv-ask-user-question/index.ts
Hint: Start without extensions using "pi -ne".

Activity

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