Skip to content

fix(nsh): deliver rich-editor copy through terminal clipboard - #7042

Merged
M4n5ter merged 3 commits into
rust-previewfrom
fix/nsh-terminal-clipboard-followup
Nov 20, 2026
Merged

M4n5ter merged 3 commits into
rust-previewfrom
fix/nsh-terminal-clipboard-followup

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #6995.

  • Route rich-editor copy through the terminal clipboard on macOS and Windows so its text reaches the terminal transport. Standalone windows keep native text and HTML clipboard formats.
  • Keep the dedicated copy/IME assertions. Drop redundant select/copy readback from draft setup when send, persistence, or restoration already verifies the text. Wait for the replacement composer before pasting in the room-reference scenario.
  • Run Browser presentation against the same minimized, then normal, window in one Host scenario. Keep window identity, placement, activation, and the original Run/receipt assertions, without pinning the sequence of CDP reads.
  • Keep scoped AppKit shortcuts working when a native field editor has focus.
  • Synchronize the disclosure, retained-image, and run-recovery tests with their existing layout, input, and durable-work boundaries. Keep the pointer, pixel, and continuation assertions; no timeout increases or retries of a rejected continuation.

Verification

  • Previous CI run (663975ab3): Windows desktop passed 19/19 on each shard and pixels passed 2/2. The Rename room case and both tests that overflowed on chore(nsh): sync rust-preview with upstream 0.6.0 #6995 passed; this does not identify the original stack overflow cause. macOS agent execution passed 27/27, including the combined Browser presentation scenario.
  • That run was not green: macOS NSH terminal failed 1 of 14 tests in the retained-image case, and the Linux root native shard failed 1 of 55 tests on a recovery timeout. A local macOS native run also failed the disclosure case (39/40).
  • With the test fixes in d3253c1bd: local macOS desktop passed 40/40; macOS NSH passed 229 tests (1 skipped) and the terminal suite passed 14/14. The targeted recovery case passed on macOS and in three consecutive Omarchy runs. The original Linux recovery timeout and the earlier safety_check_failed were not traced to a specific blocker.
  • CI for d3253c1bd is running separately. The fixed-SHA chore(nsh): sync rust-preview with upstream 0.6.0 #6995 run is unchanged.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex and Maka (implementation, test changes, verification).

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@Astro-Han Astro-Han left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update at final head d3253c1bd97304ab2d243c624beb74feef163858, merged as 0a7b9834300afa814666123045f2decc51c4104b: the original formatting P2 remains resolved, and the final PR CI run completed successfully. Run 44658723578 passed all listed jobs. I read the full increment from 663975ab34b1dcfba789359faa868e0d3add47fd: it changes the disclosure test's group interaction, fences retained-image test input before observing black pixels, and waits for durable work readiness before continuing each recovered run; it preserves the 60-second outer timeout and the continuation/image assertions.

The original hosted logs show macOS desktop 40/40, Windows slice 1 19/19 and slice 2 19/19. The macOS NSH job reports 229 passed / 1 skipped and terminal 14/14, including the three RichEditor cases and retained-image replacement. The native recovery slice passes continue_run_recovers_across_interrupted_boundaries in 29.070 seconds; the macOS agent job passes 27/27. I checked the relevant clipboard/test blobs against the actual tested checkout.

The earlier retained-image and recovery failures describe the preceding revision; they must not be used to say this final run is red. The current Rust branch contains the merge. Later Rust CI can still fail other cases, so this is not a claim that every subsequent branch run is green. Full cross-platform clipboard, IME, AppKit/modal, Browser and all-consumer acceptance remains outstanding. I did not run local Cargo, a native GUI, or independent real-provider tests.

Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

Focus the room name after its dialog opens, wait for draft input to settle before changing focus, and bound the Browser archive exchange by the existing scenario deadline.

Generated-by: Codex
Wait for disclosure layout and image input fences before making desktop assertions. For recovery, wait for durable work readiness and continue from the advertised frontier without retrying a rejected continuation.

Generated-by: Maka
@M4n5ter
M4n5ter marked this pull request as ready for review November 20, 2026 02:11
@M4n5ter
M4n5ter merged commit 0a7b983 into rust-preview Nov 20, 2026
10 checks passed
@M4n5ter
M4n5ter deleted the fix/nsh-terminal-clipboard-followup branch November 20, 2026 02:11
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