Skip to content

feat(term): implement resize and scrollback with bounded reflow (CTX-0058) - #91

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-0058/feat-resize-scrollback
Aug 28, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-0058/feat-resize-scrollback

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Implements resize and scrollback with bounded reflow.

  • State::resize singular reflow (Grid/Scrollback truncate/pad with orphan repair, tab lattice resize, cursor clamp, scroll region reset, damage full+scrollback), View::visible_cells scrollback-aware composition (col offset, orphan truncation), Runtime::handle_resize wiring and View offset clamping with bounded reflow invariants preserved
  • Fixes ses_fb7edd547 low defects: primary_save spacer repair, dead branch removal, dev-dep documented exception (bitty-ui dev-dep cycle exception)
  • Integration tests: crates/bitty-term-state/tests/resize_scrollback.rs (8 tests) and crates/bitty-runtime/tests/resize_scrollback.rs (4 tests); gates: cargo check --workspace --all-targets PASS, cargo test PASS, just check 28 files 0 issues (fmt/clippy/test/actionlint/markdownlint), headless still works

Fixes #90
Refs: CTX-0058

…0058)

Implements State::resize singular reflow (Grid/Scrollback truncate/pad with orphan repair, tab lattice resize, cursor clamp, scroll region reset, damage full+scrollback), View::visible_cells scrollback-aware composition (col offset, orphan truncation), Runtime::handle_resize wiring and View offset clamping with bounded reflow invariants preserved.

Fixes ses_fb7edd547 low defects: primary_save spacer repair, dead branch removal, dev-dep documented exception (bitty-ui dev-dep cycle exception).

Adds integration tests crates/bitty-term-state/tests/resize_scrollback.rs (8 tests) and crates/bitty-runtime/tests/resize_scrollback.rs (4 tests); gates: cargo check --workspace --all-targets PASS, cargo test PASS, just check 28 files 0 issues (fmt/clippy/test/actionlint/markdownlint), headless still works.

Refs: CTX-0058
@Xuepoo
Xuepoo force-pushed the ctx-0058/feat-resize-scrollback branch from e43c74b to 13bf139 Compare August 28, 2026 11:33
@Xuepoo
Xuepoo merged commit 11cc3d2 into main Aug 28, 2026
5 checks passed
@Xuepoo
Xuepoo deleted the ctx-0058/feat-resize-scrollback branch August 28, 2026 11:46
@Xuepoo Xuepoo added this to the v0.0.1 milestone Aug 29, 2026
@Xuepoo Xuepoo added feat Feature area:term Area: terminal state / VT labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:term Area: terminal state / VT feat Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CTX-0058] Implement resize and scrollback for terminal

1 participant