Repository navigation
Conversation
…roke (#309) Since 2.20 the .deb ships /usr/bin/stroke and stroke.png, so the unconditional mv of app failed and yay -S stroke-bin broke for everyone. The renames now run only when the old names are there. pkgrel is a template field, and aur.yml republishes a released version with a higher pkgrel.
Provider, Docker, local-server and D1 connects build a fresh row on every connect. A new one ignored the active workspace and landed in Personal, and writing one over a saved row dropped its workspace, colour and group. - upsertConnection files a new row under the workspace on screen and keeps workspaceId, color and group unless the caller names them. Sync writes with `exact` so the remote record stays the truth. - The workspace follows the connection that opens, so the sidebar never lists a workspace without the open database. - The sidebar list includes discovered (Docker, machine, studio) rows, the same rows the dialog lists and the switcher counts. - Workspace switcher: sidebar tokens, a hairline frame so it reads as the picker rather than the first row, a focus ring, mono counts and a spoken "N connections" label.
…ost tunnels on every engine (#311) * Roll back abandoned transactions instead of leaking them into the pool A console transaction starts with a plain BEGIN, so sqlx does not know the connection is in one. The idle sweep and a failed COMMIT dropped the session, sqlx handed the connection back to the pool still inside the transaction, and the next grid edit or console run joined it: writes never committed, locks held. A live test reproduces it. - Every session ends through release(): ROLLBACK, or close the socket if that fails. - The idle sweep runs on a one-minute timer, not only on begin and status. - Sessions carry the connection epoch. Switching, parking or closing the connection rolls them back, so a tab's statements can't run on a database the window has left. - Postgres sessions set idle_in_transaction_session_timeout as a server backstop. - The badge shows how long the transaction has been held and how many sessions wait on its locks (pg_blocking_pids, performance_schema). - Quit and window close ask before rolling back open transactions, and the quit path stops its 6 second fallback while a question is on screen. * Tunnels, Stop, big results, plans, ScyllaDB, connect overlay, polish, boot SSH tunnels - A supervisor rebuilds a lost tunnel on the same local port, with backoff, and tells the window (down, retrying, back, closed). - ssh's own error is reported (rejected key, changed host key) and BatchMode is on. The keepalive set in the form now reaches ssh. - A failed query says whether it reached the server; a write cut off by a lost tunnel reports "Result unknown". - SSH for SQL Server, Oracle, ClickHouse and Redis. TLS through a tunnel verifies the server's real name: Postgres and MySQL get libpq's hostaddr in the vendored drivers, the others dial the tunnel and keep the name. Parked Labs connections keep their tunnels. Backups, Data Diff and schema compare go through the tunnel. Stop - Real cancel for SQLite (sqlite3_interrupt), DuckDB (InterruptHandle), ClickHouse (KILL QUERY by query_id), SQL Server (KILL, then a fresh client) and MySQL scripts. Engines with no cancel say the server may still finish. EXPLAIN ANALYZE is stoppable and has a statement timeout. Big results - MySQL, SQLite, DuckDB and SQL Server stream into the result store like Postgres. Results held in memory stop at 512 MB with a clear message. The store checks free space and names a full disk. Plans - Parallel nodes are no longer counted once per worker, CTEs once only. Steps with more than 12 children fold to the ones that ran. Transactions - The badge counts the whole chain of sessions waiting on the transaction. Also - ScyllaDB has its own picker entry, mark and scylla:// URLs. - The connection dialog hands over before closing, so its panel never fades out over the form, and the launch overlay holds until the studio has painted. The connecting line animates transform. - Chrome (title bar, menus, tabs, toolbars, status bar) uses a sans face even with the Mono font. One outlined search box style. In-page shadows are 1px outlines. A zoom indicator. Custom and Imported themes are grouped by their real mode, and Imported is listed only when one exists. - Boot: stroke:// registration runs off the main thread (450ms on Linux desktops), the keychain read no longer blocks mounting, eight dialogs load on first open, and the last boot's timings are kept in stroke:last-boot. * SSH tunnels for MongoDB, CouchDB, Elasticsearch, OpenSearch, Cassandra and ScyllaDB - CouchDB, Elasticsearch and OpenSearch keep the server's name in the URL (TLS checks it) and resolve it to the tunnel. - Cassandra and ScyllaDB use the first contact point through the tunnel; the driver already reaches every node through one endpoint. - MongoDB points its mongodb:// host at the tunnel with directConnection=true. mongodb+srv:// and TLS are refused with a clear message: the driver can't dial one address while checking another name. - Test, connect, Data Diff and backups all go through the tunnel, and the form offers SSH for these engines. * Explicit transactions for DuckDB, SQL Server and Oracle Each runs on a connection of its own beside the shared one, so the grid and sidebar never read uncommitted rows. Closing the connection rolls back. * Stream ClickHouse results row by row Reads use JSONCompactEachRowWithNamesAndTypes and feed the grid or result store as lines arrive, instead of parsing one JSONCompact document after the whole body landed. Stop kills the query by id; an error the server writes after the first rows is reported. * One outlined search box on every page Page, panel and toolbar searches that were hand-styled (filled pills, field frames, rounded-full) now use search-box on the input or the new search-shell on a wrapper row, the same 1px outline as SearchField. Menu filter rows stay frameless. * Load seven on-demand components lazily The row inspector, query log, database name dialog, find and replace, extensions panel, dashboard window and trial screen were in the startup chunk though none shows at launch. The chunk drops from 778 KB to 698 KB.
…lans for document engines (#312) * Live tests for SQL Server, Oracle and ClickHouse; drop finished SQL Server sessions Transactions round-trip on real SQL Server and Oracle servers (rollback, commit, abandoned and released). ClickHouse streams 2M rows and Stop leaves nothing in system.processes. A transaction's SQL Server client now leaves the cancel registry when it closes instead of keeping its login there. * Stream Oracle and MongoDB results Oracle queries feed the grid or result store as the session fetches them instead of collecting up to the budget; Stop breaks the call. MongoDB find and aggregate stream from the cursor past the console's 5,000-document cap, with fields the first 1,000 documents lacked kept in (other fields). Both verified on real servers. * Stop on the server for Elasticsearch, OpenSearch, PostHog and MongoDB Elasticsearch and OpenSearch requests carry an X-Opaque-Id and Stop cancels the tasks holding it. PostHog queries carry a client_query_id and Stop sends DELETE for it. A streamed MongoDB find or aggregate is tagged with a comment and Stop runs killOp on it. Elasticsearch and MongoDB verified on real servers; PostHog against a fake that checks the cancel call. * Query plans for MongoDB, Elasticsearch, OpenSearch, CouchDB and libSQL Explain draws MongoDB's executed stages (aggregate stages above the cursor), a search's profile per shard and Lucene query, CouchDB's _explain index choice, and libSQL's SQLite plan in the plan view. The full-scan warning knows COLLSCAN and CouchDB's all-documents scan. Verified on real MongoDB 7, Elasticsearch 8 and CouchDB 3. * Outline the filter rows in menus and the terminal's find box Menu and popover filter rows (chart picker, database switcher, data diff pickers, column finder, model picker) are now an inset search-shell, the same outline as every page search. The terminal's find box drops its drop shadow for the outline and lights its border on focus. * Stream DuckDB results natively Console reads execute in DuckDB's streaming mode and are read through the row API (raw_query), so DuckDB no longer materializes the whole result first: 2M rows now grow memory under 120 MB where DuckDB alone held 214 MB. The driver's Arrow iterator panics on a mid-stream error; the row API returns it, and a test covers that.
JSON joins tables, charts, queries and diagrams as a share kind. The table's JSON view, the SQL console's JSON view and its share menu, and the JSON tool tab share what they show (a JSONPath result when there is one). The dialog previews the JSON and offers its top-level fields to leave out or mask, the way it offers a table's columns. Search fields show focus as one crisp accent edge, hovered or not. The soft halo beside a hover-gray border read as two outlines. The popover pickers' search had its focus edge removed by no-focus-ring, and menu filter rows drew an old bottom hairline over the new outline.
A centered mark, a sharper line on what Stroke is, badges and a current screenshot; why it holds up (streaming, Stop, staged edits, plans, tunnel reconnect, local credentials); all 21 engines by kind and the providers; features in short groups; install by Homebrew, Scoop, one line or package; nightly and first-launch notes folded away.
…ach agents (#315) - History, Saved and the saved charts leave the SQL console's results pane for a Queries tab of their own; the console keeps one Queries button and Ctrl/Cmd+Shift+B opens it. Rows show the query, then when, how long, how often, and a failure's message under it. - The zoom pill shows for zoom gestures only: it followed the zoom value, which every settings change and sync re-applies, so it appeared at launch and at random. Centred, gone after 2 seconds. - Every switch shares one geometry (app.css .app-switch): the thumb is sized from the track and slides by percentage. Switches mixed pixel tracks with rem thumbs, so zoomed in the thumb outgrew the track. - AI tab: a changed access level restarts an idle agent at once, and the next message tells it the new level. A resumed conversation still said what it could not do, so Claude or Cursor kept the old limits. - Snapshots: the title takes the row; an A or B badge marks the base and the comparison; Base and Compare sit on the date line.
Spanner connects over its REST API with a service account key, the gcloud login or the emulator. GoogleSQL and PostgreSQL-dialect databases both work: schemas, tables, columns with keys and foreign keys, indexes, DDL, row counts, the grid with filters, search, sort and edits, SQL with DML in a read-write transaction and DDL as a schema update, and query plans. The Google sign-in code moves out of the Firestore driver into google_auth so Spanner and BigQuery share it, with tokens cached per scope. The app quotes Spanner names with backticks; on a PostgreSQL-dialect database the driver turns them into double quotes before the statement runs.
BigQuery connects over its REST API with a service account key, the gcloud login or an emulator. Datasets are the schemas; tables and views list with their row counts from table metadata. BigQuery bills by bytes scanned, so browsing is careful about it: a plain page of a table reads through tabledata.list, which runs no query, and plans are dry runs that say how much a query would read. Filters, search and sort run as queries with typed parameters. Every query is a job with an id made here, so Stop cancels it on the server. Console results stream page by page into the result store. Rows are edited by primary key where the table declares one (BigQuery keeps it unenforced); without one the grid says to use the SQL console.
Any database with an ODBC driver installed now connects: by data source name, by connection string, or through a preset that fills the string for IBM Db2, Oracle, SAP HANA, SAP ASE, Informix, Teradata, Vertica, Exasol, Firebird, Amazon Redshift, BigQuery, Databricks, Apache Hive, Trino and Presto, Dremio, InterSystems IRIS and Microsoft Access. The driver manager ships with the app: unixODBC is built in on macOS and Linux, so the app starts without it and only the database's own driver has to be installed; Windows uses odbc32. The built-in unixODBC reads a merged copy of the system's driver and data source lists (Linux, Homebrew and /Library/ODBC), with bare driver file names resolved to full paths. Browsing goes through the ODBC catalog functions, so schemas or catalogs, tables, columns, primary keys and foreign keys work the same on every driver. Paging follows the database (LIMIT/OFFSET, OFFSET/FETCH, SKIP/FIRST, TOP) and falls back to reading and skipping when a clause is refused. Values are bound as parameters. Stop calls SQLCancel on the running statement, and console results stream into the result store. Tested through the PostgreSQL, MariaDB and SQLite ODBC drivers. The presets follow each vendor's driver documentation and say so in the form; none has been run against its real database yet.
…eck (#320) * Pick up ODBC drivers installed while the app is open The merged driver registry was written once per run, so a driver installed after the first ODBC call stayed invisible until a restart, while the form said to install it and open the form again. It is now rewritten before every driver list, data source list and connect, keeping the user's own ODBCSYSINI from startup as a source; unixODBC reads the files again when they change. The connection form asks for the lists again whenever an ODBC preset is picked. The README lists Spanner, BigQuery and the engines reached through ODBC. * Stop nightly updates failing their signature check Every nightly replaced the release under the same file names, and the feed went up first. An app that checked during a publish, or got last night's file from GitHub's download cache, read the new signature against the old file and showed "The signature verification failed". The updater now downloads a copy named for its build, so its URL can only ever serve that build's file, and latest.json is uploaded after every file it names. The plain names stay for the download page and the AUR. In the app, a signature mismatch reads the feed again and downloads once more before giving up, and says what happened if that fails too.
Tauri 2 only starts a drag from a bare data-tauri-drag-region when the click lands on that exact element, so the title bar's children were dead spots: the room beside the macOS traffic lights, and the wrappers around the controls on the connect screen and the home screen. The title bar and the connect screen's header rows are now tagged "deep", which drags from any part of them that isn't a button, tab or menu. Tauri also handles double-click to maximize across the deep region, so the title bar's own double-click handler goes, rather than toggling twice on Windows and Linux.
Snowflake connects over its SQL REST API with key-pair authentication (a JWT signed with the user's RSA key, carrying its public key fingerprint) or a programmatic access token; the SQL API takes no passwords. Metadata comes from SHOW and DESCRIBE, which need no warehouse: schemas, tables and views with row counts, columns with primary keys, and foreign keys both ways. The grid filters, searches and sorts with bound values and edits rows by declared primary key. Every statement is submitted asynchronously, so Stop cancels it on Snowflake, and results stream partition by partition. Plans come from EXPLAIN USING TABULAR as a tree. Dates, times and timestamps arrive in the API's numeric encodings and are shown as dates and times, TIMESTAMP_TZ with its offset; VARIANT, OBJECT and ARRAY as JSON.
…ns be turned off (#323) On macOS, WebKit locks a trackpad gesture to the axis it starts on, so a diagonal swipe in a wide grid moved one way only. With native scrolling the grid now takes plain wheel events itself and applies both axes 1:1, momentum included; at an edge the event goes on to the page around it. Settings gains a Referenced-by columns switch (on by default). Off, the grid's columns for tables whose foreign keys point at this one are neither loaded nor drawn; turned back on, the open table's come back.
Dialogs were centered with translate(-50%, -50%), which leaves an odd-sized dialog on a half pixel; on a 1x external monitor its text was drawn blurred. They are centered with inset-0 and auto margins now, which layout snaps to whole pixels. The command palette keeps its place at 16vh. The grid's canvas resized its bitmap only on a window resize. Moving the window between a Retina screen and a 1x monitor changes the pixel density without one, so the grid kept a 2x bitmap scaled down. A media query on the current density now redraws it at the new one. The command palette's connection list showed "@:/" for engines without a host (Spanner, BigQuery, ODBC by DSN); it shows their account, project, instance, database or DSN instead.
The web studio share (Labs) took PostgreSQL, MySQL and SQLite only. It now shares every SQL engine the app connects to: SQL Server, Oracle, DuckDB, ClickHouse, Spanner, BigQuery, Snowflake, D1, libSQL and ODBC databases. The page query follows the engine: names quoted its way (the driver's own quote for ODBC), no schema where there is none (SQLite and its kin, GoogleSQL Spanner's unnamed schema, a flat ODBC database), and OFFSET/FETCH for SQL Server and Oracle, with an ODBC database trying LIMIT first. The studio's info carries the quote and the engine's own label (IBM Db2 rather than ODBC). Read-only shares still run every statement through the MCP server's classifier and read-only path. The engine helpers moved to studio-sql.js, with tests.
…s a file (#393) * Export and import connections, settings, saved queries and snippets as a file * Add changeset
* Create or open a SQLite database file in one step * Add changeset
* Show timestamptz values in a chosen timezone * Add changeset
* Show the result of Run on SQL in an AI reply * Add changeset
* Remove leftover Select All debug logging * Add changeset
* Tunnel through Kubernetes port-forward or AWS SSM, besides SSH * Use the design radius on the tunnel picker * Add changeset
* Close a stopped query's connection instead of draining it; stop without waiting for the row in flight * Add changeset
…lank the other (#400) * Give a duplicated tab its own rows so windows evicted in one do not blank the other * Add changeset
* Proxy settings for app, AI, database and tunnel traffic * Add changeset
…and Japanese (#402) * Translate the main surfaces into Spanish, French, German, Portuguese and Japanese * Add changeset
* Show web viewers' cursors and edits on the app's shared studio While a database is shared as a web studio, the app joins the link's presence socket as the host. The people on the link show up on the grid: an outline on their cell with a name tag, their pointer, and the value they are typing before they save. The app sends its own cell, pointer and typing the same way, sealed with the link's key. Cells are matched by table, primary key and column name, so a mark lands on the right row when the app and the browser sort differently. Saving a cell, applying staged changes, adding or deleting rows, and SQL that writes a table all tell the others to reload it; a save on the web reloads the table in the app. The relay crypto moves to relay-seal.js so presence can use it without pulling in the app's API layer. * Add changeset
…e app (#404) * strokedb mcp: let an AI agent show the database, in the browser or the app `npx strokedb mcp` is an MCP server (stdio, no SDK) with list_tables, describe_table, a read-only query, and show_table. show_table starts an encrypted share on first use and returns two links that open on the table: the web studio and stroke://studio for the app. Later calls switch everyone already on the link to the table, through a presence message only the host's side sends. The agent shows up in the studio under its client's name ("Claude Code"). Without MCP, --share --json --table prints the same links as one JSON line for a script. The app answers stroke://studio?relay=&key=&open= by opening the studio in a window of its own, one per room. The page is built from checked parts, so a link can only point the window at stroke.click's studio, and the remote page gets none of the app's commands. strokedb goes to 0.4.0. * Add changeset
…405) * Stop a reloaded window from refusing every table load as superseded The backend keeps the newest load number it has seen per tab and refuses lower ones. It outlives the page, and after a reload the page counted from 1 again for the same restored tab ids, so every load of those tabs failed with "Superseded by a newer load of this table" until the app restarted. Load numbers now start from the clock, so a new page is always above an old one, and a superseded fetch never shows as an error. * Add changeset
* Separate fonts and font smoothing Appearance gets Separate fonts: a face of its own for the interface, the SQL editor, the data grid (canvas and cell editor), the AI chat and the terminal, each with a preview in that face. Left on Theme font, a surface follows the font preset as before. The faces on offer are the bundled ones plus the OS's own, named for it (SF Pro and SF Mono, Menlo and Monaco on a Mac; Segoe UI, Cascadia Mono and Consolas on Windows; Ubuntu, Cantarell, DejaVu on Linux), and an OS face is only listed when the machine has it. Font smoothing picks between the thin grayscale the app draws with and the OS default (on a Mac, the heavier macOS smoothing). * Add changeset
* Wait for the network instead of failing a reconnect while offline Reconnecting on launch with no network dialled into nothing: the overlay counted seconds and blamed "a far region", then the dialog opened with "Nothing answered at that address", sometimes twice. Now, for a database across the network, being offline (at the start or mid-dial) stops the attempt and the overlay says "You're offline" with no spinner or clock. When the network returns it reconnects by itself. A database on this machine is never held back. A connect failure while offline says so instead of blaming the host, and connect failures share one toast that updates in place: the toast store gets a `key` option, since its duplicate check skipped toasts with an action and "Nothing answered" has one. * Add changeset
* Show the rows in view first on wide tables over a slow link On a 207k-row table of HTML and JSON (about 850 bytes a row), the rows on screen sat on skeletons for seconds after a scroll, and stayed that way while scrolling sideways. Measured at 5 Mbit with 100 ms added: - A window is ~2 MB (2,582 of those rows), about 4 s. The fetch that puts the screenful up first only ran on the OFFSET path, and a table with a key takes the keyset path, so the rows in view waited for the whole window. It now runs for any heavy window (over 256 KB) or slow link, by OFFSET in the view's order. - The background mirror fetched 5,000-row pages, two at once: ~8 MB in flight that a scroll had to share the link with. Pages are now sized to ~256 KB by row width (pickMirrorPage), one at a time on a slow link. After: jumping to row 205,000 showed its rows in 1.07 s (a 43-row screenful in 0.8 s); before, the first rows of the table took 4-5 s. * Add changeset
…#409) * Edit the shared studio's console together with the people on the link While sharing, the command palette has Open shared console: one SQL tab that everyone on the link edits at once, the web studio's Shared console included. Each person's cursor and selection show under their name, and Run runs it for whoever presses it. The document is Yjs (with y-codemirror.next drawing the cursors), carried over the share's presence socket as sealed `y`, `y-sync` and `aw` messages, the same protocol as the web studio. It lives while someone has the studio open. The binding is added only once the editor holds the shared text, since the app's one console swaps each tab's text in and out, and Yjs loads only when a share starts. * Add changeset
* Keep the grid at full frame rate with a proportional font With Separate fonts putting a proportional face (Inter, SF Pro) on the grid, scrolling sideways on a table of wide HTML rows fell from 63 to about 50 fps, with 95th-percentile frames at 30-35 ms. The text paths assumed monospace: - The truncation cache held one font at a time and the draw loop switches between the cell and header fonts several times a frame, so it was wiped at every switch. It is now keyed by font. - textWidth measured every cell every frame. Widths are now cached per font. - A long value was shaped whole before the binary search. Only a head of twice (cell width / narrowest glyph) characters is measured now. A 180-frame sideways scroll made 18,854 measureText calls over 1.42M characters; a repeat pass now makes none and holds 63 fps. * Add changeset
…411) * List every change since the last stable in a stable release's notes A stable release's notes, on GitHub and in latest.json for the update dialog, came from its own CHANGELOG.md section only. Stable ships far less often than nightly: 3.0.0 to 3.7.5 is 66 versions and 117 entries, and 3.7.5's own section is one grid fix. scripts/release-notes.mjs now merges every section since the previous stable tag (from git ls-remote) under one heading each, newest first, in the shape the update dialog already parses. The GitHub body also gets .github/release-highlights/<version>.md on top when there is one; 3.7.5 has one. Pre-release tags keep their own section only. * Add changeset
* Show every change in What's new after a long update What's new after an update listed the newest 8 versions and "And N earlier releases in the full changelog" for the rest. From stable 3.0.0 to 3.7.5 that is 66 versions: the 8 shown were 21 small fixes, and the features the update brought (shared studios, new engines, languages) were among the 58 left out. A range longer than the limit now comes back as one release holding every change, under one section per kind (New, Fixed, Improved) and one per sub-section (Large values, Performance), newest first (releasesInRange's merge option). The footer still says how many versions it covers. Up to 8 versions it is one block per version as before. The update window does the same for a long Nightly jump. * Add changeset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes nightly to stable as v3.7.5 (stable is v3.0.0).
Merge with "Create a merge commit", not squash: it keeps master and nightly on one history. Merging tags v3.7.5 (auto-release.yml), and release.yml builds and publishes it.
Before this I ran 3.0.0 and then 3.7.5 on the same profile in release builds: both connections (with passwords) and all 60 settings came through, SQL, a new SQLite file and a language switch worked, and this exact commit built on every platform as nightly 3.7.5-nightly.202611230502.
Highlights
npx strokedb mcpgives Claude Code and other agents your tables, read-only, and a link that opens the one they mean.New Features
npx strokedb mcpis an MCP server for Claude Code and other agents, even ones running on another machine: it reads the database (tables, columns, read-only queries) and its show_table tool gives you a link that opens a table in the web studio or in Stroke. Later calls switch your open studio to the next table. In the app, astroke://studiolink opens the shared studio in a window of its own.Bug Fixes
'{{name}}'no longer breaks the cell or lets the value write SQL: its quotes are doubled inside a string literal.uuid_generate_v4()and rolling back.Large values
Changes
Performance
Code
Everything since v3.0.0.