Repository navigation
[CTX-0269] fix(runtime): live split resizes pane grid, reflow fires - #445
Merged
Merged
Conversation
…ize to focused allocation
Xuepoo
force-pushed
the
ctx-0269/fix-live-split-reflow
branch
from
September 9, 2026 09:51
614bc55 to
21c5ca8
Compare
Contributor
Author
|
Rebased onto origin/main (2fb010f, incl. #441 rewrap) — clean rebase, no conflicts (single-commit branch, disjoint paths: #441 touched term-state, this PR touches runtime + new test). Reviewer PX was right: the "true rewrap is unimplemented anywhere" comments were stale post-#441. Fixed in 21c5ca8:
Verification (post-rebase, post-fix):
Note: foreign stash ctx-0094 entry left untouched; worktree tracked tree clean (only untracked recording/). |
3 tasks
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.
Priority: P0 | Area: render | Labels: fix,area:render,P0 | Milestone: v0.1.0 | RFC: OQ-007 | Task: CTX-0269
Closes #444
Root cause: both live split paths (keymap NewSplit in app chrome_keys, ctl splitView in app ctl) funnel into Runtime::set_layout, which re-synced pane sessions but never resized the shared primary grid or the primary PTY winsize. tick only clips via viewport_snapshot, so CTX-0266 reflow never fired live (stale ~155-col grid in ~77-col pane).
Diff: layout_focus.rs set_layout now reflows leaf Views immediately and resizes primary grid + primary PTY winsize to the focused allocation (best-effort, matching dims skip); panes.rs adds pane_pty_size introspection; new tests/split_live_reflow.rs (5 tests).
Tests: full workspace suite green, clippy -D warnings clean, fmt clean, windows-gnu check ok, act -n ci+codeql ok. New tests fail pre-fix (3/3 core) and pass post-fix.
Live AFTER proof (ws4 seat-checked, recording/ctx-0269/ uncommitted): fresh 280-char marker wraps to 4 rows with all tails visible; kbd split tiles honestly with live shell; mixed-shape co-paint shows no blanks. Narrow truncates per observed State::resize behavior (same as window narrow); true rewrap unimplemented (rg-verified) — possible drift vs #441 body claims, flagged for commander.
STOP at in_review: requesting independent review; not merging.