← All posts

Guides

TEMP CSS and TEMP JS windows no longer lose data on close — v3.2.2 and v3.2.3

For weeks our backlog had: "× in TEMP clears sessionStorage." A small title, months of a quiet problem — an accidental click on the × button threw away code, log, geometry. In May 2026 we finally fixed it (v3.2.2) and immediately added a "clear" button for deliberate clearing (v3.2.3). Here is what changed and why this little detail is bigger than it looks.

What was breaking

TEMP CSS, TEMP JS, TEMP JS Console and TEMP Output Console windows (shortcuts Ctrl+Alt+G/H/J/K) lived in the tab's sessionStorage under a random id assigned at first open. Closing with × called removeTempPane, which:

The result: content was lost irreversibly, and even if anything had survived somewhere, you could not find it — the next open looked for a different id. Someone working in TEMP CSS who accidentally clicked × lost 20 minutes of selector writing.

v3.2.2 — × only hides

In v3.2.2 we changed the model: a TEMP window is no longer removed on close, it gets a closed flag and stays in the session with its content, geometry and viewMode. The createTempPane function is now idempotent: reopening a window of the same type (e.g. Ctrl+Alt+G for CSS) reveals the existing window with the kept data instead of creating a new one. injectTempPanesIntoData only renders non-closed windows, so after a reload you still see what was supposed to be visible.

TEMP window data still disappears when the tab closes — that is the natural scope of sessionStorage and the original promise of "data within the session". A page reload also clears it (sessionStorage is per-tab-per-origin and does not survive the natural page lifecycle).

v3.2.3 — the "clear" button

Now that × had become friendly, we added a deliberate clearing tool: the TEMP CSS and TEMP JS headers got a trash-icon button right next to the ×. Clicking it clears the editor content in one move:

Two intents, two buttons: hide the window (×) and empty its content (trash). Before, × bundled both into one destructive move.

What it means day to day

Three concrete scenarios where this makes a difference:

Other fixes this model enabled

The old "× clears" model also blocked small improvements that did not have a sensible place: size memory per window type (v2.13.201), double-click the bar = size toggle (v2.13.203), scroll containment (v2.13.203). After rebuilding window state, all three have a consistent place to keep data and react consistently to close/open.

See also

Install JustZix — and stop losing TEMP code to a single accidental click.

Rate this post

No ratings yet — be the first.

Try it yourself

Install JustZix and paste any snippet from this article. Two minutes from zero to a working rule across all your devices.

Get JustZix

Features · How it works · Examples · Use cases