Skip to content

Commit 30aae42

Browse files
committed
restore: ghostty.h bridge header — CI contract, not dead code
scripts/ensure-ghosttykit.sh validates that the root ghostty.h re-exports ghostty/include/ghostty.h and fails the GhosttyKit source-build fallback without it (compat-tests and ui-regressions both went red when the prebuilt xcframework download 404'd and the fallback ran). No Swift/C file includes it, but the build system treats it as a contract. Reclassified as Deferred: removing it means also removing the guard, which is a maintainer call.
1 parent 2d3d048 commit 30aae42

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

GhosttyTabs.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@
255255
A5001544 /* TerminalImageTransfer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalImageTransfer.swift; sourceTree = "<group>"; };
256256
A5001545 /* TerminalSSHSessionDetector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalSSHSessionDetector.swift; sourceTree = "<group>"; };
257257
A5001016 /* GhosttyKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = GhosttyKit.xcframework; sourceTree = "<group>"; };
258+
A5001017 /* ghostty.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ghostty.h; sourceTree = "<group>"; };
258259
A5001018 /* programa-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "programa-Bridging-Header.h"; sourceTree = "<group>"; };
259260
A5001019 /* TerminalController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TerminalController.swift; sourceTree = "<group>"; };
260261
A5FF0004 /* TerminalController+BrowserAutomation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TerminalController+BrowserAutomation.swift"; sourceTree = "<group>"; };
@@ -489,6 +490,7 @@
489490
A5001101 /* Assets.xcassets */,
490491
A5001016 /* GhosttyKit.xcframework */,
491492
A5001018 /* programa-Bridging-Header.h */,
493+
A5001017 /* ghostty.h */,
492494
3196C9C2D01F054C1D3385DD /* programaUITests */,
493495
F1000003A1B2C3D4E5F60718 /* programaTests */,
494496
A5001042 /* Products */,

ghostty.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef CMUX_GHOSTTY_BRIDGE_HEADER_H
2+
#define CMUX_GHOSTTY_BRIDGE_HEADER_H
3+
4+
// Keep the Swift bridge on Ghostty's canonical C API header so Xcode and the
5+
// bundled GhosttyKit stay ABI-aligned across submodule upgrades.
6+
#include "ghostty/include/ghostty.h"
7+
8+
#endif

0 commit comments

Comments
 (0)