Repository navigation
Web UI: do not update history on every keypress - #109360
alexey-milovidov wants to merge 71 commits into
Conversation
The query editor's `input` handler ran `refreshCurrentHistoryEntry` on every keystroke, which rewrote the browser-history entry and URL, re-set `document.title` to the whole query, and rebuilt the tab bar - per character. It also scheduled a workspace save on every edit. For a long query this is needless work on each keystroke. Only keep the active tab's query in sync in memory on input. Browser history, the URL and the persisted workspace are now recorded when a query is successfully run (`saveHistory`) or on a structural tab change - switch, add, close, rename - which capture the editor and write history / schedule a save themselves. As a result an unrun edit is not restored across a reload if no run or tab change followed it; the last successfully run query is shown, which matches "remember what you ran". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [234ff3a] Summary: ✅
AI ReviewSummaryThis PR moves the Web UI history / URL updates off the editor's per-keystroke path and adds substantial regression coverage around Findings❌ Blockers
Final VerdictRequest changes. |
…e tab The previous commit stopped refreshing the active tab's browser-history entry on every keystroke, recording it only on a run or a structural tab change. The PR describes closing a tab as one of those structural changes that "capture the editor", but `closeTab` did not actually fold the closing tab's latest editor edit into its own history entry the way `switchToTab` and `addTab` do for the tab they leave. As a result, after editing the active tab and closing it, pressing browser Back recreated the tab from `history.state` (`resolveTabForState`) using the stale last-run/URL snapshot rather than the newer unrun edit, losing the draft. Now `closeTab` calls `captureActiveTab` + `refreshCurrentHistoryEntry` for the tab being closed before splicing it out, mirroring `switchToTab`/`addTab`, so a later Back that recreates the tab restores its latest edit and parameters. Found by AI Review on #109360 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Feedback from GPT-5.5: |
The AI review (Request changes) and @pamarcos's GPT-5.5 feedback flagged that, after this PR stopped per-keystroke history/persist updates, two paths can still fold a later unrun draft into a saved/URL entry: a debounced `persist` that fires after fresh typing, and a trusted parameter edit that calls `syncHistory`. Both are real but intentional and harmless, and the suggested "fixes" are worse: - Freezing the debounced save to an arm-time snapshot would drop structural tab changes coalesced within the 400 ms window (`scheduleSave` is a no-op while a timer is pending), i.e. a genuine loss of persisted tabs. - Making a parameter edit sync only params (not the query) would either stamp params onto a mismatched query or leave the URL params stale relative to the tab, contradicting the invariant that a reload's URL params are never stale. In both paths a restored draft is only shown, never auto-executed: the workspace store carries no `run` flag and the editor-only history writers never set `run=1` for an unrun edit (`tabReflectsRun` is false once the editor diverges). Document this intended, harmless behavior at both sites and refine the input-handler comment so the "unrun edit is not restored" contract names these two exceptions. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…und-trip The AI review found that after removing the per-keystroke history refresh, `window.onpopstate` could clobber a newer in-memory draft: run `SELECT 1`, type `SELECT 2`, press browser Back to an older entry, then Forward. The forward entry still carries `SELECT 1`, so restoring `event.state.query` overwrote the live `SELECT 2` draft (an in-session data loss). `onpopstate` already captures the outgoing tab's editor into `tab.query` via `captureActiveTab`, so the latest draft survives in memory; the fix is to not overwrite it when returning to a stale entry. Keep the draft when it diverges from the entry AND does not merely reflect the entry's own produced result (`tabReflectsRun` false); the entry's result snapshot is still rendered, reproducing the pre-navigation edited-but-unrun state. A freshly recreated tab has `tab.query === event.state.query`, and normal Back/Forward between two runs of the same tab reports `tabReflectsRun` true, so both keep restoring the entry's query exactly as before. Reload behavior is unchanged (the URL still holds the entry's last-synced query). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The review twice found draft-loss regressions in the play.html history contract (closeTab not folding the latest draft into the closed tab's entry, and onpopstate clobbering a newer unrun draft on a Back/Forward round-trip), and both were caught only by manual reasoning. Pin the contract with a stateless test: it extracts the real tab/history functions from the served /play page and drives them under node with stub DOM/history objects, asserting that a closed tab's entry carries the latest draft (without run=1), that Back recreates the tab with the draft, that a same-session Back-then-Forward round-trip preserves a newer unrun draft, and that a clean editor keeps restoring entries verbatim. node was not available in any CI image, so install it into the stateless-test image (the stress image inherits it); the test is tagged no-fasttest because the fast test (including arm_darwin, which runs natively) has no node. Co-Authored-By: Claude Fable 5 <[email protected]>
When `window.onpopstate` preserves a newer unrun draft over the history entry's older query, it still overwrote `tab.params` from the entry and passed the entry's params into `restoreFromHistory`, so a same-session Back/Forward round-trip kept the draft query text while silently restoring (and then persisting, via the scheduled save) the older parameter bindings under it — an incoherent query/params pair. Keep the captured `tab.params` together with the draft query and pass them through the restore state; with no draft, entry params keep restoring verbatim as before. Extend `04538_play_ui_history_draft_regression` to pin this: the harness now models live parameter inputs (`getParamValues` snapshots them, the `restoreFromHistory` stub propagates `state.params` into the inputs and the active tab, and a `setParam` helper mimics the trusted `param-` input handler including its `syncHistory` stamp), and adds a preserved-draft round-trip with non-empty params plus a clean-editor control. Verified the new asserts fail on the previous code for both the full and the restore-state-only regression. Addresses the AI review Blocker and Major on the PR. Co-Authored-By: Claude Fable 5 <[email protected]>
…auto-run)
Address review (clickhouse-gh) on `programs/server/play.html`.
The `window.onpopstate` comment claimed that after preserving an unrun draft
across a same-session Back/Forward, "a subsequent reload still restores the
entry's query, per the contract". That is not what happens: the handler sets
`lastSavedQuery` to the entry query while `tab.query` holds the draft, and the
trailing `scheduleSave` persists the pair `{ query: <draft>,
lastSavedQuery: <entry query> }`. `reconcileStartup` treats exactly that shape
as a stale reload of an edited-but-unresynced tab and restores the DRAFT as
editor text, not the entry query.
This is the same harmless outcome the `scheduleSave` comment already documents
for any debounced save that flushes a divergent draft: the draft is only shown,
never auto-executed (the workspace store carries no `run` flag, editor-only
history writers never stamp `run=1` for an unrun edit, and `reconcileStartup`
drops the URL's `run=1` on the stale-reload branch). The guaranteed reload
invariant is "an unrun draft is never auto-run", not "reload always restores
the last run's query".
Correct the `onpopstate` comment, generalize the editor `input` handler comment
(the earlier "two narrow paths" wording undercounted: the `onpopstate`
`scheduleSave` and `persistColorModes` are additional paths that fold a draft
in), and add a note to `persistColorModes` that its debounced `persist`
snapshots the live editor. No behavior change.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Address review (clickhouse-gh): the earlier `04538_play_ui_history_draft_regression`
harness stubbed `setTimeout` so the debounced `persist` never ran, so it could not
observe what a reload does with a persisted unrun draft.
Extend the harness with a minimal in-memory IndexedDB and extract the real
`persist`, `loadFromDb`, `persistColorModes` and `reconcileStartup`, plus a `reload`
helper that flushes the workspace and re-runs startup reconciliation against the URL,
exactly as a real reload does. New cases pin the two paths the review flagged:
- after a preserved-draft Back/Forward round-trip, a reload restores the draft as
editor text but does NOT auto-run it (the stale-reload branch drops the URL `run=1`);
- a color-mode toggle over an unrun draft (`persistColorModes`) persists the live
editor, so a reload likewise restores the draft as editor text, never auto-run.
A control asserts the contrast: reloading a clean run both restores and re-runs the
query, since the URL stays authoritative. Verified by mutation — breaking the
stale-reload detection fails the "draft restored" assertions, and dropping the
`!preserve_local_query` auto-run guard fails the "not auto-run" assertions.
The history stub now syncs `location.href` on navigation (as a browser does), so
`persistColorModes`'s `new URL(window.location)` and the `onpopstate` restamp read the
current entry back.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Feedback from GPT-5.6 Sol Pro The new draft-preservation predicate conflates an unrun edit with a clean partial execution. After Concrete sequence: run This is also captured in the unresolved inline thread. The regression harness currently always models |
…editor The `onpopstate` handler decided whether to preserve a live in-memory draft over a history entry's older query using `!tabReflectsRun(tab)`. But `tabReflectsRun` is also false for a clean `Run selected`: `saveHistory` keeps the full editor in `tab.query` while the result snapshots only the selected statement in `tab.result.query`, so the editor never reproduces the result even without any post-run edit. As a result, browser Back/Forward after a `Run selected` mistook the run-backed editor for a newer unrun draft and stopped restoring older query text. Use a precise "dirty since the tab's last history write" check instead, `tab.query !== tab.lastSavedQuery`: an unrun edit updates `tab.query` in memory but leaves `lastSavedQuery` at the last run / structural-change value, so the two diverge exactly when there is a genuine unrun draft. A draft already stamped into a history entry by a parameter edit (via `syncHistory`) is then navigable coherently: Back restores the prior entry and Forward returns to the stamped draft, so the draft is never lost. Extend `04538_play_ui_history_draft_regression` with a clean `Run selected` Back/Forward case (which fails on the old predicate), a draft-typed-after-`Run selected` case, and a dirty-draft parameter-preservation case. Addresses the AI review finding on #109360 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
@pamarcos The GPT-5.6 finding crossed paths with the fix: commit f4d7ea3 (pushed two minutes after the comment) replaces The regression harness |
|
@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109360&sha=f4d7ea385828706b6c33bcd9e056cce835612765&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20parallel%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.
|
|
Feedback from GPT-5.6 Sol Pro The clean
Please preserve the live editor independently of an in-flight result and add deterministic tests that edit query text and parameters while single- and multi-query runs are outstanding. |
|
CI reds on
The remaining AI Review Major (rename writing history outside the capture funnel) is fixed in |
…funnel
A trusted edit of a live parameter input wrote history from a raw
`getParamValues()`. After a query edit that removed a placeholder, the
live inputs (and `currentQueryParams`) still describe the pre-edit text
until the asynchronous `updateQueryParams` rebuild lands, so editing
another value in that window serialized the removed placeholder's
binding into the entry and the URL (`/play?param_x=1¶m_y=3#SELECT
{y:Int32}`); a reload or a copied link then resurrected it.
The listener now goes through `captureActiveTab` before `syncHistory`,
like every other history writer: the capture merges the tab-owned
snapshot behind the live inputs and prunes the result against
`tab.query` (`queryMentionsParam`), so the stale binding never reaches
the entry while the edited binding survives.
Pinned in `04616_play_ui_history_param_placeholder_sync`: with the
removing edit's tokenization gated, a trusted edit of the surviving
parameter must not carry the removed one (fails pre-fix at 'the capture
prunes the removed binding'), and the landing rebuild keeps the edited
binding.
Co-Authored-By: Claude Fable 5 <[email protected]>
`queryMentionsParam` was a raw regex over the query text, so
placeholder-shaped text inside a string literal or a comment
(`SELECT '{x:Int32}'`, `-- {x:Int32}`) counted as a live placeholder:
after an edit that moved the placeholder into quotes, a structural
capture or `saveHistory`'s diverged-draft prune kept the stale
`param_*` binding, and the entry/URL carried it with nothing left to
repair them once the activation superseded the rebuild. The raw scan
also under-reported a comment between the placeholder tokens
(`{/*c*/x/*c*/: Int32}`), wrongly dropping a live binding.
The scan now blanks out string literals, quoted identifiers, heredocs
and comments first (`maskQuotedAndComments`, mirroring the lexical
rules of `src/Parsers/Lexer.cpp` behind `tokenize`), and stays
conservative in the keep direction: it can only over-report relative
to the token-level extraction, never miss a real placeholder.
Test: 04616 gains a lexical table cross-checked against the real
embedded WASM lexer (the scan must never report a placeholder gone
where the token-level extraction finds it), a capture-funnel case (a
gated rebuild, the placeholder edited into a string literal, a tab
switch must prune the binding while an unquoted one survives), and a
`saveHistory` completion-race case with a commented-out placeholder.
Mutation-verified: reverting to the raw regex fails the new asserts.
The inline title editor's `commit` unconditionally reached the `captureActiveTab` + `syncHistory` + `scheduleSave` funnel, so canceling a rename with `Escape` (or committing an unchanged/empty title) copied an unrun editor draft into `history.state`, the URL hash and `lastSavedQuery` — a reload then restored text the contract says is only recorded on a run or a real structural change. Gate the funnel on an actual title change; an actual rename remains a history writer. Regressions in 04616: canceled (`Escape`) rename, same-title rename and all-whitespace rename over an unrun draft leave the entry, `run=1` and the title untouched, while a real rename over the same draft still writes. Co-Authored-By: Claude Fable 5 <[email protected]>
`window.onpopstate` only ever promoted `tab.runnableUrl` to `true` and never cleared it, so the bit was sticky for the whole page tab. Browser-history entries outlive a page, so one tab can hold an older entry written under a plain load and a newer one written after a fresh navigation to a shared `?run=1` link. After visiting the newer entry, going Back to the older plain one left `tab.runnableUrl === true`; the next structural write (`addTab`, `switchToTab`, a rename, ...) then saw a clean run-backed tab and `writeHistoryEntry` re-stamped that older entry as `?run=1`. Reloading or sharing it would auto-execute a query that was never opened with `run=1`. `writeHistoryEntry` now records the policy in the entry state (`runnableUrl`), and `window.onpopstate` restores the policy of the entry it navigates to. The POLICY is stored rather than the entry's own `run=1` marker: an editor-only entry written during a `run=1` session legitimately carries no marker (`tabReflectsRun` is false) yet must keep the policy so the next clean run of that session can stamp the marker again. A legacy entry without the stored policy keeps the previous promote-only behavior, the only evidence available. `04549_play_ui_history_draft_regression` gains a case that mixes an older plain-load entry with a newer `?run=1` entry for the same tab across a fresh navigation, navigates Back/Forward between them and performs a structural write. It fails before this change with `Back to the older plain entry clears the policy: expected false, got true`.
|
🕵 The single CI red on It is a known plan-based parallel replicas issue with an open fix:
The AI-review blocker (sticky |
Build profile diff (arm_release)No arm_release build profile data for commit 234ff3a - the build was skipped, reused from cache, or predates profile upload. |
…ly exception as `persistColorModes` A column-pin toggle takes the same `scheduleSave` -> `persist` -> `captureActiveTab` chain as a color-mode toggle, so it can also flush a dirty editor draft to IndexedDB and have `reconcileStartup` restore it on reload (as editor text only, never auto-run). Name the pin toggle in the `onQueryInput` contract comment and pin the behavior with a focused case in `04549_play_ui_history_draft_regression`, mirroring the color-toggle case. Co-Authored-By: Claude Fable 5 <[email protected]>
…ll` -> `postMulti` completion path The delayed-completion cases of `04549_play_ui_history_draft_regression` drove successful runs by calling `saveHistory` with an already-captured launch snapshot, so they proved only the `saveHistory` half of the contract: a revert of `postAll`/`postMulti` to re-read the live `query_area.value` after their lexer preflight awaits would have passed while a multi-statement run could again stamp an in-flight unrun draft as `run=1` and auto-execute it on reload. Extract the real `postAll` (as `realPostAll`, so `reconcileStartup`'s startup auto-run keeps hitting the observable stub), `postMulti`, `beginFlight`, `endFlight`, `resolveRunParams`, `pickRunParams` and `extractRunParamNames` into the harness, stubbing only the WASM lexer and the `postImpl` network round-trip. The new "run all in flight" case parks the launch on a gated `tokenize` stub — the run's FIRST preflight await — types the draft while it is parked, then releases it, so any re-read of the live editor after an await (at snapshot time or at completion) is caught; the clean-control case pins that the divergence guard does not fire spuriously and the real path still stamps `run=1`. `WebAssembly` and `extractQueryParams` are exposed in the sandbox because `extractRunParamNames` checks the former and looks up the latter (the callee) before awaiting `tokenize` — without them the preflight short-circuits to its no-lexer fallback without parking on the gate. Mutation-verified: reverting `postMulti`'s `saveHistory` call to `query_area.value`, or `postAll`'s `postMulti` call to pass the live editor text, fails at "run all in flight: the result snapshot holds the launched editor text".
|
🕵 CI status on Pushed |
…opstate`
A legacy title-only entry (`{tabName, query}`, written before `tabId`
existed) resolved by `resolveTabForState` stayed foreign to the tab it was
bound to: every later "is this entry the active tab's?" check keys on
`tabId`, so `refreshCurrentHistoryEntry` bailed on it and the structural
folds (`closeTab`, `switchToTab`, `addTab`, a rename) never folded the
latest unrun draft into the entry. Landing on such an entry via Back,
editing, then closing the tab and pressing Back again recreated the tab
with the stale entry query instead of the draft.
`window.onpopstate` now restamps legacy entries too: the identity-restamp
block fires when the state has no `tabId` at all, adopting the entry as
the resolved tab's (`tabId` + current title, and the URL's `tab=` key).
A regression case in 04549 lands on a legacy entry via Back, types a
draft, closes the tab and verifies the fold landed the draft in the
adopted entry and Back restores it. It fails on the previous code at
`legacy entry: the entry is adopted with the tab id`.
|
🕵 The two CI failures on
Neither fix has merged into |
| /// first clause short-circuits; and after a clean Back/Forward this handler sets both `tab.query` | ||
| /// and `lastSavedQuery` to the entry query (below), so a subsequent navigation with no edit stays | ||
| /// non-dirty and keeps restoring the entry's query exactly as before. | ||
| const preserve_draft = tab.query !== event.state.query && tab.query !== tab.lastSavedQuery; |
There was a problem hiding this comment.
preserve_draft only keeps tab.query / tab.params. window.onpopstate still rewinds the navigated entry's execution target before the editor is reactivated, so the preserved draft no longer represents the state the user actually typed.
Concrete trace I reproduced with the real extracted harness:
- run
SELECT 1indb1; - run
SELECT 2in the same tab, so there are now two run-backed history entries; - switch
selected_databasetodb2, which rewrites only the newer entry; - type an unrun draft;
- press Back.
The editor still shows the draft, but selected_database has already been restored from the older entry (db1), and pressing Run executes the preserved draft in db1. The same handler also restores the older url / user on a cross-connection Back, so this mixed-state problem is not limited to databases.
Please either preserve the draft's execution context together with the text, or disable preserve_draft when the target entry differs in connection / database. A focused regression with differing database= (and ideally url= / user=) between the two entries would catch this.
| /// `tabReflectsRun` uses against `result.params`). | ||
| const params_unchanged = JSON.stringify(tab.params || {}) === JSON.stringify(stateData.params || {}); | ||
| /// | ||
| /// A bookkeeping artifact must not read as such an edit, though: `tab.params` can still carry |
There was a problem hiding this comment.
I do not understand why we need so much complexity. Most likely, this PR was wasted by rounds of pointless reviews.
|
Closing this in favour of a much smaller change. The performance complaint here is real — per keystroke, Of the +534 lines in The replacement keeps the in-memory and persisted state synced on every keystroke — including the query parameters — and moves only the browser-history and URL write off the keystroke path. Because Two changes here are fixes for pre-existing bugs on |
In the Web UI (
play.html), the query editor'sinputhandler updated the browser-history entry and the URL, re-set the window title, rebuilt the tab bar, and scheduled a workspace save on every keystroke. For a long query that is needless work on each character.Now the
inputhandler only keeps the active tab's query in sync in memory (tab.query). Browser history, the URL and the persisted workspace are recorded when a query is successfully run (saveHistory) or on a structural tab change — switch, add, close, rename — each of which captures the editor and writes history / schedules a save itself.This branch was reconciled onto master's per-tab, concurrent-run rework of the same layer (the persistent-tabs series). That architecture already provides most of the supporting machinery — structural-boundary folding in
switchToTab/addTab, thepreserve_local_querystale-reload branch inreconcileStartup, a debouncedpersistthat folds the live draft viacaptureActiveTab, thelastSavedQuerymarker, andsaveHistory's launch-vs-live divergence guard that dropsrun=1when the editor moves on. So the "history on run, not on keypress" policy is applied as three focused changes on top of it:query_areainputhandler syncs onlytab.queryin memory (norefreshCurrentHistoryEntry/scheduleSaveper keystroke);window.onpopstatekeeps a newer unrun draft (preserve_draft:tab.query !== event.state.query && tab.query !== tab.lastSavedQuery) instead of overwriting it with the entry's older query, soactivateTabrestores the draft while the entry's own result snapshot still renders. The predicate deliberately useslastSavedQuery(dirty since the tab's last history write), nottabReflectsRun, so a cleanRun selected— whose result snapshots only the selected statement while the editor keeps the full text — is not mistaken for a draft;closeTabfolds the active tab's latest edit into its own history entry (captureActiveTab+refreshCurrentHistoryEntry) before removing it, so a later Back that recreates the closed tab (resolveTabForState) restores the draft, not the stale last-run text.Behavior guarantees: an unrun draft is never auto-executed — the editor-only history writers never stamp
run=1for an unrun edit (tabReflectsRunfails once the editor diverges from the produced result). Therun=1marker itself is a per-tab policy (tab.runnableUrl, persisted with the workspace but honored on restore only when the load itself carries therun=1directive): it is (re)stamped by a genuine run under a?run=1load and adopted from a Back/Forward entry whose URL already carries it, never derived from a mutable session-global — so a stale reload's suppression is scoped to the preserved draft's own entries (an explicit rerun recoversrun=1, and switching into another clean run-backed tab keeps its marker), while arun=1URL meant for one tab can never make another tab's URLs auto-runnable, and the directive never outlives its own session: a plain/playnavigation clears the restored markers, so it neither rewrites a restored tab's URL back to?run=1nor lets a later reload auto-execute a query that this navigation never asked to run. When a run's completion — or a structural leave (switchToTab/addTab/duplicateTab/closeTab, whosecaptureActiveTabsnapshots the live inputs) — lands after the user already edited the query but before the async placeholder rebuild, the writer prunes the parameters by a conservative textual placeholder scan of the captured text (queryMentionsParam), so the URL never pairs the newer draft with a removed placeholder's binding, even transiently. An unrun edit is generally not restored across a reload if no run or structural change followed it; the last successfully run query is shown, which matches "remember what you ran". Where a debouncedpersistdid flush a draft to IndexedDB, a reload restores it as editor text but never re-runs it (reconcileStartup's stale-reload branch refuses the URL'srun=1); a clean run, by contrast, is both restored and re-run.Pinned by the stateless regression test
04549_play_ui_history_draft_regression, which extracts the real tab/history functions (saveHistory,writeHistoryEntry,window.onpopstate,closeTab,switchToTab,reconcileStartup,postAll/postMulti, …) from the served/playpage and drives them undernodewith stub DOM / history / a minimal in-memory IndexedDB, with cases for the run=1 policy scoping, for the adoption of a legacy pre-tabIdhistory entry on Back (so the structural folds recognize it and a close+Back keeps the draft), and for an edit typed while a multi-statement run is genuinely in flight inside the realpostAll->postMulticompletion plumbing (only the lexer and the network round-trip are stubbed) (stale reload → explicit rerun → reload; stale reload → tab switch), by04616_play_ui_history_param_placeholder_sync, which drives the REAL parameter pipeline (embedded WASM lexer,updateQueryParamsrebuild, launch-time binding) including the entry written before a racing rebuild lands, and by the integration testtest_play_reconcile_startup(whose harness executes the real page script and drives the actual editorinputhandler / structural fold). Since no CI image had a JavaScript engine,nodeis installed into the stateless-test image as part of this change.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
In the Web UI, the browser history and the URL are no longer updated on every keypress; they are recorded when a query is successfully run or on a tab change.
Documentation entry for user-facing changes
🤖 Generated with Claude Code