Skip to content

A soft cache size budget per account #98

Open

Description

@neoromantic

A user can see a cache's size in tg status, but can't say how big it may grow. Messages are never deleted automatically, so a limit can only warn and help decide what to stop syncing.

Proposed: cache.budget in config.json (bytes, per account or for all): when a cache passes it, tg status shows a warning with the biggest chats and the commands that help (tg chats sync --off, tg db vacuum), and the daemon logs it once a day. Nothing is deleted.

Done when e2e tests cover a cache under and over the budget, and docs/configuration.md describes it. Related: #80.

Activity

  1. added
    enhancement
    on Oct 28, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions