Skip to content

Zync v2.13.1

Choose a tag to compare

@github-actions github-actions released this 18 Apr 17:27

Release Notes — Zync v2.13.1

Release date: 2026-04-17


What's New

This release hardens terminal reload and session restore stability. It fixes edge cases where local terminals could briefly show stale exit state, restart incorrectly after a hard reload, or restore inconsistent saved session pointers.


Fixes

Terminal Reload Restore

Reloading the app (Ctrl+Shift+R) now restores terminals more reliably:

  • replacement terminal spawns carry the correct reconnect payload, including working directory context
  • stale PTY lifecycle events from older reload/restart attempts are ignored
  • the brief "Terminal session ended. Press Enter to restart." flash during reload recovery is removed

Session Snapshot Integrity

Saved session state is now stricter and more self-consistent:

  • activeTabId is no longer persisted when it points to a transient filtered tab
  • activeTerminalIds are filtered against the terminals that actually survive snapshot truncation

Technical Notes

  • PTY ready/output/exit events now carry a per-spawn generation so the frontend can ignore stale events from earlier terminal instances
  • terminal startup listeners are attached before terminal:create is invoked, preventing fast same-generation ready/output/exit events from being missed
  • local PTY reader startup is gated so the session is fully registered before the reader begins emitting lifecycle events
  • added focused regression coverage for session snapshot serialisation, tab filtering, terminal truncation, and active-terminal ID persistence

Files Modified

Frontend (React/TypeScript)

  • src/components/Terminal.tsx
  • src/store/sessionPersistence.ts
  • src/store/sessionSlice.ts
  • src/store/connectionSlice.ts
  • src/store/terminalSlice.ts
  • tests/sessionPersistence.test.mjs
  • tests/runAllAgentTests.mjs
  • tsconfig.agent-tests.json

Backend (Rust / Tauri)

  • src-tauri/src/commands.rs
  • src-tauri/src/pty.rs

Documentation

  • CHANGELOG.md
  • docs/SESSION_PERSISTENCE.md

Included Commits

  • Session persistence hardening + reload restore stabilisation: [d049d01]
  • Generation-based PTY event guarding for reload/restart flows: [9d9b8b7]

Upgrade

Zync will update automatically on next launch.
To update manually, download the latest build from the Releases page.


Full Changelog

See CHANGELOG.md for complete technical details.