Skip to content

Free's limits: services to sync through, hosts given to AI, session logs - #382

Open
tiendc wants to merge 1 commit into
mainfrom
feat/plan-limits
Open

tiendc wants to merge 1 commit into
mainfrom
feat/plan-limits

Conversation

@tiendc

@tiendc tiendc commented Dec 6, 2026

Copy link
Copy Markdown
Collaborator

Step 4 of docs/design/license.md: what Free stops, where it is met. A limit stops what is started, not what runs, and nothing is deleted.

What changes

  • Sync through a service.
    • On Free, Settings › Sync marks Google Drive, OneDrive, iCloud and Dropbox Plus. When one is picked, it shows Buy Plus and Enter a key instead of the sign-in button.
    • A device that already syncs through one, and whose key ended past its grace, is held. SyncWorker::pause keeps the worker from reaching the place, and the place stays in config.toml.
    • While it is held, the cloud is orange and the status card says Sync through Dropbox needs Plus, with Renew (opens Settings › License). It syncs at once when a key is back.
    • A service is also held until the key in the vault has been read.
  • Hosts given to AI.
    • On Free, Settings › AI shows n of 2 hosts on Free next to Hosts given.
    • The give form refuses to go over the limit, says so, and offers Buy Plus.
    • A host counts once, whichever clients hold it. A paused grant counts; a grant whose time is over does not. Giving a host that is already given is allowed.
  • Session logs.
    • On Free, no session is logged from its start, whatever [log] always or the host's own log says.
    • Start Logging shows Plus; clicking it opens Settings › License and says Session logs need Plus. Settings › Terminal says the same under Log every session.
    • Sessions opened before the key is read are let be.
  • Docs: docs/configuration.md (Session logs, License).
  • i18n: 9 new strings × 14 locales.

Tests

  • New ui_tests/plan_limits.rs, one scenario per limit:
    • services_need_plus_to_sign_in
    • a_service_without_plus_is_held: no round runs and nothing reaches Dropbox; Renew; the place is kept.
    • a_third_host_for_ai_needs_plus
    • session_logs_need_plus
  • Existing tests that sign in to a service, log a session, or give three hosts now take a Plus key first, from the portal's development pair.
  • Mutation checks: removing the sync pause, the log gate, or the host limit each fails its scenario.
  • Checks run locally and passing:
    • cargo fmt --check;
    • workspace clippy, and clippy with --features ui-tests;
    • i18n.py check;
    • every app test with ui-tests: 418 passed.

Android's limits are step 5.

🤖 Generated with Claude Code

What Free stops, where it is met (docs/design/license.md). A limit stops
what is started, not what runs, and nothing is deleted.

- Settings › Sync marks Google Drive, OneDrive, iCloud and Dropbox Plus;
  picked on Free, they offer Buy Plus and Enter a key in place of signing
  in. A device syncing through one whose key ended is held: the sync
  worker reaches nothing (SyncWorker::pause), the cloud turns orange, and
  the status card says "Sync through Dropbox needs Plus" with Renew. Until
  the key in the vault is read, a service is held too.
- Settings › AI says "n of 2 hosts on Free" and gives none over it: a host
  counts once whichever clients hold it, a paused grant counts, an ended
  one does not.
- On Free no session is logged from its start, whatever [log] always or a
  host says; Start Logging shows Plus and opens Settings › License.
  Sessions opened before the key is read are let be.

Each limit has its UI test (ui_tests/plan_limits.rs); tests that sign in
to a service, log, or give three hosts take a Plus key first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant