Skip to content

[1.19] Serious regression in UIA notifications support (typed characters are sent as notifications) #16044

Closed

Description

On Windows Terminal 1.19.2682.0 on Windows 11 22631.2338, a UIA notification for the current line is sent on every typed character. Since NVDA echos typed characters based on the user setting (each character/word/none at all), this is extremely disruptive.

The GitHub form didn't appear for me for some reason, happy to include any detail I've omitted. Please don't close this without further acknowledgement or engagement!

Activity

  1. added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    Needs-Tag-FixDoesn't match tag requirements
    on Sep 27, 2023
  2. DHowett commented on Sep 27, 2023

    @DHowett
    Member

    Hey Bill Dengler (@codeofdusk)! I am guessing that you're using Command Prompt? If so, Leonard Hecker (@lhecker)'s recent input rewrite is almost certainly related. We redraw the entire command for each input. I thought that we had handling in Terminal to suppress those duplicate/overly long notifications...

  3. codeofdusk commented on Sep 27, 2023

    @codeofdusk
    ContributorAuthor

    Hey Bill Dengler (@codeofdusk)! I am guessing that you're using Command Prompt?

    No, wt.exe. conhost doesn't support UIA notifications at all as far as I understand.

  4. codeofdusk commented on Sep 27, 2023

    @codeofdusk
    ContributorAuthor

    Oh, weird and weirder!

    Since my default terminal is wt, I run cmd from the run dialog and the bug repros. But if I launch wt from run instead, the terminal that opens is fine, even if I start cmd from inside it (it defaults to PowerShell).

  5. lhecker commented on Sep 27, 2023

    @lhecker
    Member

    I think your default terminal is probably Windows Terminal Preview, but your wt alias still points to the regular Windows Terminal which doesn't have this bug yet.

    Even in the old Windows Terminal it would announce the entire prompt again and again if you were inserting text in the middle or beginning, right? 1.19 behaves as if this was always the case.

    To fix this we'll simply reintroduce the same optimization we had before: When inserting at the end, we don't move the cursor and just write the new text out without reprinting the entire string. This will unfortunately also reintroduce certain edge cases, like the scrolling that happens when the prompt is longer than the viewport, but it'll fix this issue which is more serious.

  6. added
    Product-ConhostFor issues in the Console codebase
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Area-CookedReadThe cmd.exe COOKED_READ handling
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    Needs-Tag-FixDoesn't match tag requirements
    on Sep 27, 2023
  7. changed the title [-]Serious regression in UIA notifications support (typed characters are sent as notifications)[/-] [+][1.19] Serious regression in UIA notifications support (typed characters are sent as notifications)[/+] on Sep 27, 2023
  8. added 2 commits that reference this issue on Oct 24, 2023
    e1c69a9
    c2fde69
  9. added a commit that references this issue on Dec 7, 2023
    8e94596
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-CookedReadThe cmd.exe COOKED_READ handlingIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-ConhostFor issues in the Console codebase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions