Skip to content

v1.4.2 — Safer init/restore & Backups, Reliable Session Snapshots, Status Bar & Web Studio Fixes

Choose a tag to compare

@mvsoares mvsoares released this 21 Nov 18:50

🛠 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. init targets the file's final top-level return. In a return { ... } config, a return x inside a helper function could receive the hook before: init reported success, but your config was never themed.
  • Line endings are preserved. A CRLF wezterm.lua stays CRLF through init, uninstall and every automatic rollback, so a failed init leaves the file byte-identical.
  • Existing errors in your own config no longer block changes. If wezterm.lua already logged an unrelated ERROR, 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 doctor still reports the existing ones.
  • Corrupt state is reported, not replaced. A wezterm_theme.json that 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_restore backup 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 N picks the backup listed as N: 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, none and empty values, including cursor_style, audible_bell and window_decorations.
  • Higher FPS limit: max_fps and animation_fps accept 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.json also holds your own loader configuration.
  • Exporting to pipes works: wezterm-theme export /dev/stdout and export >(jq .) no longer crash.

📊 Status Bar, Command Palette & Sessions

  • Git branch without a subprocess: the branch is read straight from .git/HEAD. git only runs for worktrees, submodules, detached or reftable repositories, and very deep directories.
  • $EDITOR with arguments works, for example EDITOR='code --wait' or emacsclient -t, when you click file:line links.
  • "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.lua too.
    • 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-theme directly, so they keep working when WezTerm runs from the GUI without your venv on PATH, 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 your wezterm.lua again.

🌐 Web Studio

  • --host localhost listens on IPv4 again: it could bind only ::1 and fail where IPv6 is disabled. IPv6 addresses such as --host ::1 are supported.
  • Windows: a second Studio can no longer grab port 7777 while one is already running, which caused intermittent "invalid session token" errors.
  • Invalid theme IDs (for example 1e400 or 10.9) return a clear 400 error.
  • 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

  • doctor says when validation was skipped because no wezterm binary 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_theme now 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.lua already logs errors that have nothing to do with wezterm-theme, theme changes are now applied anyway. Run wezterm-theme doctor to see those errors.

📦 Upgrade / Install

pipx upgrade wezterm-theme
# or: uv tool upgrade wezterm-theme
# or: pip install --upgrade --user wezterm-theme

Full Changelog: v1.4.1...v1.4.2