Revert PR 8848 before Ghostty lag fix
Reverts Austin Wang’s https://github.com/manaflow-ai/cmux/pull/8848 exactly.
The merged branch pins superseded Ghostty 50ad1963d, includes the owned-userdata API removed by current Ghostty fork main through https://github.com/manaflow-ai/ghostty/pull/146, and adds a separate terminal shortcut-routing fast path that is not required by the IOSurface frame-reuse root cause.
This revert restores the exact tree from main immediately before PR 8848. The clean replacement is Lawrence Chen’s https://github.com/manaflow-ai/cmux/pull/8889, which retains Austin’s valid frame-slot rotation from https://github.com/manaflow-ai/ghostty/pull/145 and will carry only the required iOS renderer continuation handler.
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Reverts the typing‑lag investigation changes by removing the terminal typing shortcut fast path and the Ghostty owned‑userdata integration. Restores the pre-change ghostty integration and updates the iOS surface bridge to the borrowed‑userdata model.
-
Refactors
- Remove
GHOSTTY_ACTION_RENDERhook and related tests; external render continuation handled by the renderer as before. - Switch back to
ghostty_surface_newwith borrowed userdata; retain the bridge during surface free to prevent use‑after‑free. - Remove terminal typing shortcut fast path and its tests; keep standard shortcut routing.
- Small cleanups: inline env flag read, simplify a modal result switch, fix minor test imports.
- Remove
-
Dependencies
- Pin
ghosttyto current fork main and updateGhosttyKitchecksum and fork docs.
- Pin
Summary by CodeRabbit
-
Bug Fixes
- Improved terminal surface cleanup and rendering recovery to prevent lifecycle-related issues during surface replacement or disposal.
- Updated keyboard shortcut processing for more consistent event and configured-shortcut handling.
-
Documentation
- Updated Ghostty integration documentation and pinned runtime version information.
-
Tests
- Removed outdated tests for legacy terminal typing and rendering behaviors.
- Updated test imports and project test configuration.