libghostty-vt 1.0 upgrade #415
Open
opened 2026-11-07 06:21:10 +00:00 by kayg
·
8 comments
No Branch/Tag specified
main
mesh-compat-382
j444b-d381-key-wins-flood
j470b-server-mesh-rejoin
j461b-macos-utun-reader-thread
j475b-remove-host-motion
fix-reconnect-new-link
j481-d380
dev
j479-mesh-soak
fix/j476-host-facts
j475-motion-pill-split
j470-mac-node-join
root-upgrade-d376
j474-review-merge
latency-targets-120hz
nightly-suite-shards
gotatun-pin-j469
macos-utun-reader-thread
fix-flood-echo-stall
wip/j416
motion-fast-ease-out
mesh-addhost-j259
takeover-close-terminals-d368
kbd-instant-followups
fix-trust-key-double-click
nightly-suite-partial-report
appwin-icons-j207
rusqlite-slice1
swipe-content-first-d374
mesh-mtu-381
addhost-instant-open
glass-contrast-d365-mock
glass-contrast-d365
signout-followups-442
fix-startup-toast-red
research-gotatun-matrix-j317
themes-sync-j304
fix-load-flakes
fix-nix-zig-patch
fix-compute01-browser-baseline
ratchet-size-baseline-419
predict-auto-d130
revoke-coverage-d367
nightly-suite-queue-timeout
nightly-browser-suite
fix-rustsec-2026-0459
fonts-ioskeley-obel
log-retention-d375
fix-kbd-no-anim-427
fix-dev-red-specs-2
takeover-proof-305-j205
wip/j410-server-pump
ui-consistency-d372
fix-osc52-clipboard
libghostty-vt-1.0
forget-retired-host-d369
j404-merge-426
fix-setup-lock-race
fix-touch-select-426
revoke-access-report-ui
fix-predictive-echo-specs
fix-selinux-agent-exec
wip/j395-checkpoint2
wip/j395
j391-review-scratch
ui-consistency-j195-deferred-rebased
fix-rustc-paths-421
decisions-wording-341
fix-install-suite-red
fix-dev-rtt-specs
fix-pending-removal-align
fix-privileged-skip
fix-install-suite-404
review-j368
mesh-dns-j254
revoke-access-report-d356b
revoke-privilege-round5
fix-removal-confirm
review-j360
gotatun-rotation-367
deps-refresh-340
review-j354
review-J351
review-j350
addhost-takeover-d359
revoke-report-items-347
revoke-end-sessions-d362
review-j348
size-mesh-ssh-346
size-trim-337
revoke-access-diff-d356
j259-pre-rebase-b06c5a6
j305-ended-at-start-spec
addhost-sudo-consent
fix-layout-real-specs-411
fix-shell-open-411
fix-console-hosts-373
fix-shell-exit
fuzz-host-name-353
fix-host-details-410
macos-filter-j197
research-gotatun-tricks
revoke-p3-j216l
stale-state-pill
revoke-followups-j216k
revoke-progress-j216e
backup/macos01-20261106/lume/j197
backup/macos01-20261106/lume/appwin-icons-j207-stash0
backup/macos01-20261106/claude/stash-0
backup/macos01-20261106/claude/stash-1
backup/macos01-20261106/claude/J80-macos-s1
backup/macos01-20261106/claude/J80
backup/macos01-20261106/claude/J80-slice1-20261102
backup/macos01-20261106/claude/J16b-appwin-on-dev
backup/macos01-20261106/claude/appwin-launch-idle-146
backup/macos01-20261106/claude/J80-s1-run
wip/j259
trust-285-p3c
runtime-lock-j216f
mesh-ssh-p3-j175
tun-proof-p3b
trust-285-p3
terminal-polish-j271
tun-proof-p3
ssh-install-flakes-j216i
fuzz-fixes-j264
trust-285-a
trust-285-b
restart-oversized-fixture-j198
backup/macos01-20261106/lume/appwin-icons-j207
restart-bound-j216h
up-preflight-p3-j198
backup/macos01-20261106/lume/j251
up-preflight-j198
wip/up-preflight-j198-j245-p2
wip/up-preflight-j198-j245-p1
agent-fsync-offloop-j196
wip/up-preflight-j198-j245
settings-offscreen-j231
wip/up-preflight-j198-j226-inspection
wip/j103f
themes-j206
wip/up-preflight-j198-j226
flakes-j216c
backup/macos01-20261106/claude/j197
flakes-j216b
backup/macos01-20261106/claude/j197-red
wip/up-preflight-j198-review
flakes-j216
backup/macos01-20261106/claude/appwin-icons-j207
engineering-j208b
appwin-mock-j209
toast-stack-j165
engineering-j208
decisions-d351
decisions-d350
decisions-d349
appearance-presets-mock-j129
decisions-d348
docs-audit-spec
doc-coverage-baseline-raise
decisions-d347
decisions-d346b
decisions-d346
j88h-profile
ui-consistency-j195-deferred
ui-consistency-j195
engineering-practices-j194
preferred-login-ui-j166
signin-pools-263-j174
macos-node-265-s1
decisions-d345
decisions-d344
proxy-cgroup-j164
verify-quick-fuzz-329
proxy-start-io-j168
timing-flakes-j163
up-263-s1
mcp-events-j147
verify-quick-fuzz-j158
proxy-p3-j159
agent-resource-j157-detect
wip/j103d-final
remote-cancel-hang-j155
proxy-traefik-281-j62d
j149-verify-quick
proxy-traefik-281-j62b
j150-drop-unnamed
wip/j79d-red-r4
wip/j103d-d332
rootless-toast-j142
wip/j103d-head
wip/j103d
j125c-mcp
macos-build-j136
backup/macos01-20261106/claude/j136
wip/j79d-red-cli
wip/j79d-red-server
j121-link-liveness
j118c-tracer-failures
wip/j79c-head
release-desktop-j131
j124c-signed-macos
wip/j79c-red-p3
wip/j79c-red-p23
wip/j79c-red-p22
merge-j128-check
perf-deferred-j128
sidebar-toggle-260
j127-shortcut-changed-dot
j125-mcp
j118-tracer-failures
j126-account-summary
settings-sections-mock-j92
j120-pinch-lock
sidebar-292
backup/macos01-20261106/claude/j120
taste-2026-11-03
row-actions-242-215
backup/macos01-20261106/claude/stash-0-untracked
backup/macos01-20261106/claude/J80-265-s1-run
backup/macos01-20261106/claude/J80-macos-s1-20261102
j112-canvas-commands
ui-no-overshoot-scroll
fix-recovery-restart
backup/macos01-20261106/claude/stash-1-untracked
taste-2026-11-02
size-baseline-ratchet
machine-cards-structure-j108
j109-boot-copy-mockups
fix-dev-red
wip/up-263-s1
j95b-settings-rows
proxy-traefik-281
j95-option-rows
docs-human-j91
docs-keys-palette
fix-flood-1013-270-j38d
mesh-ssh-s1
mesh-ssh-s0
addhost-d291-tunnel
test-stability-load
mesh-relay-220
repro-296
shim-thp-off-24
mesh-pins-258-v2
mesh-dns
signin-d311-merged
docs-pages
ui-size-283
fix-ui-batch-specs
wip/j12b-edge-update
gate-on-arm
fix-rename-sync-293
trust-285-j60b
fix-focus-ring-clip
integ-ui-1101
edge-update-v2
signin-d311
taste-2026-11-01
layout-per-tab-250
ui-approved-splitopt-224
ui-approved-splitopt-224-on-dev
icon-text-centre-282
ui-approved-189-212-216
research-reverse-proxy
transfer-budget-320
review-mesh-pins-258-r2
sidebar-pill-259
review-mesh-relay-220
wip/j12-edge-update-v2
nix-package
status-crash-loop-237
fix-dev-test-failures
fix-fixture-socket-path
wip/mesh-relay-220-pre-dev-advance-rebase
fix-canvas-side-clip
research-head-to-head
frosted-real-256
review-mesh-pins-258
wip/mesh-relay-220-pre-final-rebase
review-layout-per-tab-250-r2
broad-suite-triage
nix-devshell
review-status-crash-loop-237-r3
wip/nix-devshell-pre-p3
taste-frosted-real
wip/code-serve-demo-2026-10-30
wip/code-serve-glass-2026-10-30
wip/code-serve-clusters-2026-10-30
wip/code-merge-release94-dev-2026-10-30
wip/rproxy-delta-scratch-2026-10-30
wip/stale-note-257-staged-2026-10-30
wip/d241-size-staged-2026-10-30
review-broad-suite-207
wip/mesh-pins-258-pre-split
wip/mesh-relay-220-pre-rebase
mesh-measure-220
plan-211-update
review-edge-autoupdate-r3
perf24-reconnect
review-stale-note-r2
release-prod-live
d241-shell-marker
review-mesh-pins-server-258
review-revocation-r3
review-setup-token-r2
review-sync-journal-r3
wip/review-mesh-pins-258-prune-review-1995fee46
frosted-scroll-256
sync-journal-r3
revocation-per-account-wip
review-tokio-asyncfd-0386
review-sync-p3s
wip/stash-8by64-stash0-2026-10-30
mesh-drag-r2
setup-token-data-wip
release-9-4
auth-busy-1013
mesh-view-overlap
sync-p3s
review-auth-busy-wake
review-readd-r8-wip
mesh-drag-bounds
audit-auth-93
app-windows-stream-start
review-authority-cap-r3
app-windows-r7-measure
readd-minimal-r6
readd-minimal-r5
app-windows-r7-soak
readd-minimal-r4
app-windows-r7
app-windows-r6
readd-minimal-r3
readd-minimal-r2
readd-minimal
merge-release8-dev
review-busy-page-liveness-r2
review-busy-page-liveness
mesh-view-trim
review-authority-read-retry-r2
review-remove-uninstall-r2
release-retry-reattach
release-retry
review-remove-uninstall
review-authority-read-retry
app-windows-ship
mesh-autoswitch-p2
mesh-ssh
mesh-relay
mesh-macos-node
screen-and-control
session-labels
review-real-logins-r5
review-real-logins-r4
review-real-logins-r3
shim-memory-r2
review-real-logins-r2
shim-memory
shadow-addhost-instant
shadow-real-logins
shadow-same-session-flood
shadow-prod-perf-fix
hosts-from-server
app-windows-real
app-windows-transport
release-prod-6w
mesh-policy-verify
quiet-close-toast
dev-merge-r4
review-mesh-agent-transport
review-app-windows-transport
settings-roundtrip
review-release-pipeline-r4
mesh-agent-transport
ended-strip-fix
review-audit-ca-update-d244
settings-rows
phone-width
signout-clear
fix-restart-tests
dev-merge-rp
signer-hardening
review-audit-ca-update
terminal-fidelity
review-audit-ca-update-wip
mesh-integrate
review-mesh-agent-transport-515d3712
review-mesh-dataplane-feec1988
mesh-dataplane
signout
research-canvas-node
wip/review-renderer-cost
wip/review-terminal-fidelity
padlock-glyph
review-release-pipeline-2e95b689
phone-polish
sidebar-polish
inbox-generic
review-mesh-dataplane-378d4055
prod-batch
ui-inbox
ui-ca-unlock
ui-machine-sections
review-mesh-dataplane-a5f744fb
tls-session-prod
session-bounds-prod
fix-dead-session
session-bounds
tls-session
palette-polish
shortcuts-d222
research-appmeta
phone-gutter
ui-centre-button
wip/ui-centre-button
wip/tls-session
review-addhost-breakit
ui-platform
renderer-cost
remote-agents
mesh-api
ssh-bootstrap
prod-hotfix2
prod-fixes
review-remote-agents
review-mesh-dataplane
session-life
research-browser
review-mesh-api
research-capture
review-mesh-api-round3
review-mesh-api-round1
gate-stability
review-gate-stability
review-relay-direct
review-mesh-api-findings
proto-sessions
font-picker
proto-addhost
proto-windows
mesh-core
latency-gate
research-bsd
research-discovery
keytray-mods
mock-core
ui-tweaks
fix-motion-sel
fix-motion
integrate2
fix-robust
t-web
t-server
vt-ghostty
fix-snap-echo
t-web-auth
review-vt2
t-agent
lane-protocol
lane-shim
lane-auth
s1-base
s1-contracts
s1-workspace
No results found.
No labels
launch-qa
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
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
kayg/infraternal#415
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner request from kayg (2026-11-07): upgrade the existing libghostty-vt integration to the 1.0 release. Inventory the current patches, extracted internals, adapter symbols and types; migrate to the stable C API where it covers our use; build offline from signed source plus deps tarball; trim unused features; update Zig, Nix and macOS handling; measure before/after; run terminal suites, real-server specs, shim gate, Linux and macOS validation; verify SPDX licences. Do not change the foundational engine decision (D94), merge, or deploy.
Plan and estimate: (1) inspect current packaging/integration and upstream release artifacts/API (1–2 h); (2) source/tarball and adapter migration, atomic commits (3–5 h); (3) platform and feature flags (1–2 h); (4) baselines and after measurements plus tests on Linux/Mac (4–8 h, subject to VM slots and upstream artifacts); (5) final fast gate and evidence (1–3 h). If a required API or signed/offline artifact is unavailable, or a migration would require a different engine/design, report evidence and stop for owner direction.
Starting J339 on branch
libghostty-vt-1.0, based onorigin/devat3644950b8e4b5dddeefba350f97a3892189ca193. Worktree:/home/kayg/Developer/Worktrees/infraternal-libghostty-vt-1.0. I will inventory the integration and artifacts first, then establish pre-change measurements before editing.Finding 1 (source inventory):
scripts/build-vtpins sourcea887df42c56f6de86c0fe6da9c4eeca37931e083by GitHub-generated codeload checksum and requires Zig 0.15.2;nix/package.nixrepeats that pin and currently packages a separate extracted Zig package cache. The shim’s Rust FFI uses seven upstream terminal calls (new,free,vt_write,resize,mode_get,get) plus four project exports (compare,approximate,snapshot,compact,screen_pages; feature-gated calls are noted separately). Native adapters aresnapshot.zig,memory.zig,history.zig, andsession_log.zig. The build script contains twosed -iinvocations and multiple guarded Python source rewrites; I am enumerating each rewrite and private field before marking which the release API replaces.Correction to Finding 1: the adapter declares six upstream calls (not seven) and five project exports (not four). The build has three
sed -icommands total: one callback/log rewrite plus two build-definition edits. I will list their exact edits and conditional scope in the final inventory.Finding 2 (upstream release validated): the official
vt-1.0.0release directory exists. On dev-02, minisign 0.12 verified signatures onSHA256SUMS, the source tarball, and the deps tarball with the published public key; the two SHA-256 entries in the signed sums also match. Evidence:~/.cache/codex-scratch/J339/vt-release/verification.log.PACKAGING-LIBGHOSTTY.mdrequires Zig 0.17.0 and provides the exact--systemoffline dependency layout and-Dvt-featuresflags. Its manifest lists: MIT AND Unicode-3.0; Apache-2.0 OR BSD-3-Clause; Apache-2.0 OR MIT; and MIT. The source and deps archives are 4.49 MB and 5.87 MB. No alternative engine or design is needed.Finding 3 (reference mismatch): this repository’s #259 is the sidebar pill and host rename request; its comments contain no Zig/macOS SDK failure. The existing libghostty-vt macOS path is tracked under #328: commit
be2ee211arecords a successful cold macOS 26.5.2 arm64 build using Zig 0.15.2 andaarch64-macos. I’ll carry the explicit target mapping and validate the new Zig 0.17 path under the required Mac lock. If#259referred to a different report, please link it here; I’ll continue with this documented path and record any SDK failure with the command and output.Finding 4 (public API coverage): the signed 1.0 header supplies
ghostty_terminal_new/free/vt_write/resize, enum-keyedghostty_terminal_get(including mode, scrollback rows, and memory usage),ghostty_formatter_*for VT output,ghostty_render_state_*for visible cells, andghostty_terminal_compress. These cover the lifecycle/getters and the custom serializer/compressor interfaces. The 1.0GhosttyTerminalMemoryUsagereports primary/alternate page counts, resident bytes, and compressed bytes. Limit:src/terminal/PageList.zig:592-603still selectsstd.heap.page_allocatoron Linux; the public C allocator does not account for that OS page pool. The PPU page-pool adapter therefore remains necessary for admission/floor accounting, subject to the existing resize tests.Finding 5 (complete source/adapter inventory, evidence from
scripts/build-vt,terminal_native.rs, and the 1.0 headers/source):sed -iis used three times. (1) InCARGO_FEATURE_SESSION_IMAGEbuilds, remove theghostty_sys_setandghostty_sys_log_stderrexports and redirectsys.logFntonative/session_log.zig; this keeps callback-free session images from exposing setters that silently discard callbacks. (2) Addlink_function_sectionsandlink_data_sectionsto the VT library build so the static linker can discard unused functions/data. (3) For ReleaseFast only, setroot_module.strip = true; the Rust release output is stripped and the native source-symbol reader need not be linked. The latter two reasons are already adjacent to the edits and need to be remeasured with the 1.0 feature flags.src/lib_vt.zig(always),src/terminal/PageList.zig,src/terminal/page.zig,src/terminal/Screen.zig, andsrc/terminal/compress/lz4.zig(shared-host build),src/terminal/compress/Page.zig(compact-history), andsrc/build/GhosttyLibVt.zigplusbuild.zig(build adjustments). The source archive itself is unpacked before these exact upstream files are restored for guarded patching.ghostty_terminal_new/free/vt_write/resize/mode_get/get.mode_getis test-only;getis used for shared-host data. Its five project exports areinfraternal_vt_compare,infraternal_vt_approximate,infraternal_vt_snapshot, feature-gatedinfraternal_vt_compact, and shared-hostinfraternal_vt_screen_pages. The oldOptions { cols, rows, max_scrollback }Rust layout is not a stable C type.native/snapshot.zig,memory.zig, andhistory.zig: snapshot unwrapsterminal/c/terminal.zig'sTerminaland readsterminal/main.zig'sTerminal,Screen,PageList.Pin,Style,CharsetSlot,modes.Mode/ModeState/ModeTag,page.Cell,Screen.CharsetState/SavedCursor, hyperlink records, and Unicode width/grapheme tables. It reads terminal dimensions/modes/flags/colors/screens/previous character/scrolling region/tabstops/charsets and raw screen cursor/page/cell/hyperlink/grapheme state. Memory routing usesterminal/lib.zig's allocator bridge/vtable andterminal/mem.zig, and calculates page layout usingterminal/page.zig'sPage/Cell/Row. Compact history uses that raw page layout plusterminal/compress/lz4.zig'sHashTable,compress, anddecompress. The compact driver also unwraps the C handle and reaches each screen's page compressor.Optionslayout, the test-only mode getter, and potentially the snapshot/comparison/compression exports, pending the repaint, continuation, retention and resize suites.GHOSTTY_TERMINAL_DATA_MEMORY_USAGEreports live usage and scans pages; it does not replace the geometry-onlyscreen_pagespre-admission estimate.PageListstill routes pages throughstd.heap.page_allocatoron 1.0 Linux, so the shared-host page-pool accounting patch remains a candidate until the resize and process-per-user gates prove otherwise.No source changes yet. Baseline measurement is queued on dev-02; current status has its slot free but 39 GB free against a 40 GB build-slot floor. compute01 has all five slots occupied and 110 GB free. I will retry when a VM can take the job without crossing its floor.
Finding 6 (baseline runner status): the base worktree's
scripts/verify quickpassed on dev-02 at 07:06 host time after correcting the shell working directory; its scope was empty againstorigin/dev, so it ran the repository pre-check rows but no package clippy/unit tests. Currentbuild-slot --statusshows dev-02 at 1/1 occupied with 43 GB free (40 GB floor) and compute01 at 5/5 occupied with a queue and 93 GB free (25 GB floor). The before performance build and static-size receipts are still pending. I will keep one target per VM job and remove it before releasing its slot.