Skip to content

Release v2.6.0

Choose a tag to compare

@newfpv newfpv released this 20 Oct 00:10

Guided Setup & Independent Accounts Update 🧭

This update walks new owners through their settings and adds a Linux multi-account runtime that shares preloaded dependency memory while keeping each bot in its own process.

🧭 Step-by-Step Setup

  • 25 Explained Steps: Covers the connected account, Gemini keys and models, time zone, owner prompt, history budget, reply behaviour, delays, sleep, search, cookies and every active module's settings section.
  • Edit, Skip or Resume: Displays current values, opens the existing editor, preserves navigation after saving and remembers where setup stopped. Skipping keeps the previous value.
  • Automatic First Walkthrough: Opens after the first Telegram account connection. Existing owners can open Settings → Guided setup and restart or continue it later. Russian and English are included.
  • Practical Cookie Guidance: Explains when cookies are optional and how to export and upload them, with links to the downloader's official instructions.

👥 Independent Accounts, Shared Dependencies

  • Separate Account Processes: Every account retains its own environment, Telegram clients, settings, session, database, deleted-message archive, cookies, media and temporary directories.
  • Eager Dependency Loading: Linux workers share unchanged dependency pages after preloading. A thread-safety check falls back to independent subprocesses when needed.
  • No Extra Single-Account Process: One enabled account runs directly. Multiple accounts use a supervisor with per-worker restart and crash backoff.
  • Measured Memory Reduction: An offline three-account test measured about 654 → 387 MiB total PSS. The existing three-account deployment measured about 669 → 438–460 MiB after migration. These are snapshots, not peak-load capacity guarantees.

⚙️ Installation & Resource Control

  • Simple Account Commands: python3 accounts.py add NAME, list, logs, restart, enable, disable and update. Tokens are entered through a hidden prompt; setup continues in Telegram.
  • Existing Data Migration: adopt binds the original data directory without copying or moving it, prepares the image before stopping the legacy container and restores the previous container if startup fails.
  • Bounded Heavy Media Work: Two shared slots limit simultaneous Gemini media operations across accounts. Cancellation and process exit release the locks.
  • Compatible Installation: The existing single-account installation remains available. The Linux installer adds --accounts, and generated profiles are excluded from Git and Docker build contexts.

✅ Verification & Changed Files

  • 156 Automated Tests Passed: Includes setup completion, pause/resume, owner-only navigation, native editor integration, profile isolation, original data mounts and environment selection. Existing immediate API-test cancellation regressions also pass.
  • Offline Lifecycle Checks Passed: Verified preloaded imports, independent paths and archives, worker crash recovery, hot account addition and disabling, environment-triggered restart, direct single-account mode and cross-process media slots.
  • modules/setup_wizard.py, main.py, core/auth.py, core/utils.py: Guided onboarding and persistent navigation through settings.
  • account_runtime.py, accounts.py, compose.accounts.yml, core/environment.py: Isolated account workers, shared dependency loading and account management.
  • core/shared_resources.py, core/gemini_media.py: Cross-account heavy media limits.
  • docs/accounts.md, installer, translations and tests: Installation, migration, rollback guidance and regression coverage.

Full Changelog: v2.5.1...v2.6.0