Skip to content

Restore the terminal cursor when the progress tracker exits - #331

Merged
jp-spotter merged 1 commit into
thoughtspot:devfrom
jp-spotter:fix/worktracker-restore-cursor
Jul 23, 2026
Merged

Restore the terminal cursor when the progress tracker exits#331
jp-spotter merged 1 commit into
thoughtspot:devfrom
jp-spotter:fix/worktracker-restore-cursor

Conversation

@jp-spotter

@jp-spotter jp-spotter commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

After a command that shows the progress tracker, the terminal cursor stays hidden. It is invisible on lenient terminals, but persists in strict emulators such as cloud shells until the user runs reset.

The tracker hides the cursor when it starts but never restores it on exit: its exit path refreshes the display but never calls the underlying stop(), which is what shows the cursor again and halts the refresh thread.

The fix calls stop() on exit. A test asserts the cursor is restored.

@jp-spotter
jp-spotter requested a review from a team as a code owner July 23, 2026 21:54
@jp-spotter
jp-spotter merged commit 4f34eee into thoughtspot:dev Jul 23, 2026
3 checks passed
@jp-spotter
jp-spotter deleted the fix/worktracker-restore-cursor branch July 24, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant