Skip to content

fix(app): a focused terminal no longer shows a tall browser caret at its left edge - #120

Merged
sean-brydon merged 2 commits into
mainfrom
fix/terminal-native-caret
Oct 16, 2026
Merged

sean-brydon merged 2 commits into
mainfrom
fix/terminal-native-caret

Conversation

@pumfleet

Copy link
Copy Markdown
Contributor

With the Ghostty renderer, a focused terminal showed a blinking bar the full height of the pane at its left edge.

ghostty-web's open() makes the host element contenteditable and its focus() focuses that host, so the browser drew its own text caret in front of the canvas. createGhostty now sets caret-color: transparent on the host. The terminal still draws its own cursor.

  • e2e/terminal-keys.spec.ts: a new test checks that a focused Ghostty terminal's editable host has a transparent caret. It fails without the fix (rgb(227, 228, 232)) and passes with it.
  • Changelog bullet under Unreleased.

🤖 Generated with Claude Code

…its left edge

ghostty-web makes the terminal's host contenteditable and focuses it, so
the browser drew its own text caret there, as tall as the canvas. The host
now has a transparent caret-color; the terminal draws its own cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
berth Ready Ready Preview Oct 16, 2026 6:21am UTC
berth-docs Ready Ready Preview Oct 16, 2026 6:21am UTC

Request Review

@sean-brydon
sean-brydon merged commit 8d0202a into main Oct 16, 2026
8 checks passed
@linear-code

linear-code Bot commented Oct 16, 2026

Copy link
Copy Markdown

ENG-6292

This branch was successfully deployed

2 active deployments
Preview – berth-docs — 3d0166a2 Deployed Oct 16, 2026 by vercel[bot]
Preview – berth — 3d0166a2 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants