Skip to content

fix+add Test case: Message box isn't displayed in the terminal on macOS/Darwin (#861) #981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Jaylon998
Copy link

@Jaylon998 Jaylon998 commented May 17, 2025

What?

This PR fixes issue #861 where the terminal message box fails to display properly, particularly on macOS/Darwin 24.4.0 systems.

Why?

Without this fix, users on macOS/Darwin systems:

Cannot see what they're typing in the terminal input box.

Only see the message box when the process is killed.

Experience the tool as practically unusable.

How?

In terminal-chat-input.tsx:
Enhanced terminal input handling:

Added proper TTY detection and raw mode error handling.

Implemented explicit cursor visibility control via \x1b[?25h.

Ensured input state resets reliably on component activation.

In multiline-editor.tsx:
Improved macOS support:

Refined ref / unref methods to work properly in Node environments.

Added specific handling for Darwin platforms.

Fixed stdin event emission to support proper terminal rendering.

Tests Added:
Verified input box renders correctly across platforms.

Ensured border characters display properly.

Confirmed cursor visibility control executes on Darwin systems.

@Jaylon998 Jaylon998 changed the title fix: Message box isn't displayed in the terminal on macOS/Darwin (#861) fix+add Test case: Message box isn't displayed in the terminal on macOS/Darwin (#861) May 19, 2025
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