The Fly default ceiling of 8192 MB starved bursty Paseo workloads on Sprites (paseo-agent-2f0f52: 110M page reclaims, exec plane hung). The Sprites API requires a positive limit_mb, so a large ceiling (65536) with autoscale on is the practical uncapped mode. memoryLimitMB=0 now maps to 65536 instead of 8192; updated settings-screen hint accordingly. Both live Sprites already re-policed to {limit_mb: 65536, autoscale: true} via API.
Replace forever-on heartbeat billing with a finite lease system:
callers request a window of Sprite time and renew as needed; on
expiry the heartbeat session stops and the Sprite auto-pauses.
- SpriteLeaseStore (server/sprite-lease-store.ts): refcounted
leases with TTL clamping ([60s, 8h], default 15min) persisted
to sprite-leases.json
- SpriteHostKeepalive reimplemented on leases; legacy
keepalive-hosts manifest seeds one final window then clears
- Provider: session.open acquires, session.prompt renews,
session.close releases
- sprite_* tools and RPCs acquire/renew/release via
sprites.lease.acquire/renew/release/list
- destroy/archive release leases before deleting Sprites
- Settings: defaultLeaseMinutes (1-480, default 30), schema v2
Sprites have no size presets and CPU/storage are fixed (8 vCPU / 100 GB),
so memory policy (limit + autoscale) is the sizing lever for bursty
unknown workloads. ensureSprite now applies idempotently, non-failing:
- memoryAutoscale (default true) lets the platform grow memory under
pressure instead of thrashing at a fixed cap
- memoryLimitMB (0 = Fly default ceiling 8192) is the peak ceiling
- Settings UI exposes both controls
- Add server/antigravity-auth.ts to resolve Antigravity OAuth credentials
from OpenBao (ANTIGRAVITY_OAUTH_TOKEN / AGY_OAUTH_TOKEN), env, local OS
keyring (secret-tool / macOS security), or local token file and stream
them over stdin (umask 077, mode 0600, atomic replace) into
~/.gemini/antigravity-cli/antigravity-oauth-token on Sprites
- Cache full OpenBao KV secret map in OpenBaoClient and add
getOptionalSecretKey for zero-extra-request lookup
- Wire sync into SpritesManager.ensureSprite and restart Sprite Paseo
daemon worker in ensureSpriteHost when credentials change
- Add syncAntigravityAuth setting (default true) with Settings UI toggle
- Add Antigravity to PROVIDER_CHOICES and prioritize it in PREFERRED_PROVIDERS
- Add SpriteHostKeepalive (server/sprite-keepalive.ts) maintaining a
lightweight heartbeat session per enabled Sprite host so Fly Sprites
does not auto-pause and drop the Paseo relay connection
- Wire keepalive into agent hooks, RPC handlers, and host
connect/launch paths via onHostReady/onHostRemoved hooks
- Reconcile every 30s against ~/.paseo/hosts.json enabled hosts with
backoff reconnect; persist desired set to plugin-data
- Add keepSpriteHostsAwake setting (default true) with settings UI
toggle and live subscription