-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Discussed in #10344
Originally posted by syy January 16, 2026
Issue Description
When using copy_title_to_clipboard action after renaming a tab with "Change Tab Title..." on macOS, the original terminal title is copied instead of the user-set renamed title.
The tab title renaming feature was added in February 2025 (#4217), and copy_title_to_clipboard was added in July 2025 (#7833). However, the copy action doesn't check for manually renamed titles. It only copies the original terminal title.
Expected Behavior
When I rename a tab to "My Custom Tab" and then use copy_title_to_clipboard, the clipboard should contain "My Custom Tab".
Actual Behavior
The clipboard contains the original terminal title (e.g., shell process name or current directory) instead of the renamed title.
Reproduction Steps
- Open Ghostty
- Open Command Palette (Cmd+Shift+P or configured keybinding)
- Search and select "Change Tab Title"
- Enter a custom name like "My Custom Tab" and click OK
- Open Command Palette again
- Search and select "Copy Title to Clipboard"
- Paste from clipboard (Cmd+V)
- Observe: clipboard contains the original terminal title
Ghostty Logs
No response
Ghostty Version
Ghostty 1.2.3
Version
- version: 1.2.3
- channel: stable
Build Config
- Zig version : 0.14.1
- build mode : builtin.OptimizeMode.ReleaseFast
- app runtime : apprt.Runtime.none
- font engine : font.main.Backend.coretext
- renderer : renderer.generic.Renderer(renderer.Metal)
- libxev : kqueue
OS Version Information
macOS 26.2 (Build 25C56)
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
bold-color = bright
shell-integration = zsh
split-divider-color = #282c34
theme = iTerm2 Dark BackgroundAdditional Relevant Configuration
No response
I acknowledge that:
- I have reviewed the FAQ and confirm that my issue is NOT among them.
- I have searched the Ghostty repository (both open and closed Discussions and Issues) and confirm this is not a duplicate of an existing issue or discussion.
- I have checked the "Preview" tab on all text fields to ensure that everything looks right, and have wrapped all configuration and code in code blocks with a group of three backticks (
```) on separate lines.
Note: We would likely need to move our surface/tab title override logic into Ghostty core to support this properly. Implementing this logic separately for both macOS and GTK is not only tedious but could also be quite error-prone.