Skip to content

Restoring Unsaved Session No Longer Works #52038

Description

@fuzenco

Reproduction steps

  1. Have a window open with code/text.
  2. Close said window without saving first.

Current vs. Expected behavior

A few weeks ago, restoring windows worked. I happened to restart my computer (due to a macOS update) and my unsaved file was gone. I expected that upon starting Zed, that my file and its content would be restored. It wasn’t.

Testing, by creating new files, and restarting shows this is broken now. This is the error shown on restart:

Image

My current prefs have Zed set to restore:
Restore Unsaved Buffers = Enabled
Restore On Startup = Last Session

Zed version and system specs

Zed: v0.229.0+preview.204.433d9299a3fad19eeaa023d6a9d33f551797f56e (Zed Preview)
OS: macOS 26.3.1 (a) (Build 25D771280a)
Memory: 36 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

2026-03-20T13:35:30-04:00 INFO  [zed] ========== starting zed version 0.228.0+preview.201.7d41a5350a09e4e0ef25194b99e5a3f279bcc230, sha 7d41a53 ==========
2026-03-20T13:35:30-04:00 INFO  [crashes] crash signal handlers installed
2026-03-20T13:35:30-04:00 INFO  [crashes] spawning crash handler process
2026-03-20T13:35:30-04:00 INFO  [zed] Using git binary path: "/Applications/Zed Preview.app/Contents/MacOS/git"
2026-03-20T13:35:30-04:00 INFO  [crashes] connected to crash handler process after 100ms
2026-03-20T13:35:30-04:00 INFO  [crashes] crash handler registered
2026-03-20T13:35:30-04:00 INFO  [extension_host] extensions updated. loading 20, reloading 0, unloading 0
2026-03-20T13:35:30-04:00 ERROR [zed] Failed to restore workspace: Workspace WorkspaceId(1442) not found
2026-03-20T13:35:30-04:00 ERROR [zed] All workspace restorations failed. Opening fallback empty workspace.
2026-03-20T13:35:30-04:00 ERROR [crates/theme/src/registry.rs:225] expected value at line 1 column 1
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Exquisite Blue" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Exquisite Blue - II" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Exquisite Blue (Monokai)" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Exquisite Blue (Monokai) - II" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 INFO  [workspace] Rendered first frame
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Napalm Github x VSCode" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Norrsken Svalbard" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Norrsken Kiruna" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "Norrsken Reykjavík" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 WARN  [theme] Theme "ZedSpace Dark Theme" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:35:30-04:00 INFO  [client] set status on client 0: Authenticating
2026-03-20T13:35:30-04:00 INFO  [util] set environment variables from shell:/bin/zsh, path:/Users/hcabarcas/.rvm/gems/ruby-2.3.1/bin:/Users/hcabarcas/.rvm/gems/ruby-2.3.1@global/bin:/Users/hcabarcas/.rvm/rubies/ruby-2.3.1/bin:/Users/hcabarcas/.local/bin:/Users/hcabarcas/.tea/.local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/usr/local/bin:/Users/hcabarcas/.rvm/bin
2026-03-20T13:35:31-04:00 INFO  [client] set status on client 54655: Authenticated
2026-03-20T13:35:31-04:00 ERROR [crates/edit_prediction/src/edit_prediction.rs:851] Failed to fetch experiments: 403
Body: Currently staff only
2026-03-20T13:36:14-04:00 INFO  [auto_update] Auto Update: checking for updates
2026-03-20T13:37:00-04:00 INFO  [auto_update] downloaded update. path:"/var/folders/4t/rd7nnvdj1czctz1544hj1wn40000gp/T/zed-auto-update5bIJ0W/Zed.dmg"
2026-03-20T13:37:11-04:00 INFO  [auto_update] Successfully unmounted the disk image
2026-03-20T13:37:47-04:00 INFO  [zed] ========== starting zed version 0.229.0+preview.204.433d9299a3fad19eeaa023d6a9d33f551797f56e, sha 433d929 ==========
2026-03-20T13:37:47-04:00 INFO  [crashes] crash signal handlers installed
2026-03-20T13:37:47-04:00 INFO  [crashes] spawning crash handler process
2026-03-20T13:37:47-04:00 INFO  [zed] Using git binary path: "/Applications/Zed Preview.app/Contents/MacOS/git"
2026-03-20T13:37:47-04:00 INFO  [crashes] connected to crash handler process after 100ms
2026-03-20T13:37:47-04:00 INFO  [crashes] crash handler registered
2026-03-20T13:37:47-04:00 INFO  [extension_host] extensions updated. loading 20, reloading 0, unloading 0
2026-03-20T13:37:47-04:00 INFO  [sqlez::migrations] Found 17 foreign key relationships to check
2026-03-20T13:37:47-04:00 ERROR [zed] Failed to restore workspace: Workspace WorkspaceId(1442) not found
2026-03-20T13:37:47-04:00 ERROR [zed] All workspace restorations failed. Opening fallback empty workspace.
2026-03-20T13:37:47-04:00 ERROR [crates/theme/src/registry.rs:225] expected value at line 1 column 1
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Exquisite Blue" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Exquisite Blue - II" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Exquisite Blue (Monokai)" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Exquisite Blue (Monokai) - II" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Napalm Github x VSCode" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Norrsken Svalbard" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Norrsken Kiruna" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "Norrsken Reykjavík" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 INFO  [workspace] Rendered first frame
2026-03-20T13:37:47-04:00 WARN  [theme] Theme "ZedSpace Dark Theme" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2026-03-20T13:37:47-04:00 INFO  [client] set status on client 0: Authenticating
2026-03-20T13:37:47-04:00 INFO  [util] set environment variables from shell:/bin/zsh, path:/Users/hcabarcas/.rvm/gems/ruby-2.3.1/bin:/Users/hcabarcas/.rvm/gems/ruby-2.3.1@global/bin:/Users/hcabarcas/.rvm/rubies/ruby-2.3.1/bin:/Users/hcabarcas/.local/bin:/Users/hcabarcas/.tea/.local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/usr/local/bin:/Users/hcabarcas/.rvm/bin
2026-03-20T13:37:47-04:00 INFO  [client] set status on client 54655: Authenticated
2026-03-20T13:37:48-04:00 ERROR [crates/edit_prediction/src/edit_prediction.rs:929] Failed to fetch experiments: 403
Body: Currently staff only

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:serializationRestoration of the editor state after a restartarea:settingsFeedback for preferences, configuration, etcmeta:regressionthis used to work and now doesn'treach:some usersBugs that happen for less than one-third of users, special configurations, rare circumstances, etcseverity:S2Average run-of-the-mill bugs; a feature is broken but only partiallystate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions