Skip to content

[Bug]: Terminal cursor leaves top and bottom edges visible during blink off phase #11402

Description

@nbrosei

Before submitting

  • I searched existing issues and did not find an exact duplicate.
  • I included enough detail to investigate the problem.

Area

apps/desktop (integrated terminal rendered by apps/web)

Steps to reproduce

  1. Open the integrated terminal with a blinking cursor.
  2. Leave the shell idle at a prompt.
  3. Observe the cursor during the blink's off phase.

The reporter's screenshot shows a light theme and an idle % shell prompt after git pull completed. The command is context, not an established prerequisite.

Expected behavior

The cursor disappears completely during the off phase, leaving the terminal background and underlying text intact.

Actual behavior

Two faint horizontal lines remain at the top and bottom of the cursor cell when the cursor is off. The screenshot supplied by the reporter clearly shows these lines in the otherwise blank cell immediately after the prompt.

Impact

Cosmetic issue.

Version or commit

T3 Code desktop 0.0.40 (09e8de9c655a).

Environment

T3 Code desktop on macOS, light theme. Exact macOS version, display scale, and zoom level were not supplied.

Investigation status

The artifact is visible in the reporter's screenshot; the blinking behavior is reporter-observed. No independent interactive reproduction or root cause has been established.

Relevant rendering code is apps/web/src/terminal/ghostty/renderer.ts, with cursor repaint coverage in renderer.test.ts. Existing coverage uses a mocked canvas and does not establish that no residual pixels remain after an on/off cycle on a real canvas.

Searched open and closed issues for cursor blink, terminal border, and cursor terminal. #1939 concerns cursor positioning, and #7644 concerns stale/garbled terminal output; neither specifically describes residual top/bottom cursor edges during blinking.

Workaround

None verified.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions