Skip to content

tg status --sizes: cache size per chat #90

Open

Description

@neoromantic

tg status --sizes shows bytes per table, but not which chats take the space. To keep a cache small, a user needs to know which chats to turn off with tg chats sync --off.

Proposed: tg status --sizes --by-chat [--limit N] lists the chats with the most cached data: messages, bytes of text and raw_json, and the share of the file, newest first by size. It reads messages_cache once and is opt-in like --sizes.

Done when an e2e test on made-up data checks the order and the numbers, and docs/cli-commands.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