Skip to content

[Bug]: Concealed terminal text reappears under the block cursor and underline stays visible #37140

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open the integrated terminal in the Linux web client.
  2. Save and run this real ncurses program with python3 conceal.py:
import curses

def main(screen):
    curses.curs_set(2)
    mode = 0
    while True:
        screen.erase()
        screen.addstr(0, 0, "n: normal, c: concealed, u: concealed underline, q: quit")
        for row, attr in enumerate((0, curses.A_INVIS, curses.A_INVIS | curses.A_UNDERLINE), 2):
            screen.addstr(row, 22, "SECRET", attr)
        screen.move(2 + mode, 22)
        screen.refresh()
        key = screen.getch()
        if key == ord("q"):
            break
        if key in (ord("n"), ord("c"), ord("u")):
            mode = (ord("n"), ord("c"), ord("u")).index(key)

curses.wrapper(main)
  1. Press c, then u, to put the block cursor over the concealed cells.

Expected behavior

Concealed text and its underline remain hidden, including under the block cursor. Native Ghostty with the same producer suppresses both.

Actual behavior

An S appears in the block cursor. The concealed underline is visible even away from the cursor. Core preserves the invisible flag, but the renderer decoration pass and cursor glyph redraw ignore it.

Impact

Minor bug or occasional failure. Requires a program emitting conceal attributes. Ordinary password prompts disable echo; this report does not establish a password-prompt leak.

Version or commit

main @ 2b83dd0

Environment

Linux web client, Chromium, real integrated PTY, Python ncurses. No Electron, mobile or other-OS claim.

Logs or stack traces

No crash. Visual rendering defect.

Screenshots, recordings, or supporting files

Before is the left column; the accompanying fix is the right column. Rows show normal cursor, concealed cursor, and concealed underline cursor.

Conceal before and after

Found by Terminal Improvement Bug Hunt (GPT 6.1 Sol through Codex); independently confirmed by Claude Opus 5.5 through Claude Agent, then reproduced again on current main by the fix builder. Hunt evidence.

Related closed #11402 concerns cursor blink fringes, a separate trigger and symptom.

Workaround

None verified.

Activity

  1. added
    vouch:trusted
    on Nov 15, 2026
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

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions