Explore libghostty-rs as the core grid implementation in warp
Pre-submit Checks
- [x] I have searched Warp feature requests and there are no duplicates
- [x] I have searched Warp docs and my feature is not there
Describe the solution you'd like?
Explore whether we can replace Warp's core Alacritty terminal grid integration with libghostty.
Is your feature request related to a problem? Please describe.
No response
Additional context
No response
Operating system (OS)
Select an OS
How important is this feature to you?
1 (Not too important)
Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1
None
@zachlloyd
You can view the triage session on Warp.
Here's what I found while triaging this issue:
This is a broad terminal-core exploration request rather than a directly reproducible bug or scoped feature. More detail on the motivation and desired outcome would help maintainers decide whether to treat it as a spec, investigation spike, or lower-priority idea.
I have a few follow-up questions before I can narrow this down:
- What specific outcome should replacing Warp's terminal grid with libghostty-rs achieve for you?
- Is there a concrete terminal behavior, app, or workload where Warp's current grid falls short compared with Ghostty or libghostty?
Reply in-thread with those details and the triage workflow will automatically re-evaluate the issue and update the diagnosis, labels, and next steps.
Maintainer details
I concluded that enhancement request to evaluate replacing Warp's current terminal grid/VT handling with libghostty-rs, but it lacks motivation and success criteria for scoping..
Initial triage
This is best classified as an enhancement / architecture exploration request for the terminal core. The report proposes evaluating libghostty-rs as a replacement for Warp's current grid/VT integration, but it does not describe the user-visible problem, target workload, or success criteria.
Relevant code context:
app/src/terminal/model/ansi/mod.rsowns the PTY-output parsing path and delegates parsed terminal actions through Warp's handler abstraction.app/src/terminal/model/grid/grid_handler.rs,grid_storage.rs, andresize.rsimplement Warp-specific terminal state, scrollback/grid storage, resizing/reflow, selection/link/image-related behavior, and related terminal semantics.crates/warp_terminal/src/model/grid/cell.rsandrow.rsdefine shared cell/row primitives used by the app-level grid.app/src/terminal/ref_tests/mod.rsreplays existingalacritty.recordingfixtures against Warp'sGridStorage, so any backend replacement would need substantial conformance/regression coverage.
External context from libghostty-rs / libghostty-vt suggests it provides terminal state, render-state, key/mouse encoding, scrollback, line wrapping, and resize/reflow APIs, but the current API is young and explicitly unstable. It also introduces FFI/build/runtime constraints such as Zig-based builds and single-threaded Rust handle usage, so this is more appropriate as a technical spike/spec than direct implementation.
Reproducibility is unknown because there is no behavioral reproduction path; this is not currently tied to a concrete bug or workflow.
Follow-up from the reporter would help determine whether the intended goal is performance, compatibility, Unicode/rendering correctness, maintainability, or another concrete outcome.
Question reasoning
- What specific outcome should replacing Warp's terminal grid with libghostty-rs achieve for you? — The issue proposes an implementation direction but not the underlying goal, which is needed to prioritize and scope the request.
- Is there a concrete terminal behavior, app, or workload where Warp's current grid falls short compared with Ghostty or libghostty? — A specific scenario would let maintainers evaluate the value of replacement and design conformance tests; it is not derivable from the current report.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
@oz-agent Libghostty is a better/faster api, and Mitchell Hashimoto himself has said if there is any shortcomings then he will fix it, mitchell is the creator of libghostty, this is a plus, and there is no reason to not make the terminal faster and better right oz?
@oz-agent mind answering @Tom-De-Santa-FOSS question?
@zachlloyd
I ran into an unexpected error while working on this. You can view the workflow run for more details.
I'm drafting an inline response to this comment. This issue is already triaged, so I'll reply without changing labels, the issue body, or assignees.
You can follow along in the session on Warp.
@Tom-De-Santa-FOSS It may be worth exploring, but I would not frame this as “there is no reason not to” yet.
From the current codebase, Warp’s terminal core is not just a replaceable Alacritty grid wrapper. The terminal path includes a Warp-forked vte parser feeding a custom Handler, plus Warp-specific grid/block behavior for scrollback, blocks, selection/find/link detection, prompt markers, shell hooks, tmux control mode, Kitty/iTerm images, ConPTY reset checks, resize/reflow behavior, rendering, serialization, and session sharing. Replacing that with libghostty-vt would likely be a substantial architecture migration, not a dependency swap.
libghostty-vt / libghostty-rs does look promising: it exposes terminal state, render snapshots, key/mouse encoding, scrollback, wrapping, resize/reflow, and related APIs. However, the public Rust crate is very new, depends on building Ghostty’s Zig-based library, and currently advertises a newer Rust MSRV than this repo’s checked-in toolchain. The upstream C API also documents itself as still in development, so API stability and build/release implications need to be evaluated before Warp could depend on it.
What would move this issue forward is a focused research spike, not implementation yet:
- build a small prototype behind an experiment/feature flag or standalone harness;
- benchmark representative Warp workloads against the current terminal stack;
- make a feature-parity matrix for Warp-specific behavior listed above;
- verify macOS/Linux/Windows build, packaging, MSRV, licensing, and API-stability constraints;
- identify whether integration should replace parsing, grid storage, render snapshots, input encoding, or only a narrower layer.
Until that exists, I’d keep this as needs-info / exploratory and not mark it ready-to-spec or ready-to-implement.
Powered by Oz
Libghostty is a better/faster api
I'm not comfortable making generalized statements like this.
Libghostty is in the realm of fast (highly competitive with Alacritty, within noise levels of difference). The real difference maker is going to be in the modern features that libghostty will bring for free to Warp such as Kitty images, keyboard, etc. (I think Warp already forked/patched some of that in over Alacritty though).
Ghostty as a project is much more open to adopting new terminal protocols and we have a good framework in place for doing so without impacting performance. For example we're adopting the still-draft Glyph protocol specification, but will leave it default-off for libghostty consumers until it stabilizes more. But at least consumers have the choice of consuming all these new protocols.
Anyways, I am happy to help. I think the most useful thing would be a gap analysis of what the Warp project needs from libghostty that we may not provide.
Hey Mitchell! We're definitely interested in doing such an analysis. We've made a lot of improvements to our core beyond the Alacritty base; we're sharing a post tomorrow on our blog with a high-level overview of the current state of Warp's terminal model. (And yeah, we've added support over the past year or so for things like Kitty + other image protocols and other modern feature sets.)
We'll regroup on our end once the dust settles a bit and figure out next steps here.
If there is anything on the rust side that needs to be implemented, I'm happy to help out!
Thank you all - we are chatting with Mitchell on the best path forward here and will circle back soon.
@zachlloyd
Thank you all — we’re talking with Mitchell about the best path forward and agree the most useful next step is a gap analysis of what Warp’s terminal model would need from libghostty.
I would not frame this as a blanket “no reason not to” or assume a guaranteed performance win without measurement. Warp has substantial terminal-model behavior layered on top of its current Alacritty-derived core, so any replacement would need to preserve Warp-specific behavior while validating compatibility, stability, and performance. We’ll circle back once there’s a clearer path.
Reasoning
Used response mode because #9250 is already triaged and the triggering context is a maintainer asking for a direct thread answer rather than a fresh lifecycle triage. Duplicate check enumerated 3,106 open non-PR issues via gh api --paginate; no existing open issue matched the specific requested capability of replacing Warp’s core grid with libghostty, though there are adjacent terminal-protocol/Alacritty issues such as #9522, #9159, #7470, #7789, #6210, and #4190. Code inspection shows Warp’s current terminal core is not a simple upstream crate dependency: app/src/terminal/model/grid/grid_handler.rs:1, app/src/terminal/model/grid/ansi_handler.rs:1, app/src/terminal/model/grid/storage.rs:1, crates/warp_terminal/src/model/grid/cell.rs:1, crates/warp_terminal/src/model/grid/row.rs:1, and app/src/terminal/model/grid/resize.rs:1 are Alacritty-adapted pieces; app/src/terminal/model/ansi/mod.rs:1 wraps vte::Parser and delegates into Warp’s Handler/Performer model; app/src/terminal/model/blockgrid.rs:31 and app/src/terminal/model/terminal_model.rs:36 show the grid is embedded in Warp’s block, alt-screen, selection, image, secret-obfuscation, sharing, and shell-integration layers. External context checked: libghostty-vt documentation describes a modern terminal-emulation library but warns the API is still in development and not stable; crates.io lists libghostty-vt 0.1.1 with !Send + !Sync handles and MSRV 1.93; the libghostty-rs repository currently builds bindings around libghostty-vt. Therefore the highest-confidence public answer is to avoid overclaiming speed/API superiority and say Warp is coordinating with Mitchell around a gap analysis. No label changes are emitted in response mode.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
no progress on it ?