Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .changeset/v3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
### New Features

#### Stroke 3
- **One account, three computers** - Sign in with GitHub or Google. Your license comes with your account and covers up to 3 computers; manage them at stroke.click/app. Paid Pro keeps working offline for 30 days.
- **Sync** - Workspaces, connections, settings, saved queries, charts and dashboards sync between your computers, end-to-end encrypted.
- **21 databases** - New since 2.3: Oracle, Elasticsearch, OpenSearch, Xata and SingleStore, alongside MongoDB, CouchDB, Cassandra, DynamoDB, Firestore and Redis.
- **Several databases at once (Labs)** - Keep more than one connection open, each with its tabs, and switch instantly.

#### AI
- **AI chat in a tab** - AI opens beside your tables instead of taking over the window, and its chats live in the sidebar. On by default in this version; switch it off in Settings → Labs.
- **Access levels for every model** - Read only, Read & write, Modify schema or Dangerous, now enforced for the built-in models and API keys too, not only local agents.
- **Plans and step timeline** - A multi-step request shows its plan, each tool call is one row with its result, and a finished turn says what changed.

#### Your databases
- **Local database servers** - Run Postgres, MySQL or Redis on this computer in any version, in their own window, start them with Stroke, and see the servers already running here.
- **Migrations** - Drizzle, Prisma, Wrangler (D1) and plain SQL folders: what has run, what is pending, and the SQL of each.
- **Scheduled backups** - To Stroke Cloud or your own S3, end-to-end encrypted, with a preview of a dump and its encoding before you restore.
- **Docker in one step** - ⌘K → Docker starts any of 18 databases, already connected.
- **Dashboards** - Live chart cards that refresh themselves, open in their own window, full screen.
- **Paste any connection string** - .env lines, ORM URLs and key/value strings land on the right form.

#### Everywhere
- **Leader key** - Press ⌘; (Ctrl+; on Windows and Linux), then one key.
- **Share as a web studio (Labs)** - Share a database through a link that opens in any browser.
- **SQL notebooks** - Variables, import and export, autosave.
- **Results beside the editor** - Put SQL results below or beside the editor.
- **Quieter updates** - Updates download in the background and install as Stroke quits. Homebrew, Scoop, AUR, .deb and .rpm installs update through their package manager.

### Changes
- A faster start: Settings, the command palette and one-off dialogs load on first use, and the data grid loads lazily.
- Windows and Linux get a 40px title bar with native window buttons, and native Wayland on Linux.
- echarts 6.1, which fixes an XSS advisory; charts look as they did.
- The Explorer tree stays in Labs (Settings → Labs).
18 changes: 13 additions & 5 deletions TODO_TODAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ Stable has been on 2.3.0 since 2026-11-02, with 273 commits on `nightly`
since. Every Stable user jumps across all of it in one update, so v3 is a
release with a freeze and a test pass, not a plain promote. In order:

- [ ] **Feature freeze.** Fixes only on `nightly` until v3 ships.
- [ ] **Decide what leaves Labs.** Several connections at once and the tree
- [x] **Feature freeze.** Fixes only on `nightly` until v3 ships.
- [x] **Decide what leaves Labs.** Decided for 3.0: AI chat in a tab stays
in Labs but is on by default (turned on once for everyone); the tree
sidebar and several connections stay opt-in.
Was: Several connections at once and the tree
sidebar: graduate both to the default (they are what the site and the
email show) and test them as the default on every engine, or ship v3
with them still opt-in.
Expand Down Expand Up @@ -39,14 +42,19 @@ release with a freeze and a test pass, not a plain promote. In order:
- [ ] **The license change**, settled before the release: the same wording on
the site's legal pages, in the app (license page, About) and in the
email.
- [ ] **Release notes: what changed since 2.3.0.** Written once, used for the
- [x] **Release notes: what changed since 2.3.0.** Written once, used for the
release page, the in-app What's new, the email and the launch posts.
- [ ] **Rollback plan.** Keep the 2.3.0 installers easy to find, and know how
- [x] **Rollback plan.** If v3 breaks on day one, run
`gh release edit v2.3.0 --repo stroke-app/stroke --latest`: the Stable
updater reads `releases/latest/download/latest.json`, so nobody else
moves to v3. The updater never downgrades, so anyone already on v3 needs
a 3.0.1 fix.
Before: Keep the 2.3.0 installers easy to find, and know how
to point the Stable updater back at 2.3.0 if v3 breaks something on day
one.
- [ ] **Release candidate.** A few days of daily use on Nightly with nothing
new landing.
- [ ] **Ship it.** Label the release PR `release:major` (CONTRIBUTING.md), then
- [x] **Ship it.** Label the release PR `release:major` (CONTRIBUTING.md), then
Actions, *Promote nightly to stable*.

## Next up
Expand Down
22 changes: 15 additions & 7 deletions src/lib/components/StudioShell.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2952,7 +2952,7 @@ let rowSearch = $state('')
function handleWhatsNewAction(id) {
if (id === 'enable-tree-sidebar') {
updateSettings({ sidebarStyle: 'tree' })
toast.success('Explorer tree is on', { description: 'Switch back any time in Settings → General.' })
toast.success('Explorer tree is on', { description: 'Switch back any time in Settings → Labs.' })
} else if (id === 'open-themes') {
menuActions.theme?.()
} else if (id === 'open-shortcuts') {
Expand All @@ -2961,10 +2961,18 @@ let rowSearch = $state('')
showConnectionModal = true
} else if (id === 'enable-ai-tab') {
updateSettings({ aiInTab: true })
toast.success('AI chat opens in a tab now', { description: 'Switch back any time in Settings → General.' })
toast.success('AI chat opens in a tab now', { description: 'Switch back any time in Settings → Labs.' })
} else if (id === 'open-docker') {
commandPage = 'docker'
commandOpen = true
} else if (id === 'open-ai') {
openAiTab()
} else if (id === 'open-local-servers') {
void openLocalServers()
} else if (id === 'open-migrations') {
openMigrationsTab()
} else if (id === 'open-backups') {
openBackupTab()
}
}

Expand Down Expand Up @@ -3191,7 +3199,7 @@ let rowSearch = $state('')
}
/** The full-window AI chat, so the title bar's sidebar button can drive its chat list. @type {any} */
let aiFullRef = $state(null)
/** The AI chat in its tab (beta), for messages sent from elsewhere. @type {any} */
/** The AI chat in its tab, for messages sent from elsewhere. @type {any} */
/**
* The AI tab's chat instances. One is on screen (`aiPrimaryKey`); the others
* are chats still replying after you started or opened another, kept mounted
Expand Down Expand Up @@ -4543,7 +4551,7 @@ let rowSearch = $state('')
clearTableEditor()
}

/** AI chat: a tab beside the others (beta setting), or the window's AI mode. */
/** AI chat: a tab beside the others, or the window's AI mode. */
function openAiTab() {
if (!$hasPro) { showProGate = true; return }
if ($appAiInTab && connection) {
Expand Down Expand Up @@ -8242,7 +8250,7 @@ let rowSearch = $state('')

function enterAiMode() {
if (!connection) return
// AI in a tab (beta): every way into AI mode (⌘⇧E, the title bar, the
// AI in a tab: every way into AI mode (⌘⇧E, the title bar, the
// palette) opens the tab instead.
if ($appAiInTab) { openSingletonTab({ find: findAiTab, create: createAiTab }); return }
aiMode = true
Expand Down Expand Up @@ -10640,7 +10648,7 @@ let rowSearch = $state('')

{#snippet sharedContent()}
{#if activeTab?.kind === 'ai'}
<!-- AI in a tab (beta): drawn by the kept-alive block below -->
<!-- AI in a tab: drawn by the kept-alive block below -->
{:else if activeTab?.kind === 'schema'}
<svelte:boundary failed={tabError}>
{#await import('./SchemaPage.svelte')}<TabLoading />{:then { default: SchemaPage }}
Expand Down Expand Up @@ -10703,7 +10711,7 @@ let rowSearch = $state('')
</div>
{/if}

<!-- AI chat tab (beta) - mount once, keep alive so a reply keeps streaming
<!-- AI chat tab - mount once, keep alive so a reply keeps streaming
while you look at a table. Its chats are listed in the sidebar. -->
{#if aiTabEverOpened && $appAiInTab}
<div
Expand Down
36 changes: 36 additions & 0 deletions src/lib/stores/settings.dom.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { describe, it, expect, vi, beforeEach } from 'vitest'

vi.mock('@tauri-apps/api/core', () => ({ invoke: vi.fn(async () => '') }))

/** Minimal in-memory localStorage for the node test environment. */
function installLocalStorage(seed = {}) {
const map = new Map(Object.entries(seed))
globalThis.localStorage = /** @type {any} */ ({
getItem: (k) => (map.has(k) ? map.get(k) : null),
setItem: (k, v) => map.set(k, String(v)),
removeItem: (k) => map.delete(k),
})
return map
}

describe('AI chat in a tab is on by default', () => {
beforeEach(() => vi.resetModules())

it('is on for a new install', async () => {
installLocalStorage()
const { loadSettings } = await import('./settings.js')
expect(loadSettings().aiInTab).toBe(true)
})

it('turns on once for settings saved before 3.0, then keeps a later choice', async () => {
const store = installLocalStorage({ 'stroke:settings': JSON.stringify({ aiInTab: false, theme: 'dark' }) })
let { loadSettings } = await import('./settings.js')
expect(loadSettings().aiInTab).toBe(true)
expect(JSON.parse(store.get('stroke:settings')).aiInTab).toBe(true)

store.set('stroke:settings', JSON.stringify({ ...JSON.parse(store.get('stroke:settings')), aiInTab: false }))
vi.resetModules()
;({ loadSettings } = await import('./settings.js'))
expect(loadSettings().aiInTab).toBe(false)
})
})
16 changes: 12 additions & 4 deletions src/lib/stores/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ export const DEFAULT_SETTINGS = {
// Beta: 'tree' swaps the sidebar's Tables / Objects / Databases tabs for one
// explorer tree (connection > database > schema > groups > objects > columns).
sidebarStyle: 'classic',
// Beta: AI chat opens as a tab beside your tables, its chats listed in the
// sidebar, instead of taking over the whole window.
aiInTab: false,
// AI chat opens as a tab beside your tables, its chats listed in the
// sidebar, instead of taking over the whole window. Still in Labs, but on by default since 3.0.
aiInTab: true,
// On by default. A column averaging half a megabyte a row is fetched as a
// size, and its value is loaded per cell on demand - the difference between a
// table opening in a second and in eleven. Off restores the old behaviour:
Expand Down Expand Up @@ -1003,7 +1003,15 @@ export function loadSettings() {
const sidebarRememberGroups = parsed.sidebarRememberGroups !== false
const liveModeEnabled = parsed.liveModeEnabled === true
const sidebarStyle = parsed.sidebarStyle === 'tree' ? 'tree' : 'classic'
const aiInTab = parsed.aiInTab === true
// Absent means on. A stored `false` from before 3.0, when this was a Labs
// switch off by default, can't be told from a choice, so it turns on once.
let aiInTab = parsed.aiInTab !== false
try {
if (localStorage.getItem('stroke:ai-in-tab-default-v3') !== '1') {
if (!aiInTab) { aiInTab = true; settingsMigrated = true }
localStorage.setItem('stroke:ai-in-tab-default-v3', '1')
}
} catch {}
const lazyWideColumns = parsed.lazyWideColumns !== false
const nullSortOrder = NULL_SORT_IDS.includes(parsed.nullSortOrder) ? parsed.nullSortOrder : DEFAULT_NULL_SORT
const agentChatFontSize = migrateAgentFont(parsed.agentChatFontSize, LEGACY_AGENT_CHAT_FONT, DEFAULT_AGENT_CHAT_FONT)
Expand Down
37 changes: 36 additions & 1 deletion src/lib/whats-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { compareVersions } from '$lib/changelog.js'

/**
* @typedef {'enable-tree-sidebar' | 'open-themes' | 'open-shortcuts' | 'open-connections' | 'enable-ai-tab' | 'open-docker'} HighlightAction
* @typedef {'enable-tree-sidebar' | 'open-themes' | 'open-shortcuts' | 'open-connections' | 'enable-ai-tab' | 'open-docker' | 'open-ai' | 'open-local-servers' | 'open-migrations' | 'open-backups'} HighlightAction
* @typedef {{
* id: string,
* icon: 'tree' | 'themes' | 'keyboard' | 'database',
Expand All @@ -22,6 +22,41 @@ import { compareVersions } from '$lib/changelog.js'

/** Newest first. @type {{ after: string, items: Highlight[] }[]} */
export const HIGHLIGHT_SETS = [
{
// Stroke 3.0: the first Stable after 2.3.0, so most people see this set.
after: '2.20.4',
items: [
{
id: 'v3-ai-tab',
icon: 'database',
beta: true,
title: 'AI chat sits beside your tables',
body: 'AI opens as a tab next to your tables and queries, and its chats live in the sidebar with the database each one worked in. Pick Read only, Read & write or more for any model.',
action: { id: 'open-ai', label: 'Open AI chat' },
},
{
id: 'v3-local-servers',
icon: 'database',
title: 'Local database servers',
body: 'Run Postgres, MySQL or Redis on this computer in any version, start them with Stroke, and see the servers already running here.',
action: { id: 'open-local-servers', label: 'Open local servers' },
},
{
id: 'v3-migrations',
icon: 'database',
title: 'Migrations, applied and pending',
body: 'Point Stroke at a Drizzle, Prisma, Wrangler or plain SQL folder and see what has run, what is waiting, and the SQL of each one.',
action: { id: 'open-migrations', label: 'Open Migrations' },
},
{
id: 'v3-backups',
icon: 'database',
title: 'Scheduled, encrypted backups',
body: 'Back up on a schedule to Stroke Cloud or your own S3, end-to-end encrypted, and preview a dump before you restore it.',
action: { id: 'open-backups', label: 'Set up backups' },
},
],
},
{
after: '2.6.0',
items: [
Expand Down
Loading