Skip to content

Fix wrapper terminal reset for help output#739

Merged
jahooma merged 2 commits into
mainfrom
jahooma/fix-freebuff-help-reset
May 24, 2026
Merged

Fix wrapper terminal reset for help output#739
jahooma merged 2 commits into
mainfrom
jahooma/fix-freebuff-help-reset

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 23, 2026

Fixes the release wrapper terminal cleanup so plain CLI exits like freebuff --help and argument errors do not emit ESC[?1049l, which can switch buffers and erase visible output.
The wrappers now split safe terminal mode cleanup from the full alternate-screen reset, only using the full reset when an interactive child is killed for update or exits by signal.
Applied the same wrapper fix to Freebuff, Codebuff, and staging because they share the same reset logic.
Validated with node --check on all three wrappers and a TTY-backed harness confirming help/error output remains visible without ESC[?1049l.

@jahooma jahooma merged commit e87f7a7 into main May 24, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/fix-freebuff-help-reset branch May 24, 2026 03:07
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