Upstream: report four libghostty-vt findings to Ghostty (by hand) #54

Open
opened 2026-10-02 09:55:42 +00:00 by jhgaylor · 0 comments
Owner

Found in S1/S5 and #1 (d774b26). Not filed by an agent on purpose: Ghostty's AI_POLICY.md requires AI-assisted issues/discussions to be reviewed and edited by a human and to disclose the tool, bugs go in as an "Issue Triage" discussion (not an issue), feature asks under "Feature Requests, Ideas", and sloppy AI reports get the account publicly denounced. So: re-check each against current Ghostty main (we pin 22d13172; main was 0081d453 in S1/S5), trim, rewrite in your own words, disclose Claude Code, and file.

Drafts (agent-written, to edit):

  1. GHOSTSNP: bump the version when the wire format changes (feature request). 219173ab3 removed the BLAKE3-256 digests from READY and FINISH but kept envelope version = 1. Snapshots from 22d13172 and 0081d453 fail to decode in the other build with INVALID_VALUE. The failure is clean, but embedders can't tell compatible builds apart before trying. Ask: bump the version, or add a format-revision field, on incompatible changes.

  2. libghostty-vt build_info: include the git hash (feature request). version_string() is the constant 0.1.0-dev and build_version() is empty in every libghostty-vt build; only the app version gets the commit. Embedders that persist snapshots need to tell builds apart. (We now hash a canary terminal's GHOSTSNP instead: crates/vt/src/ghostty.rs engine_tag.)

  3. GHOSTSNP: carry Kitty images and placements (feature request). grid.zig says Kitty image and placement state isn't in snapshot v1; only U+10EEEE placeholder cells survive.

  4. Formatter (VT) fidelity gaps (issue triage; check each on main first):

    • blank cells inside a styled row are written as spaces under the previous run's SGR, so they gain its colours;
    • per-cell OSC 8 hyperlinks aren't emitted;
    • per-cell protection (DECSCA) isn't emitted;
    • the cursor CUP comes before DECSTBM/DECSLRM (which home the cursor), and isn't origin-relative under DECOM;
    • only the active screen's Kitty keyboard flags are emitted.
      Older ones from S1 (spikes/s1-ghostty): tab-stop output leaves the cursor on the last stop; no title or cursor shape; trailing textless rows dropped; a NUL in OSC 7; no API to format a chosen screen or read the saved cursor (the last would also fix #53).

Repro material: crates/vt/fixtures/ and spikes/s1s5-followup/.

Found in S1/S5 and #1 (d774b26). **Not filed by an agent on purpose:** Ghostty's AI_POLICY.md requires AI-assisted issues/discussions to be reviewed *and edited* by a human and to disclose the tool, bugs go in as an "Issue Triage" discussion (not an issue), feature asks under "Feature Requests, Ideas", and sloppy AI reports get the account publicly denounced. So: re-check each against current Ghostty main (we pin 22d13172; main was 0081d453 in S1/S5), trim, rewrite in your own words, disclose Claude Code, and file. Drafts (agent-written, to edit): 1. **GHOSTSNP: bump the version when the wire format changes** (feature request). 219173ab3 removed the BLAKE3-256 digests from READY and FINISH but kept envelope `version = 1`. Snapshots from 22d13172 and 0081d453 fail to decode in the other build with INVALID_VALUE. The failure is clean, but embedders can't tell compatible builds apart before trying. Ask: bump the version, or add a format-revision field, on incompatible changes. 2. **libghostty-vt `build_info`: include the git hash** (feature request). `version_string()` is the constant `0.1.0-dev` and `build_version()` is empty in every libghostty-vt build; only the app version gets the commit. Embedders that persist snapshots need to tell builds apart. (We now hash a canary terminal's GHOSTSNP instead: crates/vt/src/ghostty.rs `engine_tag`.) 3. **GHOSTSNP: carry Kitty images and placements** (feature request). grid.zig says Kitty image and placement state isn't in snapshot v1; only U+10EEEE placeholder cells survive. 4. **Formatter (VT) fidelity gaps** (issue triage; check each on main first): - blank cells inside a styled row are written as spaces under the previous run's SGR, so they gain its colours; - per-cell OSC 8 hyperlinks aren't emitted; - per-cell protection (DECSCA) isn't emitted; - the cursor CUP comes before DECSTBM/DECSLRM (which home the cursor), and isn't origin-relative under DECOM; - only the active screen's Kitty keyboard flags are emitted. Older ones from S1 (spikes/s1-ghostty): tab-stop output leaves the cursor on the last stop; no title or cursor shape; trailing textless rows dropped; a NUL in OSC 7; no API to format a chosen screen or read the saved cursor (the last would also fix #53). Repro material: crates/vt/fixtures/ and spikes/s1s5-followup/.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#54
No description provided.