- Drive mounted Slint text input through preedit, commit, formatting, undo and a disconnected-core send refusal. - Record preference coverage and the limits of the broader editor contract.
3.0 KiB
Native rich chat composer on Windows
Verified from integration base d436d87f71 plus the dedicated composer smoke in the detached rich-composer-verify worktree. No production source or toolbar code changed.
| Compatibility ID | Coverage |
|---|---|
preference:chatRichTextEditor |
Verified in this Windows Slint fixture. The actual composer toggle was disabled during preedit and usable after commit. Switching from hybrid to raw retained the full source and the same backwards selection, translated from block-relative to full-source byte offsets. Editing, composing, bold formatting, undo, and actual refused-send retention were checked in both modes. Raw mode was observed on disk and after restarting the runtime and mounting the composer again. |
current-contract:rich-editor-current |
Partial evidence only. Both modes preserved source and selection after refusal. Switching to a second conversation preserved both drafts independently and restored the original backwards selection when returning. Hybrid rendered a bold preview run and a benign about:blank link label with no action; raw exposed the same literal source with no preview rows. This is not full coverage of hostile previews, system IME behavior, or the broader emoji and slash completion workflow. |
The main smoke focused the actual Slint TextInput and dispatched in-window UpdateComposition and CommitComposition events. Preedit left committed text and selection unchanged; the commit replaced the selection with Japanese text. The test sent the normal Slint formatting, undo, and Enter events. A synthesized roster enabled the app's chat UI while the production core remained disconnected, so each send received a real not connected to a server refusal. Neither source nor selection was cleared. No server, network request, external link activation, OS-level input injection, system IME, or physical audio/input device was used. The profile was disposable and the generated roster was disconnected before shutdown.
Receipt: rich-composer-verify/target/native-rich-composer-run.log: 3 passed, 0 failed, 0 ignored, 843 filtered out; 5.16 s. After testing the disposable TEMP contained zero entries. The two preceding runs uncovered fixture setup errors (Slint key conversion and the canonical always-visible value); neither produced a pass for the new smoke.
Use x64 MSVC, pinned read-only LK_CUSTOM_WEBRTC, a worktree-local CARGO_TARGET_DIR, and disposable TEMP/TMP.
cargo test --offline --locked --target x86_64-pc-windows-msvc -p teamspeach-native --no-default-features --features webrtc,test-harness --lib -- --exact --test-threads=1 --nocapture `
smoke::rich_composer::rich_composer_preserves_native_selection_composition_and_refused_drafts `
smoke::chat::concurrent_tabs_keep_separate_drafts_and_pending_sends `
smoke::chat::chat_style_reflows_history_without_losing_live_selection_or_draft