Skip to content

unable to copy text from "Commit failed" modal #21785

Closed

Description

@peterdietz

The problem

I'm using GitHub Desktop to make a commit, our code runs the pre-commit hook, it fails, and the commit failed modal has a wall of text of the issue. I can select the text, but I'm unable to copy the text to my clipboard, so I can look up more information about my error.

Release version

3.5.6 (arm64)

Operating system

OSX Tahoe 26.3.1

Steps to reproduce the behavior

Image

Add file to any git repo at path: .git/hooks/pre-commit, with contents:

#!/bin/sh
echo "pre-commit: fail, try to copy me in Github Desktop"
exit 1

Try to make a git commit in Github Desktop, and then try to copy the text output to your clipboard. Not able to. Its helpful to be able to copy commit failures to your team to let them know your issues, and/or help you resolve.

Log files

No response

Screenshots

No response

Additional context

No response

Activity

  1. niik commented on Mar 12, 2026

    @niik
    Member

    Hey @peterdietz, this was fixed in #21728 and is currently on our beta channel, it will be included in the next production release. Feel free to download the beta and try it out today though!

  2. econsarfraz commented on Sep 11, 2026

    @econsarfraz

    It's Still Not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions