Skip to content

Windows desktop: desktop_side_pane_keeps_its_draft_separate fails after NSH 0.6.0 sync (#6995) #7067

Closed

Description

@liugddx

Summary

Windows desktop tests in maka-cli native-desktop have been failing on rust-preview since the NSH upstream 0.6.0 sync (#6995). Commit 0a7b98343 ("fix(nsh): deliver rich-editor copy through terminal clipboard") fixed most of them. One test still fails on Windows.

Timeline (CI native-windows-desktop-2, push builds)

Commit Result Failing native-desktop tests
47a13c74f success 0
b0d39895c (#6995, NSH 0.6.0 sync) failure 11
0a7b98343 (rich-editor clipboard fix) failure 1

On b0d39895c, the failing assertions are the selected draft was not copied (10 tests) and the expected draft ... did not appear (1 test). The editor's text is empty, so the test helper type_text (which uses platform.paste(PasteEvent)) does not reach the native editor.

Remaining failure

  • terminal::desktop_new_session::desktop_side_pane_keeps_its_draft_separate_when_closed_and_reopened: the expected draft "MAIN_DRAFT" did not appear in the editor. It also fails on earlier builds.

Related

  • windows-nsh failed once on 0a7b98343: nsh-platform-windows audio::tests::a_sound_decodes_on_the_decoding_thread. It passed on the next push build, so this looks flaky. Not tracked here.
  • Linux nsh has failed three nsh-base rich-editor tests on recent builds (link hint, touch long-press). Same editor code, possibly the same root cause.

Reproduce

cargo nextest run -p maka-cli --features desktop-tests --test native-desktop -E 'test(desktop_side_pane_keeps_its_draft_separate)'

Run on Windows. This was not reproduced locally: development was done on macOS, where the desktop suites do not exercise the Windows paste path.

Ask

AI use

Filed with Claude Code from CI logs and the git history. Facts above come from job logs; the root-cause link to #6995 is a timing correlation plus the changed paste path, not a reproduction.

中文

概要:自 NSH 上游 0.6.0 同步(#6995)起,maka-cli 的 Windows desktop native-desktop 测试在 rust-preview 上持续失败。提交 0a7b98343(修复富文本编辑器复制粘贴路径)修好了大部分,目前仅剩 1 个测试失败。

时间线(CI native-windows-desktop-2,push 构建):

剩余失败:desktop_side_pane_keeps_its_draft_separate_when_closed_and_reopened,之前的构建也失败。

相关:windows-nsh 在 0a7b98343 上偶发失败一次(音频解码测试),下一次 push 通过,未在此跟踪。Linux nsh 近期失败的 3 个 nsh-base 富文本编辑器测试,可能是同一块代码的问题。

复现:需要在 Windows 上运行,本地(macOS)无法覆盖 Windows 粘贴路径。

需要:#6995 的同步维护者确认剩余测试是否在上游修复范围内。

Activity

  1. added a commit that references this issue on Nov 22, 2026
    50489dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions