Skip to content

SessionStart should not auto-install Node.js or global UiPath tools without explicit opt-in #581

Description

@TheTrustedAdvisor

Summary

The plugin's SessionStart hook currently does more than a health check: it can install Node.js and then globally install @uipath/cli and @uipath/rpa-tool automatically.

Evidence

  • hooks/hooks.json runs hooks/ensure-uip.sh on SessionStart with status text Checking uip and rpa-tool installation....
  • hooks/ensure-uip.sh:
    • installs Node.js via platform package managers when npm is missing
    • uses sudo on Linux package-manager paths
    • then runs global npm install -g for @uipath/cli and @uipath/rpa-tool

Why this matters

This is product behavior, not just documentation drift. A session-start hook is expected to be lightweight and unsurprising; automatic host mutation and package installation changes the trust boundary and makes the plugin more invasive than its interface suggests.

Expected outcome

  • Decide whether SessionStart should be detect-only, explicitly opt-in, or moved behind a user-invoked setup command.
  • Align the hook status/message with the actual behavior.
  • Document the intended trust/installation model clearly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions