Skip to content

fix(chat): close nested-list streaming cursor reflow - #1373

Merged
vastsa merged 7 commits into
mainfrom
codex/fix-pr1362-nested-streaming-cursor
Oct 4, 2026
Merged

vastsa merged 7 commits into
mainfrom
codex/fix-pr1362-nested-streaming-cursor

Conversation

@vastsa

@vastsa vastsa commented Oct 4, 2026

Copy link
Copy Markdown
Owner

This follow-up carries the original #1362 change and fixes the remaining nested-list cursor case.

The original selector can still put ::after on a nested list container when the final outer list item ends with another list. That creates the same extra inline line box the PR is intended to remove. This change anchors list and quote cursors to terminal paragraphs or text leaves, adds a regression assertion for the broad selector, and records the nested-list layout expectation in the UX and E2E specs.

Validation:

  • node --test apps/desktop/test/chat-streaming-layout.test.mjs passed (3 tests).
  • git diff --check passed.
  • origin/main is an ancestor of this head; latest base is included.
  • Desktop UI E2E was not run because the repository requires an explicit current-task request for verify:ui:*; the existing test is a source-level regression test.

Supersedes #1362. Fixes #1345.

Totopo27 and others added 3 commits October 4, 2026 10:52
Prevent vertical layout jumping and reflow during assistant stream
rendering by keeping the smooth-stream cursor active throughout active
streaming, positioning the cursor inline at leaf elements and list
items rather than container lists, and disabling orphan-rebalancing
line wrapping during active streams.

Fixes #1345
The generic last-child cursor selector can still append an inline box to a nested ul or ol inside the final list item. Restrict list and quote cursors to terminal paragraphs or text leaves so nested containers do not gain a trailing line during streaming.
Copilot AI balanced review requested due to automatic review settings October 4, 2026 02:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 3c2291b into main Oct 4, 2026
4 checks passed
@vastsa
vastsa deleted the codex/fix-pr1362-nested-streaming-cursor branch October 6, 2026 16:55
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.

[Bug] Chat content visibly jumps/reflows during streaming in v0.16.0

3 participants