Skip to content

Make background package updates and automatic config reconciliation optional #20

Open

Description

@timfewi

Rendering the Claude Code status line can start a global npm installation and rewrite harness configuration. This conflicts with installations managed by a package manager, immutable environment, or reviewed version pins.

Reviewed main at e86ba25330d7038950e37de34d796cd34519e7eb (package version 0.5.0). This report is based on source inspection; no live provider benchmark was run.

The status command calls reconcileIfStale(), and minor-version handling calls triggerBackgroundUpdate(). The latter spawns:

npm install -g dietcode@latest

The process is detached and its output is ignored. Reconciliation can also occur through postinstall. The README describes these behaviors, but I could not find a user-facing configuration switch in the inspected status/update/config paths to disable them independently.

Please provide documented controls for:

  • Update checks/notifications without installation.
  • Automatic installation, preferably explicit opt-in.
  • Automatic harness config reconciliation, while retaining a deliberate dietcode-reconcile command.

When disabled, invoking the status command should not install packages or modify harness configuration. Add tests that stub process spawning and config writes and verify those side effects do not occur. Explicit setup/update/reconcile operations can retain their intended behavior.

This is a configuration-control enhancement, not a claim that the documented updater is malicious.

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