Skip to content

fix: avoid keyboard probe for piped stdin - #678

Merged
agavra merged 1 commit into
agavra:mainfrom
atirna:fix/avoid-stdin-probe-hang
Sep 7, 2026
Merged

agavra merged 1 commit into
agavra:mainfrom
atirna:fix/avoid-stdin-probe-hang

Conversation

@atirna

@atirna atirna commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Skip the keyboard enhancement probe when standard input is piped.

Verification

  • before: git diff | tuicr kept running and consumed a CPU core
  • after: git diff | tuicr exits with a terminal-input error instead of spinning
  • cargo fmt --check
  • cargo build
  • cargo test
  • cargo clippy -- -D warnings

Fixes #675

@agavra agavra left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @atirna for the contribution! This looks good to me.

@agavra
agavra merged commit d5d932f into agavra:main Sep 7, 2026
5 checks passed
@atirna
atirna deleted the fix/avoid-stdin-probe-hang branch September 7, 2026 02:47
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.

tuicr hangs at 100% CPU when reading diff from stdin

2 participants