Skip to content

Shell buttons stopped working after scroll fix (#561) #563

@waleedkadous

Description

@waleedkadous

Bug

Shell buttons in the dashboard are no longer working. This started immediately after merging PR #561 (terminal scroll position fix) and restarting Tower.

Likely Cause

PR #561 modified Terminal.tsx — added term.onScroll() handler and changed safeFit() to use externally-tracked scroll state. Something in these changes may have broken event handling for shell buttons.

Key Changes in PR #561 to Investigate

  1. Added scrollState object and term.onScroll() listener
  2. Modified safeFit() to read from scrollState instead of term.buffer.active
  3. Added scrollDisposable.dispose() to cleanup
  4. Added scroll state sync in term.write() callback and replay timeout

Expected Behavior

Shell buttons should work as before PR #561.

Files to Investigate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions