Skip to content

tg status doesn't say when the running daemon is an older version #46

Closed

Description

@neoromantic

Found while fixing #18. The CLI and the daemon share cache.db. After an upgrade that changes what the cache holds, a daemon of the old version that is still running keeps writing the old format until it restarts. In #18 that means it fails group and channel sync jobs and writes bare chats_cache rows, which the next CLI run repairs. Nothing tells the user to restart it.

Fix: the daemon records its version in daemon_status on start. tg status compares it with its own and, when they differ, prints a hint to restart the daemon (pretty output) and a field for it (JSON).

Done when an e2e test with a seeded daemon_status from another version shows the hint and the field, and none for the same version.

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