fix(tui): default alternate screen to always - #18
Merged
Conversation
Interactive TUI launch enters the alternate screen (full viewport). Opt out with --no-alternate-screen or [tui] alternate_screen = false. Co-authored-by: Mathis <echobt@users.noreply.github.com>
Cli does not implement Debug, so expect_err failed clippy and cargo test. Co-authored-by: Mathis <echobt@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Interactive TUI launch now enters the alternate screen by default (
alternate_screenalways), matching a Codex-style full viewport. The host terminal is taken over on start instead of remaining inline.Welcome splash is unchanged from #17:
Welcome to Cortex, the coding agent CLIplus the version / command legend. No fake> cortexprompt or cwd lines. Composer dual-hairline and caret-before-placeholder are unchanged.Opt out to stay inline:
[tui] alternate_screen = falsein configcortex --no-alternate-screenon the CLI--alternate-screenstill forces the alternate buffer when config is falseTest plan
cargo fmt --all -- --check./scripts/clippy.sh(local:-p cortex-cli; workspace gate in CI)cargo test -p cortex-cli --lib -- test_cli_alternate_screenplus enginealternate_screentests> cortex)cargo audit(or note a documented.cargo/audit.tomlexception) — CI Security Audit was green on the previous runAttestation (required)
I attest that:
.envfiles are included.Risk
Low. Default TUI terminal mode only. No auth, exec policy, sandbox, or API-contract changes. Users who want the previous inline layout set
[tui] alternate_screen = falseor--no-alternate-screen.