Skip to content

Ghostty cask started attempting to quit itself, and the updater process, on update. #283947

Description

@Nek-12

Verification

Description of issue

In a recent regression started about ~1 mo ago, ghostty@tip cask started trying to quit Ghostty during the update process brew upgrade -g. Do not do that please because the command tries to kill the terminal emulator and the shell it is currently running in, subsequently, committing suicide. Ghostty helpfully, but repeatedly prompts "Close Ghostty? All shells will be stopped". Not only is that harmful as I can have dozens of important shells running while updating, but it also can theoretically never finish successfully or corrupt the filesystem state due to the process killing itself. Obviously, I run brew upgrade -g from Ghostty as my main terminal emulator.

This is a regression, not a fresh bug, so it needs to be reverted. Haven't checked the regular non-@tip formula.

Command that failed

brew upgrade -g

Output of command with --verbose --debug

Does not actually fail, so nothing to put here. The consequence is ~5 repeated, incorrect prompts to close ghostty during the upgrade.

Output of brew doctor and brew config

Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
qbittorrent

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.

You should find replacements for the following formulae:
  skhd
  goplaces
  yabai
  sentry-cli

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built.

Run `brew link` on these:
  goplaces

Warning: You are using macOS 27.
We do not provide support for this pre-release version.

Warning: The following taps are not trusted:
  asmvik/formulae

Homebrew is currently ignoring formulae, casks and commands from these taps because tap trust is required.

Untap them with:
  brew untap asmvik/formulae
Trust specific formulae, casks and commands with:
  brew trust --formula <user>/<tap>/<formula>
  brew trust --cask <user>/<tap>/<cask>
  brew trust --command <user>/<tap>/<command>
Whole-tap trust is broader and includes all current and future formulae,
casks and commands from the listed taps. Trust whole taps with:
  brew trust asmvik/formulae
For more information, see:
  https://docs.brew.sh/Tap-Trust
This is a Tier 2 configuration:
  https://docs.brew.sh/Support-Tiers#tier-2
You can report issues with Tier 2 configurations to Homebrew/* repositories!

---
HOMEBREW_VERSION: 6.0.20-38-g4710c52
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4710c526b376a82f3472d2d2d39206cbb90ac1c2
Last commit: 87 minutes ago
Branch: main
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 4.0.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.6/bin/ruby
CPU: 18-core 64-bit arm_sotra
Clang: 21.0.0 build 2100
Git: 2.55.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 27.0-arm64
CLT: 27.0.0.0.1787197235
Xcode: 27.0
Metal Toolchain: N/A
Rosetta 2: false

Output of brew tap

asmvik/formulae
charmbracelet/tap
coollabsio/coolify-cli
gromgit/fuse
jorgelbg/tap
jundot/omlx
openclaw/tap
oven-sh/bun
respawn-llc/tap
steipete/tap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions