You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/db/index.ts opens one cache.db for every account, and none of the cache, sync-state or job tables has an account column. The architecture rule in AGENTS.md says "one database per account".
With two accounts:
chats list, contacts list, messages search and tg sql mix both accounts' data;
the daemon runs a job on the first connected account's client (selectAvailableWorker in src/daemon/daemon-scheduler.ts), with access hashes from the other account;
Fix: one cache.db per account (for example accounts/<id>/cache.db) and a migration that keeps a single-account cache as account 1. The CLI picks the database from --account or the active account, and each sync worker uses its own account's database.
Done when an e2e test with two seeded accounts shows separate results for each --account.
Activity
docs(roadmap): add the feature gaps and group the list
docs(roadmap): add the feature gaps and group the list
docs: warn that a set-aside shared cache carries every account's rows
docs: warn that a set-aside shared cache carries every account's rows
docs: warn that a set-aside shared cache carries every account's rows