Skip to content

[bug] user-index.ts --stats writes the index file (its help says summary only) #2805

Open

Description

@fish5421

What happened

PULSE/modules/user-index.ts --stats writes state/user-index.json although its help says summary only

Summary

LifeOS 8.761.0. The header of LIFEOS/PULSE/modules/user-index.ts documents three modes; --stats is described as "summary only". Running bun run modules/user-index.ts --stats also writes PULSE/state/user-index.json.

Expected: --stats prints the summary and writes nothing.
Seen: the index file is created or replaced. On an install where the file did not exist, GET /api/user-index changes from 503 to 200 after a run that was meant to be read-only.

Suggested fix: skip the write under --stats, or say in the help that every mode writes the index.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions