Skip to content

fix: preserve scrollback for top-anchored regions#180

Merged
nick-skriabin merged 1 commit intosemos-labs:mainfrom
W25X80:fix/standards-first-wheel
Mar 28, 2026
Merged

fix: preserve scrollback for top-anchored regions#180
nick-skriabin merged 1 commit intosemos-labs:mainfrom
W25X80:fix/standards-first-wheel

Conversation

@W25X80
Copy link
Copy Markdown
Contributor

@W25X80 W25X80 commented Mar 28, 2026

This routes LF/index and CSI S through a shared top-anchored path and adds regression coverage for DECSTBM cases, mixed transcripts, viewport coupling and zero-scrollback behavior.

Use case: some CLIs like Codex render in the primary screen with a fixed footer or prompt area and only scroll the top region instead of switching to thealternate screen. Before this change, lines pushed out of that region were not preserved in scrollback, so users could not scroll back through output in those sessions.

With this fix, that history is preserved, so normal terminal scrollback works as expected for these inline TUI-style workflows while keeping non-top-anchored and alt-screen behavior unchanged.

@nick-skriabin
Copy link
Copy Markdown
Contributor

@W25X80 thank you for the PR. i will review and manually test it before moving forward

Copy link
Copy Markdown
Contributor

@nick-skriabin nick-skriabin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, add a description of the user-facing bug that you fixed. other than that PR looks good

@nick-skriabin nick-skriabin merged commit 38c5fb9 into semos-labs:main Mar 28, 2026
3 checks passed
@W25X80 W25X80 deleted the fix/standards-first-wheel branch March 28, 2026 23:56
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