claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Ghostty terminal crashes when dropping folder from Nautilus into Claude Code on Linux

Open kairin opened this issue 2 months ago • 1 comments

Bug Description

Ghostty terminal window immediately closes (crashes) when drag-and-dropping a folder from Nautilus (GNOME Files) into a running Claude Code session.

Key Finding: Dropping folders into a regular shell (bash/zsh) in Ghostty works fine. The crash only occurs when Claude Code is actively running in the terminal.

Environment

  • Claude Code version: 2.0.55
  • Ghostty version: 1.3.0-main+9baf37a9b
  • Platform: Linux (Ubuntu 25.10 Questing)
  • Kernel: 6.17.0-7-generic
  • GTK version: 4.20.1 (build and runtime)
  • libadwaita: 1.8.0
  • File manager: Nautilus (GNOME Files)
  • Display server: Wayland (libwayland enabled)

Steps to Reproduce

  1. Open Ghostty terminal
  2. Start Claude Code: claude
  3. Open Nautilus file manager
  4. Drag any folder from Nautilus
  5. Drop it into the Ghostty window running Claude Code

Expected behavior: Folder path is inserted into the prompt input

Actual behavior: Ghostty window closes immediately (entire terminal crashes)

Additional Context

  • No crash logs are generated in ~/.local/state/ghostty/crash/
  • The crash is instant - no error message displayed
  • Other Ghostty tabs (if any) also close since the whole window crashes
  • Dropping the same folder into a plain bash/zsh prompt in Ghostty works correctly (path is pasted)
  • This suggests Claude Code's input handling triggers the crash, not Ghostty's drop target

Potentially Related Issues

  • #6482 - File drag-and-drop functionality broken
  • #5939 - Ghostty Terminal Freezes with Claude Code
  • #8363 - VSCode drag-and-drop not working

Workaround

Currently using copy-paste or /add command instead of drag-and-drop.


🤖 Generated with Claude Code

kairin avatar Nov 30 '25 12:11 kairin