Skip to content

Fix INTERNAL iOS Ghostty startup crash - #10279

Open
azooz2003-bit wants to merge 1 commit into
mainfrom
fix-internal-crash-2026-08-02-claude
Open

Fix INTERNAL iOS Ghostty startup crash#10279
azooz2003-bit wants to merge 1 commit into
mainfrom
fix-internal-crash-2026-08-02-claude

Conversation

@azooz2003-bit

Copy link
Copy Markdown
Collaborator

Fixes the cmux INTERNAL TestFlight crash from August 2, 2026, where build 20260801151612 crashed in ghostty_init + 1388 while the main thread was in setlocale from GhosttyRuntime.init.

Bumps the ghostty submodule to f0f8273b7 (manaflow-ai/ghostty@f0f8273, already on fork main), which moves ensureLocale() and syncEnviron() in src/global.zig before crash-reporting init. Darwin's setlocale mutates global libc state; Sentry's crash-reporting init starts a background thread, and during embedded (iOS) startup that thread raced the process-wide locale mutation. Ordering locale setup before any Ghostty-owned background thread starts removes the race.

This is a principled fix (initialization ordering, not a workaround). docs/ghostty-fork.md is updated with the fork-change entry and a conflict note to preserve the ordering in future global.init merges.

🤖 Generated with Claude Code

@cursor

cursor Bot commented Aug 17, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5eb8b16c-eb32-4a39-bdb4-b1808c4a2c4b

📥 Commits

Reviewing files that changed from the base of the PR and between 7f9af0f and e2123c2.

📒 Files selected for processing (2)
  • docs/ghostty-fork.md
  • ghostty
 ______________________________
< I'm not mad, just debugging. >
 ------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch fix-internal-crash-2026-08-02-claude
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-internal-crash-2026-08-02-claude

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant