Skip to content
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

Skip tea middleware when no program is returned #300

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Conversation

aymanbagabas
Copy link
Member

Previous versions of Wish had a similar behavior. The Bubble Tea middleware didn't care about whether the session is a PTY or not. Instead, it's the implementer job to check for PTY sessions and allow/disallow sessions from establishing.

This implements a similar approach where the middleware can be skipped if no program is returned.

Check if there's a program before closing non-pty sessions. If not, skip
the middleware and execute the next one.
"dumb" terminals don't support OSC sequences
@aymanbagabas aymanbagabas merged commit 6c0aaa6 into main Jul 31, 2024
12 checks passed
@aymanbagabas aymanbagabas deleted the dumb-renderer branch July 31, 2024 18:58
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.

2 participants