zed icon indicating copy to clipboard operation
zed copied to clipboard

File > Close Project intermittently does not close the project

Open saberoueslati opened this issue 4 months ago • 3 comments

Reproduction steps

  1. Open Zed.
  2. Open a project.
  3. Open the File menu.
  4. Select “Close Project”.
  5. Repeat these steps until the issue occurs.

The issue is intermittent and does not happen every time. When it occurs, selecting “Close Project” appears to do nothing, and the project remains open.

Video of the bug happening

https://github.com/user-attachments/assets/c5722495-b823-460e-8b7b-abdfb9c7668a

Current vs. Expected behavior

Current behavior:

Sometimes, selecting File > Close Project has no effect. The currently open project remains open, with no visible error or notification.

Expected behavior:

Selecting File > Close Project should always close the current project.

Zed version and system specs

Zed: v1.13.0+dev.0c51c7fd2481859e9da5c490ef8e41ddbcf1a341 (Zed Dev 0c51c7fd2481859e9da5c490ef8e41ddbcf1a341) (Taylor's Version) OS: Linux X11 ubuntu 24.04 Memory: 31.1 GiB Architecture: x86_64 GPU: Intel(R) Graphics (RPL-P) || Intel open-source Mesa driver || Mesa 25.2.8-0ubuntu0.24.04.2

The issue happens to me also in the stable sometimes though less frequently for some reason

Attach Zed log file

Zed.log
2026-07-19T23:12:57+01:00 INFO  [zed] ========== starting zed version 1.13.0+dev.0c51c7fd2481859e9da5c490ef8e41ddbcf1a341, sha 0c51c7f ==========
2026-07-19T23:12:57+01:00 INFO  [gpui_linux::linux::x11::client] XInput version: 2.4, gesture support: true
2026-07-19T23:12:57+01:00 INFO  [gpui_linux::linux::x11::client] x11: compositor present: true, gtk_frame_extents_supported: true
2026-07-19T23:12:57+01:00 INFO  [gpui_linux::linux::x11::client] Using scale factor from Xft.dpi: 1.25
2026-07-19T23:12:57+01:00 INFO  [gpui_linux::linux::platform] Compositor GPU hint: vendor=0x8086, device=0xa7a8 (from dev 226:1)
2026-07-19T23:12:57+01:00 INFO  [zed_xim::x11rb] Try connect ibus
2026-07-19T23:12:57+01:00 WARN  [fs::fs_watcher] OS file watch limit reached while watching "/home/saber/.config/zed/settings.json"; skipping new native file watcher registrations for 5 seconds
2026-07-19T23:12:57+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.config/zed/settings.json" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [zed::reliability::hang_detection] debug build, only reporting hangs longer then 5s
2026-07-19T23:12:58+01:00 WARN  [zed::reliability] Minidump endpoint not set
2026-07-19T23:12:58+01:00 INFO  [zed::reliability] memory usage: resident 207 MiB, virtual 3030 MiB
2026-07-19T23:12:58+01:00 INFO  [extension_host] extensions updated. loading 1, reloading 0, unloading 0
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.local/share/zed/extensions/installed" was skipped; retrying in background
2026-07-19T23:12:58+01:00 INFO  [prompt_store::rules_to_skills_migration] Rules-to-skills migration already marked done; skipping startup migration
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/assets" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/assets/prompts" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src" was skipped; retrying in background
2026-07-19T23:12:58+01:00 INFO  [gpui_linux::linux::platform] activate is not implemented on Linux, ignoring the call
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/bash" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/diff" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/cpp" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/gowork" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/jsdoc" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/go" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/typescript" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/markdown-inline" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/markdown" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/rust" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/javascript" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/zed-keybind-context" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/yaml" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/regex" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/c" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/gomod" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/jsonc" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/json" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/tsx" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/gitcommit" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/python" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/coding/zed/crates/grammars/src/css" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.gitconfig" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.config/zed/themes" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.gitconfig" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/home/saber/.config/git/ignore" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro/.git" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro/.git/refs" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro/.git/refs/tags" was skipped; retrying in background
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro/.git/refs/heads" was skipped; retrying in background
2026-07-19T23:12:58+01:00 INFO  [gpui_linux::linux::x11::window] Using Visual { id: 549, colormap: 0, depth: 32 }
2026-07-19T23:12:58+01:00 INFO  [gpui_linux::linux::x11::window] Creating colormap 71303170
2026-07-19T23:12:58+01:00 WARN  [fs::fs_watcher] watch registration for "/tmp/zed-issue-18534-repro/output" was skipped; retrying in background
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context] Found 4 GPU adapter(s):
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context]   - Intel(R) Graphics (RPL-P) (vendor=0x8086, device=0xa7a8, backend=Vulkan, type=IntegratedGpu)
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context]   - NVIDIA GeForce RTX 4060 Laptop GPU (vendor=0x10de, device=0x28a0, backend=Vulkan, type=DiscreteGpu)
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context]   - Mesa Intel(R) Graphics (RPL-P) (vendor=0x8086, device=0x0000, backend=Gl, type=IntegratedGpu)
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context]   - llvmpipe (LLVM 20.1.2, 256 bits) (vendor=0x10005, device=0x0000, backend=Vulkan, type=Cpu)
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context] Testing adapter: Intel(R) Graphics (RPL-P) (Vulkan)...
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context] Selected GPU (passed configuration test): Intel(R) Graphics (RPL-P) (Vulkan)
2026-07-19T23:12:58+01:00 INFO  [gpui_wgpu::wgpu_context] Selected GPU adapter: "Intel(R) Graphics (RPL-P)" (Vulkan)
2026-07-19T23:12:58+01:00 INFO  [workspace] Rendered first frame
2026-07-19T23:12:58+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) Graphics (RPL-P)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 25.2.8-0ubuntu0.24.04.2" }
2026-07-19T23:12:58+01:00 INFO  [gpui_linux::linux::x11::client] Refreshing every 6ms
2026-07-19T23:12:58+01:00 INFO  [zed_xim::x11rb] XConnected server on 25165887, transport version: 0.0, TRANSPORT_MAX: 20
2026-07-19T23:12:58+01:00 ERROR [agent] Failed to authenticate provider: ChatGPT Subscription: Sign in with your ChatGPT Plus or Pro subscription to use this provider.
2026-07-19T23:12:58+01:00 INFO  [git::repository] opening git repository at "/tmp/zed-issue-18534-repro/.git" using git binary "/usr/bin/git"
2026-07-19T23:12:59+01:00 INFO  [node_runtime] using Node.js found on PATH: SystemNodeRuntime { node: "/home/saber/.nvm/versions/node/v24.12.0/bin/node", npm: "/home/saber/.nvm/versions/node/v24.12.0/bin/npm", scratch_dir: "/home/saber/.local/share/zed/node" }
2026-07-19T23:12:59+01:00 INFO  [agent_client_protocol::util] connection; name="zed"
2026-07-19T23:13:03+01:00 WARN  [agent_servers::acp] Received session notification for unknown session: SessionId("db9d12af-d008-45ec-8448-2ad27e944a7b")
2026-07-19T23:13:03+01:00 WARN  [agent_servers::acp] Received session notification for unknown session: SessionId("db9d12af-d008-45ec-8448-2ad27e944a7b")
2026-07-19T23:13:03+01:00 WARN  [fs::fs_watcher] OS file watch limit reached while watching "/home/saber/.config/zed/settings.json"; skipping new native file watcher registrations for 5 seconds
2026-07-19T23:13:28+01:00 INFO  [zed::reliability] memory usage: resident 517 MiB (+309 MiB), virtual 14475 MiB
2026-07-19T23:16:32+01:00 ERROR [gpui::app] timed out waiting on app_will_quit
2026-07-19T23:16:32+01:00 WARN  [gpui_linux::linux::x11::clipboard] Could not hand the clipboard contents over to the clipboard manager. The request timed out.

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

saberoueslati avatar Jul 19 '26 22:07 saberoueslati

Thank you for the report! Reproduced with your instructions on Linux.

miguelraz avatar Jul 20 '26 22:07 miguelraz

Zed development moves fast and a significant number of bugs become outdated. If you can reproduce this bug on the latest stable Zed, please let us know by leaving a comment with the Zed version, it helps us focus on the right issues. If the bug doesn't appear for you anymore, feel free to close the issue yourself; otherwise, the bot will close it in a couple of weeks. But even after it's closed by the bot, you can leave a comment with the version where the bug is reproducible and we'll reopen the issue. (This bot will only ask about this issue once) Thanks!

github-actions[bot] avatar Oct 23 '26 02:10 github-actions[bot]

This issue was closed due to inactivity. If you're still experiencing this problem, please leave a comment with your Zed version so that we can reopen the issue.

github-actions[bot] avatar Nov 20 '26 02:11 github-actions[bot]