From c3115f2ead80d8ade365eac2fc459ea8a47e6bf9 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sat, 23 May 2026 03:24:20 -0300 Subject: [PATCH 1/2] chore: ignore local agent workflows, commands, task notes, worktrees Reserves .agents/, .claude/, .worktrees/, and _tasks/ for local-only artefacts used by the /port-upstream-prs and /resolve-upstream-issues slash commands. None of these paths should ever be tracked. --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 722d3337..4e25dc00 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,9 @@ dist/ # WASM build output (built locally and in CI) ghostty-vt.wasm + +# Local-only agent workflows, commands, task notes and worktrees +.agents/ +.claude/ +.worktrees/ +_tasks/ From c1bf90dca0c30e5f2bd29dbfab0372025f6a817d Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sat, 23 May 2026 03:38:25 -0300 Subject: [PATCH 2/2] docs(types): correct scrollbackLimit field documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scrollback_limit is passed to Ghostty's Terminal.max_scrollback, which is in bytes. The low-level GhosttyTerminalConfig / TerminalConfig docs described it as "number of scrollback lines", which is misleading — a caller passing 10,000 expecting lines gets 10,000 bytes and falls below the 2-page PageList floor. Only the low-level docstrings are corrected here. The xterm.js-compat ITerminalOptions.scrollback field still inherits xterm.js-compat framing and a misleadingly xterm.js-shaped default (1000) despite plumbing directly to a bytes-valued field; fixing that properly requires a lines-to-bytes conversion and a separate PR. Co-authored-by: Sauyon Lee Inspired-by: https://github.com/coder/ghostty-web/pull/151 --- lib/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/types.ts b/lib/types.ts index 4d6eefa2..390f3ae3 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -532,6 +532,7 @@ export const COLORS_STRUCT_SIZE = 12; * All color values use 0xRRGGBB format. A value of 0 means "use default". */ export interface GhosttyTerminalConfig { + /** Scrollback buffer size in bytes. Passed to Terminal.max_scrollback. */ scrollbackLimit?: number; fgColor?: number; bgColor?: number; @@ -604,7 +605,7 @@ export interface Cursor { * Terminal configuration (passed to ghostty_terminal_new_with_config) */ export interface TerminalConfig { - scrollback_limit: number; // Number of scrollback lines (default: 10,000) + scrollback_limit: number; // Scrollback buffer size in bytes (default: 10,000) fg_color: RGB; // Default foreground color bg_color: RGB; // Default background color }