Skip to content

varlock run crashes when ~/.varlock/config.json contains telemetry anonymousId #308

@benvinegar

Description

@benvinegar

Authorship note: This issue report was written by an AI coding agent (at operator request), based on direct debugging in a live production-like environment.

Summary

varlock run crashes when ~/.varlock/config.json contains an anonymousId field (telemetry-related).

Error

Error: Anonymous ID should not be set in project varlock config

Stack points to loadVarlockConfig in the packaged CLI (/snapshot/dist-sea/cli-executable.cjs).

What we observed

  • varlock load --path ~/.config/ succeeded.
  • varlock run --path ~/.config/ -- <command> failed with the error above.
  • ~/.varlock/config.json contained:
{
  "anonymousId": "0529b6e3-e76c-43af-a1ea-12c0eed50451"
}
  • Removing/renaming this file immediately fixed varlock run.

Impact

This blocked startup of a long-running service because subprocesses are launched via varlock run.

Workaround we used

  • Remove/rename ~/.varlock/config.json, OR
  • set VARLOCK_TELEMETRY_DISABLED=1 in runtime startup environment.

Why this looks like a bug

A telemetry/user config written/managed by Varlock should not cause varlock run to hard-crash. The error also says "project varlock config" while the failing file appears to be user-level telemetry config.

Request

  • Make varlock run tolerant of telemetry fields like anonymousId in user config, or
  • Ignore telemetry fields in runtime config loading, and
  • Preferably emit a warning instead of throwing.

Happy to provide additional logs if useful.

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