feat: add Sprite host keepalive to prevent auto-pause
- 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
This commit is contained in:
1 parent
2ded63183b
commit
0b923ff019
6 files changed
+491
-3
No files matched your search
@@ -445,6 +445,17 @@ export function FlySpritesSettingsScreen({ theme, layout, host }: PluginSurfaceP
|
||||
|
||||
<SettingsSection title="Integration behavior">
|
||||
<SettingsCard key={`behavior-${revision}`}>
|
||||
<SettingsSwitch
|
||||
label="Keep connected Sprite hosts awake"
|
||||
hint="Maintains a lightweight heartbeat session for enabled Sprite hosts so Fly Sprites does not auto-pause them and drop the Paseo relay connection."
|
||||
value={draft.keepSpriteHostsAwake}
|
||||
disabled={settings.saving}
|
||||
onValueChange={(keepSpriteHostsAwake) => {
|
||||
const next = { ...draft, keepSpriteHostsAwake };
|
||||
setDraft(next);
|
||||
void saveDraft(next);
|
||||
}}
|
||||
/>
|
||||
<SettingsSwitch
|
||||
label="Inject sprite_* tools into Paseo agents"
|
||||
hint="Allows local agents to spawn parallel Fly Sprite workers and checkpoints."
|
||||
|
||||
Reference in new issue
Block a user