Implement Rust and Slint native client migration and fix desktop startup
ci / linux-arm64-cross (push) Successful in 4m7s
ci / linux-x64 (push) Successful in 4m42s

This commit is contained in:
omar committed 2026-11-10 15:45:24 +03:00
1 parent 0d11f8f99d
commit eb24965076
1303 files changed
+732670 -2375

No files matched your search

+106
View File
@@ -1,5 +1,31 @@
# TeamsPeach ↔ TeamSpeak 6 server features
## Native migration verification (2026-11-10)
The Rust/Slint migration is not a completed product cutover. Historical Electron evidence below
does not establish native or mobile acceptance. The reference client remains available.
Windows x64 WebRTC was built from pinned SDK `88705b15086ecbe2c26ee91ede6203f974a0fc62` and
WebRTC `9c3a1386f07e4348c28cd85c066821cebc3b56e4`; `native/native-deps.lock.json` records the
resolved DEPS, patches, effective GN arguments, compiler, archive gates and artifact hashes.
The native CXX bridge compiled against that source-built archive. No mutable prebuilt was used.
`native/tools/codec_probe.cpp` exercised the production software-only decoder factory with four
independently encoded synthetic 64×48 single-frame fixtures. H264 High decoded through FFmpeg,
AV1 Profile 0 through dav1d, and VP8/VP9 through libvpx. Every output matched the corresponding
independent FFmpeg I420 reference byte-for-byte. Fixtures and outputs were generated under
`target/codec-fixtures`; this proves these small decode cases, not sustained playback, hardware
acceleration, official-peer compatibility or other targets.
A separate real native PeerConnection loopback negotiated and transported generated video through
the production sender, receiver and bounded display path: 13 frames decoded by libvpx, 12 presented
with the expected red pixels, and one source-stop callback. Terminal cleanup removed the pending
frame. `target/codec-fixtures/peer-loopback.png` is the captured decoded image, not a UI mock.
This check exposed and fixed duplicate Opus linkage: WebRTC's 443 external Opus symbols and their
references are isolated from the unchanged voice-core codec, while unrelated assembly objects are
preserved byte-for-byte. No physical microphone, speaker, camera, screen capture or working server
was used for these checks.
## Approved original panel composition
The owner selected the original TS6 composition for Privacy, Video, Notifications and About. Root
@@ -199,3 +225,83 @@ not a claim about every server configuration. Evidence: `docs/evidence/official-
explanation. Explicitly authorized test-only CDP viewport emulation exercises the real adopted video,
MediaStream, continuing RTP, child controls and restore/cleanup. It does not verify unmodified native
offscreen painting or a normal visible child window; production flags are not weakened for the test.
## Native runtime integration and Windows offline evidence
The native host now owns a dedicated Tokio application worker and constructs the existing profile,
connection, file, audio and stream services. `native/src/app/runtime/` routes captured shell/chat/settings
intents and authoritative core/audio/platform events; settings use an ordered bounded consumer with
pending control identities and explicit completion/error state. First-run profile/import/recovery
decisions precede writable profile ownership, and private-key import and staging-discard operations
require an explicit warning confirmation.
`ui::application::bind` constructs a generation-scoped Slint attachment without entering its event
loop. It keeps Slint objects on the UI thread, applies coalesced Send-only snapshots, drains bounded
effects/prompts, and updates latest video images without re-projecting the tree for each frame.
Native theme font bytes pass the existing confined asset policy and are registered with Slint's
pinned Fontique interface; CSS Color 4 token values are converted to the sRGB UI surface.
`AppConfig::isolated` disables network and OS/device actions. Runtime snapshots expose actual
audio-start event counters and structured settings completion errors so a denied action cannot be
mistaken for a successful operation or an unrelated stale error. Mobile call capabilities and UI
generations have separate lifetimes; desktop installation state comes from validated running-package
metadata, not a caller-supplied installed flag.
Windows x64 integration now builds through `xtask build --target x86_64-pc-windows-msvc
--test-harness true`. The full release-profile workspace test command passed, including 461 native
library tests, the real atomic-document replacement regression, connection lifetime tests and updater
contracts. The captured-speech quality test remains explicitly ignored without its external PCM fixture.
Executed native smoke reports (under the local `target/evidence/` directory):
- `native-offline-ui-03/result.json`: actual Slint software rasterization, account-free onboarding,
all twelve settings categories, EN/RU and dark/light at 390/800/1280 logical pixels, actual semantic
combobox values matching persisted selections, math/Mermaid images, literal HTML, real text-input
focus blocking local PTT, microphone permission denial with zero physical endpoint starts, refused
Unicode draft retention/undo/redo, two full profile restarts and stale session rejection.
- `native-migration-01/result.json`: generated legacy profile import, unchanged hashes of five source
files, preserved UID/default identity, security offset 42424242 and history. No existing user profile
was imported or modified. This run predates the controlled-combobox correction checked above.
- `native-media-loopback-01/result.json`: production native PeerConnections decoded moving generated
video (13 decoded, 12 presented, libvpx) and 46 decoded audio blocks / 22080 samples, RMS 0.06160.
Audio was observed at the real decoded AudioSink before the closed output gate; no speaker or
microphone was opened. This is same-host RTP/ICE/DTLS evidence, not official TS6 signaling acceptance.
Smoke failures found and corrected an OS-capability page which refused navigation, stale native
combobox captions despite persisted values, missing text-focus propagation to local shortcuts and
Windows atomic overwrite failing while the old reader remained open. Windows publication now uses
`FileRenameInformationEx` with POSIX replacement semantics, preserving existing reader handles.
These results do not establish acoustic AEC, physical capture, official-peer interoperability,
Asahi/mobile execution, OS accessibility, installed updater/relaunch or complete visual parity.
Existing Electron evidence above remains historical reference. The reference production path remains
intentionally present until the approved migration's full acceptance gates pass.
Windows test-only packaging produced an unsigned NSIS installer (38,668,543 bytes) and ZIP
(52,858,951 bytes) in `target/evidence/native-package-03/`. Its `x86_64-pc-windows-msvc/verification.json`
passed real archive extraction, application/helper ISA and imports, asset/license hashes and the
browser/Node/WASM exclusion checks. NSIS's x86 uninstaller/plugin are classified separately from the
x64 application. The executable extracted from that ZIP passed the complete offline UI smoke from
its own package directory: `target/evidence/native-packaged-smoke-01/result.json`.
The installer was not executed, no default installation was modified, and no release manifest/update
feed was published. Both artifacts have `testOnly=true` and `release_eligible=false`; they are not a
production migration or installed update/relaunch proof.
### Ordinary desktop startup correction
The first test ZIP failed normal Windows launch with `Attach the desktop lease after the Slint
window is realized`; offscreen smoke did not cover the winit startup ordering. Desktop attachment
now awaits Slint's native-window future on its UI executor, retains/cancels that task with the UI
generation, and propagates real initialization failures. Closing onboarding also now stops the
application before profile services exist (including failed profile inspection).
`native/examples/desktop_startup_smoke.rs` exercised the real Windows window and desktop lease,
captured its 1280×800 pixels and closed it through the normal close-request callback. Evidence:
`target/evidence/native-desktop-startup-02/`. The corrected portable `teamspeach.exe` was also started
normally with a fresh test profile, observed as a visible TeamsPeach window, then sent WM_CLOSE:
exit code 0, empty stdout/stderr. No microphone/speaker or server connection was started.
The desktop delivery is `TeamsPeach-0.1.7-win-x64-startup-fix/` and the matching ZIP; the executable
SHA256 is `9d4d898b7ea723a9e0cdff2ca47cf4dbbdb2981163a6403498ab010c7bad9a95`.