Repository navigation
v1.4.2 — Safer init/restore & Backups, Reliable Session Snapshots, Status Bar & Web Studio Fixes
🛠 What's Fixed in WezTerm Studio v1.4.2
A bug-fix release focused on keeping your wezterm.lua, backups and settings intact, plus more reliable session snapshots, status bar and Web Studio.
🧩 init, uninstall & Validation
- The hook always lands in the right place.
inittargets the file's final top-levelreturn. In areturn { ... }config, areturn xinside a helper function could receive the hook before:initreported success, but your config was never themed. - Line endings are preserved. A CRLF
wezterm.luastays CRLF throughinit,uninstalland every automatic rollback, so a failedinitleaves the file byte-identical. - Existing errors in your own config no longer block changes. If
wezterm.luaalready logged an unrelatedERROR, every theme change used to fail with "WezTerm rejected the configuration". Now a change is rolled back only if it adds new errors.wezterm-theme doctorstill reports the existing ones. - Corrupt state is reported, not replaced. A
wezterm_theme.jsonthat fails to parse is never silently reset to defaults, and invalid hand-edited values are ignored instead of breaking theme generation.
💾 Backups & Restore
- Restoring the oldest
pre_restorebackup works. It used to delete that same backup halfway through the restore, losing its appearance settings while still reporting success. - No backup is created for a change WezTerm rejects.
--restore Npicks the backup listed asN: the list is ordered by the time in the file name.- Clock changes can't delete your newest backup. After a daylight-saving fall-back or a timezone change, new backups still sort as the newest.
🎛 Appearance & Presets
- Resetting a setting works the same way in standalone and loader modes. This covers
Default,Auto,off,noneand empty values, includingcursor_style,audible_bellandwindow_decorations. - Higher FPS limit:
max_fpsandanimation_fpsaccept up to 255, WezTerm's own limit, in the CLI, Web Studio, presets and the generated Lua. - Presets apply more of what you exported:
- An invalid value now skips only that setting, and the message names it.
- In standalone mode, settings missing from the preset go back to their defaults, so the result matches the exported look.
- In loader mode only the preset's own settings change, because
settings.jsonalso holds your own loader configuration.
- Exporting to pipes works:
wezterm-theme export /dev/stdoutandexport >(jq .)no longer crash.
📊 Status Bar, Command Palette & Sessions
- Git branch without a subprocess: the branch is read straight from
.git/HEAD.gitonly runs for worktrees, submodules, detached or reftable repositories, and very deep directories. $EDITORwith arguments works, for exampleEDITOR='code --wait'oremacsclient -t, when you clickfile:linelinks.- "Toggle Programming Ligatures" switches ligatures on or off with a single press and keeps your other font features (
zero,ss01, …). - Session snapshots:
- Saving is atomic.
- Restoring twice no longer duplicates tabs, and only missing tabs are reopened in open workspaces.
- Snapshots work with
~/.wezterm.luatoo. - Restore still finds the snapshot when your dotfiles are synced to a machine with a different home directory.
- Command palette actions call the installed
wezterm-themedirectly, so they keep working when WezTerm runs from the GUI without your venv onPATH, and after a Homebrew upgrade. - OLED black now also applies in OS Light mode when no light color scheme is set.
- Visual fixes: Powerline separators take the next tab's SSH/PROD danger tint, and workspace names with accents or emoji are truncated cleanly.
- The Software-renderer CPU warning detects
front_end = 'Software'in yourwezterm.luaagain.
🌐 Web Studio
--host localhostlistens on IPv4 again: it could bind only::1and fail where IPv6 is disabled. IPv6 addresses such as--host ::1are supported.- Windows: a second Studio can no longer grab port
7777while one is already running, which caused intermittent "invalid session token" errors. - Invalid theme IDs (for example
1e400or10.9) return a clear400error. - Clearer error handling in the UI:
- Network, clipboard and server errors are shown as status messages instead of failing silently.
- Performance warnings are refreshed after each change.
- Font names are safely escaped.
⌨ CLI
doctorsays when validation was skipped because noweztermbinary was found.- The status summary shows animation FPS, Wayland, workspace switcher and session manager.
- Input like
-s ²or--restore ³gives an error instead of a traceback. python -m wezterm_themenow returns a non-zero exit code on errors.- Faster status checks on Flatpak installs.
⚠ Upgrade Notes
- Apply any theme or setting once after upgrading (e.g.
wezterm-theme -s <your theme>or any change in the Web Studio). That rebuilds your module with the status bar, command palette, editor and session snapshot fixes. - If
wezterm.luaalready logs errors that have nothing to do with wezterm-theme, theme changes are now applied anyway. Runwezterm-theme doctorto see those errors.
📦 Upgrade / Install
pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-themeFull Changelog: v1.4.1...v1.4.2