Skip to content

copy_title_to_clipboard copies original terminal title instead of manually renamed title #10345

@pluiedev

Description

@pluiedev

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

  1. Open Ghostty
  2. Open Command Palette (Cmd+Shift+P or configured keybinding)
  3. Search and select "Change Tab Title"
  4. Enter a custom name like "My Custom Tab" and click OK
  5. Open Command Palette again
  6. Search and select "Copy Title to Clipboard"
  7. Paste from clipboard (Cmd+V)
  8. 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 Background

Additional 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gtkIssues exclusive to GTK which are not OS-specificos/macos

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions