Query Pilot Tab Autosave
Query Pilot can save restorable query tabs to a local JSON session file so work can be recovered after an application crash, forced restart, or accidental close.
What Is Saved
Autosave stores editor workspace state:
- Tab name.
- SQL text.
- Pinned target IDs and target names.
- Selected database names.
- Database search text and mode.
- Per-tab refresh enabled state and interval.
- The selected Query Pilot tab.
- Query Pilot target mode.
Autosave does not store result grids, Messages text, editable table grid data, passwords, connection strings, or decrypted credentials.
Global Modes
Open Query Pilot Library, then use Autosave.
- Autosave query tabs turns session recovery on or off.
- Continuous saves after edits with a short debounce. It feels like Rider-style autosave without writing the file on every literal keydown.
- Every interval saves on the configured minute interval. The number box is minutes.
- Save tabs now writes the current restorable tabs immediately.
Autosave is recovery-state saving, not library saving. A scratch tab can be restored after a crash even if it has never been saved into the Script Library. A tab linked to a library script keeps its source link in the recovery file, but autosave does not silently update the library script body.
Per-Tab Control
Right-click a query tab and use Save this tab in recovery session.
Turn this off for scratch tabs that should not be restored later. The setting is itself saved with the session.
Restore Behavior
When Query Pilot opens and autosave is enabled, it loads the last saved session from QueryRunnerTabs.json by default. Restored tabs keep their names, SQL, pinned servers, selected databases, and per-tab refresh settings.
Tabs opened as table editors are not restored in this first pass. They are live editable grid surfaces rather than plain SQL documents.
Support Bundle Behavior
Support bundles report the tab session file path, save time, tab count, target count, database count, and SQL text lengths. They do not include the saved SQL text itself.
Related: Query Pilot, Query Pilot tabs, and Regression checklist.
Documentation revision: D40D9B6EE10EB30F