Skip to content

[Accessibility] Terminal a11y buffer is not automatically updated #172582

Description

CC Megan Rogge (@meganrogge)

Reproducible Steps

  1. Load NVDA.
  2. Open terminal.
  3. Change directory to anywhere having lots of files and sub-directories.
  4. Type ls -1
  5. As soon as typing ls -1, press Shift+Tab to focus in the terminal a11y buffer.
  6. Press Ctrl+End to go to the end of the buffer and see if it reflects the last file name of the ls command: It is not actualy.
  7. Press Tab to terminal input and Shift+Tab to come back to a11y output buffer: This time the last line of the buffer reflects the the last item on the screen.

Expected Behavior

The terminal a11y buffer needs to get updated automatically without manual focus refresh.

System Info

Version: 1.75.0-insider (system setup)
Commit: 07d6f5b
Date: 2023-01-26T05:23:05.014Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

Activity

  1. added
    bug
    terminal-accessibility
    on Jan 26, 2023
  2. Tyriar commented on Jan 26, 2023

    @Tyriar
    Contributor

    Performance isn't a concern but since it's an edge case I think it makes sense to listen for buffer changes and refresh it. We will probably need to append and not replace though

  3. jvesouza commented on Jan 29, 2023

    @jvesouza

    Another problem encountered is that if I type some text in the accessibility buffer, it is no longer updated. It seems that the problem only happens if the text is typed very close to the last line of the buffer. I tried to reproduce the problem by typing a text at the beginning of the buffer but I couldn't.
    To reproduce try the following steps:

    1. Run some commands in the VSCode terminal.
    2. Press the shift+tab keys and explore the accessibility buffer using the arrow keys. Note that the executed commands result are present as expected.
    3. Move the cursor to the last line of the buffer and type any garbage.
    4. Press tab and run more commands in the terminal.
    5. Press the shift+tab keys and explore the accessibility buffer.

    In my environment the result of the commands executed in step 4 are not present in the accessibility buffer, only the commands executed in step 1 are shown.

  4. steverep commented on Mar 6, 2023

    @steverep

    Please treat this as a significant bug and not an "edge case". It's currently impossible to review the log of any running task or command until the task completes or the shell prompt is returned. That eliminates access to many common things like:

    • man pages
    • python or node in interactive mode
    • logs of significant builds or test suites
    • development watch tasks
  5. meganrogge commented on Mar 6, 2023

    @meganrogge
    Collaborator

    Steve Repsher (@steverep) this is a plan item for the March iteration IE we plan to tackle it soon

  6. meganrogge commented on Mar 7, 2023

    @meganrogge
    Collaborator

    Repro:

    1. Run while sleep 1; do echo "Hi"; done
    2. Focus the accessible buffer, focus the terminal, focus the accessible buffer again
    3. 🐛 it doesn't update
  7. added a commit that references this issue on Mar 7, 2023
    7adddad
  8. 17 remaining items

  9. added
    insiders-released
    and removed
    unreleased
    on Mar 23, 2023
  10. added
    verified
    and removed
    verified
    on Mar 23, 2023
  11. joyceerhl commented on Mar 23, 2023

    @joyceerhl
    Contributor

    This still repros for me with the latest insiders.

  12. meganrogge commented on Mar 23, 2023

    @meganrogge
    Collaborator

    Joyce Er (@joyceerhl) a gif would be helpful

    update.mov
  13. joyceerhl commented on Mar 23, 2023

    @joyceerhl
    Contributor
    terminal.mp4

    (in the recording above, at about the 6 second mark I click out of the terminal and back in, and that apparently forces an update)

  14. meganrogge commented on Mar 23, 2023

    @meganrogge
    Collaborator

    can you repro if you start with a new terminal, don't run clear? i'm trying exactly what you show and not seeing an issue - in the latest insider's (as of 2 hours ago)

  15. Tyriar commented on Mar 23, 2023

    @Tyriar
    Contributor

    I can repro but it's quite difficult, there's probably some race condition where output occurs before the listener is registered. I suggest we action this as part of the _getContent testing/refactoring

  16. meganrogge commented on Mar 23, 2023

    @meganrogge
    Collaborator

    Considering this verified because it works in most cases and we will have a TPI next iteration to test the improvements we plan to make

  17. added
    verified
    on-release-notes
    and removed
    verification-found
    on Mar 23, 2023
  18. locked and limited conversation to collaborators on May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedon-release-notesterminal-accessibilityverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions