73 Commits
Author SHA1 Message Date
ddidderr 89203b9063 docs(rewrite): status update 2026-10-12 04:41:00 +02:00
ddidderr 79486601b5 docs(rewrite): status update 2026-10-12 04:09:18 +02:00
ddidderr 55989475fc docs(rewrite): status update 2026-10-12 03:58:50 +02:00
ddidderr be6d706ba5 test(core): add headless end-to-end tests and fix bugs they found
Adds crates/ghostty-core/tests/e2e_*.rs: 81 tests that drive the real
core Surface, termio, pty and child processes through a fake runtime
(recording apprt actions, in-memory clipboard) with a headless renderer
(ghostty-renderer/src/headless.rs). They cover keys (legacy, DECCKM,
kitty, modifyOtherKeys), keybinding actions and sequences, mouse
selection/reporting/scrolling/links, clipboard incl. OSC 52 and paste
safety, resize, focus, titles/pwd/bell/notifications/progress, child
exit, and IME preedit.

Fixes for issues found by the tests and by the Codex audit
(docs/rewrite/notes/review-core-codex.md, all 9 items):
- replacing a selection with copy-on-select panicked (stale tracked
  handles); global new_window no longer inherits a parent; the child
  environment uses the runtime's env wholesale so GTK's removals stick;
  Flatpak host resources path; locale recovery (ensureLocale) in
  apprt-gtk before GTK init and for CLI actions; failed screen-file
  opens propagate errors; OSC 52 base64 rules, CSI/ESC binding length
  limits and GHOSTTY_LOG parsing match Zig.
- Also includes V2's termio cleanups (tmux viewer wiring in the stream
  handler, Pty slave semantics docs, shared cgroup wait loop).

apprt-gtk gains a debug input replay hook (GHOSTTY_DEBUG_INPUT_SCRIPT)
exercising the real GTK key path. With it, the real app was verified on
Wayland: typing and output, new tab, splits, select-all/copy/paste and
font size all work (docs/rewrite/notes/verification-V1.md). Not yet
exercised at GTK level: mouse, real IM-context IME, clipboard dialogs.

Test Plan:
- cargo test --workspace (2983 passed)
- cargo test -p ghostty-core --tests (81 e2e tests)
2026-10-12 03:58:19 +02:00
ddidderr e2bd4c28da docs(rewrite): status update 2026-10-12 03:46:21 +02:00
ddidderr c4a4d1dcc3 docs(rewrite): status update 2026-10-12 02:08:22 +02:00
ddidderr aa1126e07d docs(rewrite): status update 2026-10-12 01:39:42 +02:00
ddidderr ac89525014 docs(rewrite): status update for phase 7 2026-10-12 01:35:00 +02:00
ddidderr 9c3eeeba50 docs(rewrite): status update 2026-10-11 23:10:31 +02:00
ddidderr 0c92dd0966 docs(rewrite): status after GTK port and terminal integration 2026-10-11 22:57:46 +02:00
ddidderr 72434a1255 docs(rewrite): status update 2026-10-11 22:52:28 +02:00
ddidderr 3742a131b8 docs(rewrite): status update 2026-10-11 22:50:42 +02:00
ddidderr f43c0cd00f docs(rewrite): record remaining PageList API requests 2026-10-11 22:41:26 +02:00
ddidderr e495ae72f1 docs(rewrite): status update 2026-10-11 22:40:10 +02:00
ddidderr ecf16f4a97 docs(rewrite): status update 2026-10-11 22:39:16 +02:00
ddidderr ab9c3fc9db docs(rewrite): status update 2026-10-11 22:28:40 +02:00
ddidderr 99d3ff9d41 docs(rewrite): status update 2026-10-11 22:26:45 +02:00
ddidderr 8e0a94dff2 docs(rewrite): status after cli port 2026-10-11 22:22:01 +02:00
ddidderr 5462bd8e3e docs(rewrite): status update 2026-10-11 22:13:47 +02:00
ddidderr 6792799fbe docs(rewrite): status update 2026-10-11 22:00:52 +02:00
ddidderr 5bacb4d90b docs(rewrite): update status after config port 2026-10-11 22:00:12 +02:00
ddidderr e724645057 docs(rewrite): track cross-crate integration TODOs and status 2026-10-11 21:54:18 +02:00
ddidderr 987f2957ad chore: scaffold Cargo workspace for the Ghostty rewrite
Start of the full Rust rewrite of Ghostty 1.3.1 (reference source in
../ghostty). Sets up a workspace whose crates mirror Ghostty's Zig modules
(vt, unicode, datastruct, os, input, config, terminal, font, renderer,
termio, core, apprt-gtk) so porting work can proceed in parallel per crate.

Also adds:
- docs/rewrite/{ARCHITECTURE,PLAN,STATUS,AGENT_GUIDE}.md: crate map, core
  design decisions (safe Rust, slab-based PageList, logical capacity
  accounting), phased plan, progress tracker, and porting rules.
- Workspace clippy config relaxing pedantic lints that are pure noise for
  low-level terminal code (casts, long functions).
- Shared vt types needed by several work packages up front: kitty
  keyboard flags (kitty/key.rs) and the CSI separator bitset (SepList).

Test Plan:
- cargo test -p ghostty-vt (3 tests pass)
- cargo clippy -p ghostty-vt --all-targets -- -D warnings
2026-10-11 21:41:11 +02:00