mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-24 22:55:57 +03:00
[PR #94] [MERGED] fix(tui): require stdin to be terminal for TUI enablement #129
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/94
Author: @xobosox
Created: 1/22/2026
Status: ✅ Merged
Merged: 1/22/2026
Merged by: @mikeyobrien
Base:
main← Head:fix/tui-stdin-terminal-check📝 Commits (1)
4595b86fix(tui): require stdin to be terminal for TUI enablement📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
crates/ralph-cli/src/main.rs(+4 -3)📄 Description
Summary
stdin().is_terminal()check to TUI enablement conditionProblem
When running ralph through Claude Code or similar tools that pipe stdin, the TUI would enable but crossterm's EventStream would fail to receive keyboard input, making the TUI unresponsive.
Solution
Check both
stdin().is_terminal()andstdout().is_terminal()before enabling TUI. This defensive check ensures TUI only activates in truly interactive terminal contexts.Test plan
cargo test --package ralph-tui- 29 tests passcargo build- compiles successfully🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.