Skip to content

fix(TUI): stop logs screen tail-follow flicker#1120

Open
stablegenius49 wants to merge 1 commit intolangflow-ai:mainfrom
stablegenius49:pr-factory/issue-803-tui-log-scroll
Open

fix(TUI): stop logs screen tail-follow flicker#1120
stablegenius49 wants to merge 1 commit intolangflow-ai:mainfrom
stablegenius49:pr-factory/issue-803-tui-log-scroll

Conversation

@stablegenius49
Copy link

Summary

  • disable the Log widget's built-in auto-scroll in the TUI logs screen and manage tail-following manually
  • scroll to the latest line with scroll_end(animate=False) only when tail-following is enabled
  • disable tail-following when the user scrolls upward, and re-enable it when they jump back to the bottom
  • add unit tests covering the new tail-following behavior

Closes #803.

Testing

  • PYTHONPATH=src pytest --confcutdir=tests/unit tests/unit/test_logs_screen.py
  • python3 -m py_compile src/tui/screens/logs.py tests/unit/test_logs_screen.py

@github-actions github-actions bot added community backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) tests bug 🔴 Something isn't working. labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend 🔷 Issues related to backend services (OpenSearch, Langflow, APIs) bug 🔴 Something isn't working. community tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Log window in TUI flickering and impossible to read

2 participants