Reference
Settings · Background
Every background process Gale runs: auto-archive, worktree auto-clean, cache clean, learnings cleanup, PR and Jira overlay cache refresh, storage warm scan, project listeners, update checks, auto-compact, stay awake, phone sync, the turn-stall watchdog, and the memory sampler.
Parameters
Auto-archive inactive chats
booleanGale- Default
- true
- Location
- Settings → Background → Chats
- Storage
- preferences.autoArchiveInactiveSessions
Hourly sweep archives chats idle past the inactivity window and deletes old archived chats. The inactivity window is edited in Settings → General.
Learnings cleanup
booleanGale- Default
- false
- Location
- Settings → Background → Chats
- Storage
- preferences.learningsCleanupMode
Every 30 minutes, triages stale learnings at most once a day. Turning it on switches the mode to Prepare; the off/prepare/hybrid/auto modes live in Settings → Tools → Learnings.
Worktree auto-clean
booleanGale- Default
- false per folder
- Location
- Settings → Workspaces → Worktrees
- Storage
- preferences.folders[].worktreeAutoCleanup
Per-folder opt-in, one row per open folder. Each checked folder sweeps its Gale-created worktrees every 30 minutes once their pull request is merged, then deletes the branch; folders left off never participate. The same toggles exist per folder in the workspace sidebar.
Cache auto-clean
booleanGale- Default
- false
- Location
- Settings → Background → Caches and overlays
- Storage
- preferences.cacheAutoCleanup
Hourly sweep deletes regenerable build and package caches (DerivedData, Bazel, npm/yarn/pnpm, Gradle, SwiftPM, Playwright browsers), using the Storage pane's safety checks. Canonical toggle in Settings → General.
PR and Jira overlay cache refresh
booleanGale- Default
- true
- Location
- Settings → Background → Caches and overlays
- Storage
- preferences.overlayCacheRefreshEnabled
Every 2 minutes, refreshes the open pull requests and Jira caches so overlays open instantly. Off makes the next overlay visit fetch on demand.
Storage warm scan
booleanGale- Default
- true
- Location
- Settings → Background → Caches and overlays
- Storage
- preferences.storageWarmScanEnabled
Runs a storage scan shortly after launch and rescan ticks every 15 minutes. Ticks also re-measure free disk space, so the sidebar Storage chip stays current without opening the pane.
Project listeners
booleanGale- Default
- true
- Location
- Settings → Background → Projects
- Storage
- preferences.projectListenersEnabled
While a project has listeners configured, ticks check for pull request, CI, Slack, and schedule events and wake the project's coordinator chat. Off pauses every project's listener ticks until it is back on.
Update checks
booleanGale- Default
- true
- Location
- Settings → Background → Power and updates
- Storage
- preferences.updateChannel
Checks for a Gale update at launch and every 6 hours. Off stops the periodic checks; install updates manually. The off/stable channel lives in Settings → General.
Auto-compact
booleanGale- Default
- true
- Location
- Settings → Background → Power and updates
- Storage
- preferences.autoCompact
Compacts a chat automatically when its context approaches the threshold instead of failing the turn. Canonical toggle in Settings → Cost.
Stay awake while agents run
booleanGale- Default
- false
- Location
- Settings → Background → Power and updates
- Storage
- preferences.stayAwakeWhileAgentsRun
Prevents App Nap while an agent turn is running, so background sweeps and agents keep making progress with the lid open. Mirrors the Settings → Phone toggle.
Stay awake always
booleanGale- Default
- false
- Location
- Settings → Background → Power and updates
- Storage
- preferences.stayAwakeAlways
Prevents App Nap whenever Gale runs, including when no agent turn is active. Mirrors the Settings → Phone toggle.
Phone companion sync
actionGale- Default
- always on while signed in
- Location
- Settings → Background → Always on
- Storage
- preferences.phoneCompanionEnabled
Signed-in heartbeat and message poll keep the iPhone companion current while Gale runs. Sign-in lives in Settings → Phone.
Turn-stall watchdog
actionGale- Default
- always on
- Location
- Settings → Background → Always on
- Storage
- preferences.turnStallWatchdog (built in)
Polls every 15 seconds and aborts a turn wedged for 15 minutes, so one stuck tool call cannot hang a chat forever. No toggle by design.
Memory sampler
actionGale- Default
- always on
- Location
- Settings → Background → Always on
- Storage
- preferences.memorySampler (built in)
Samples CPU and memory every 5 minutes to feed the Performance pane's live stats. No toggle by design.
Saved-prompt reconcile and startup report flush
actionGale- Default
- always on
- Location
- Settings → Background → Always on
- Storage
- preferences.savedPromptReconcile (built in)
Event-driven reconcile of saved prompts, plus a one-shot flush of queued improvement and crash reports at launch. No toggle by design.