docs: record source parity evidence and remaining acceptance gaps

Document accumulated interoperability findings and current source-backed design. Record build-specific visual results, matched acceleration policy, passing packaged behavior checks, and explicit native/ARM and strict visual acceptance limits. No complete 1:1 claim.
This commit is contained in:
omar committed 2026-11-01 19:47:52 +03:00
1 parent e6464bc4ed
commit ceecbb790a
41 files changed
+17571 -150

No files matched your search

+39
View File
@@ -0,0 +1,39 @@
# Selected-application audio bridge
The bridge uses the existing resolved `teamspeach-core` executable, never a renderer-provided executable, command line or PID. `app-audio list` returns observed audio sessions/streams, not installed applications. Each selected opaque identity must appear in the chooser's observed list and a fresh native enumeration; native capture revalidates its operating-system identity again.
Windows capture scope is `process-tree`: selecting overlapping trees (including two session entries with the same process ID) is rejected instead of double-mixing audio. Linux native adapters report `audio-stream`; distinct observed streams in one process remain separately selectable. The bridge does not infer support from a platform name. Unsupported native results remain explicit; there is no system-audio or microphone fallback. Entries belonging to Electron's main process or its observed descendants are filtered out. Process-tree lists must additionally establish the helper's host ancestry, and enclosing ancestors are excluded so their capture trees cannot include TeamsPeach.
## Ownership and limits
- `CaptureController.onSelected` issues a new, frame-bound, one-use application-audio grant; its capture-permission/gesture confirmation is required before starting audio. New video selection revokes the old session. Grants expire after 30 seconds.
- Preload exposes `listAppAudio`, `startAppAudio`, `stopAppAudio`, `ackAppAudio`, and `onAppAudio`. Main validates the application top frame and every start/stop/ack payload. At most eight observed identities may be selected: this explicit resource bound limits simultaneously owned native processes/worklets; attempts above it return a chooser error rather than silently truncating selection.
- Native PCM must be signed little-endian 16-bit, 48 kHz, stereo, exactly 960 frames/3,840 bytes per message with strictly increasing sequence numbers. Format changes, malformed lines, oversized frames and replayed sequence numbers stop capture.
- At most four unacknowledged PCM messages cross Electron IPC. The bridge keeps draining native pipes and drops realtime frames when the receiver stalls. Each worklet independently caps its queue at four frames. Acknowledgements follow consumption, not mere receipt.
- Each selected application has a separate worklet and gain. Their sum passes through a separate broadcast master gain into a `MediaStreamAudioDestinationNode`. Nothing connects this mixer to speaker output, microphone, voice transport or normal playback volume.
- Renderer subscription precedes native activation, so initial frames cannot outrun the listener. Cancellation during module loading, fresh enumeration or helper activation cannot attach a late audio track. Release is idempotent and closes subscriptions, the mixed track and native stdin; main enforces a 250 ms child-termination grace period. Each worklet acknowledges its stop before its port/context closes, with a one-second failed-processor deadline. Processor-error listeners are removable EventTarget listeners. A closed message port cannot bypass context closure. Context/native-stop failure rejects explicit release and retains retryable ownership rather than reporting false cleanup success.
- Unchecking/changing the selection requires stopping that capture and an explicit new preview. Source end, dialog cancellation, disconnect, navigation, renderer loss, application exit and window shutdown stop the session. No audio source is silently substituted.
## Interfaces
`listApplicationAudio()` returns `{ supported, applications, scope, reason? }` through the native bridge.
`attachApplicationAudio(videoStream, { sessionId, applications: [opaqueId], gains: { [opaqueId]: 1 }, masterGain: 1, onError, signal })` returns `{ stream, release, setAppGain, setMasterGain }`. Obtain `sessionId` from `getCaptureSessionId(videoStream)` after explicitly acquiring the selected video source. Gain range is 0–2; reset is 1. An empty application selection creates no audio context and starts no helper.
## Evidence and reproduction
Focused tests live in `test/appaudio-main.test.js`, `test/appaudio-renderer.test.mjs`, and `test/appaudio-worklet.test.mjs`. They cover strict frames, bounded queues, cross-session acknowledgement rejection, process-tree overlap, fresh-identity loss, cancellation during enumeration/activation, late success, early subscription, gain isolation, source end and idempotent disposal.
`node scripts/smoke-appaudio.mjs --core <debug-core.exe> --out <evidence-directory>` uses Windows waveOut sources and refuses to spawn them unless `TEAMSPEACH_TEST_ISOLATED_AUDIO_CONFIRMED=1` and `TEAMSPEACH_TEST_ISOLATED_WAVEOUT_DEVICE_ID=<explicit isolated device>` are provided. These values must follow actual confirmation of a nonphysical/isolated endpoint; never set them merely to bypass the guard. Default-output audible tones are forbidden. The harness always uses a dedicated invisible, non-focusable offscreen Electron window and disposable profile. Only its two owned source identities may be selected. No desktop pixels, private audio, microphone, server, normal profile, global key, native dialog or visible window is used. Its explicit generated canvas does not prove the OS source chooser or camera permissions.
Each run writes `result.json` containing measurements, native identities, final actual child count, offscreen/visibility state, failures and bounded diagnostics. Runtime success must be reported from that artifact, not inferred from this document or the unit tests. Linux and macOS runtime coverage is not established by the Windows fixture.
### Observed results, 2026-10-24
The safe transport diagnostic command is `node scripts/smoke-appaudio.mjs --synthetic-pcm --out smoke-out/appaudio-synthetic`. It emits exact-contract synthetic PCM from child processes, opens no source audio device, uses silent (`sinkId: { type: 'none' }`) contexts, and labels its result as **not native WASAPI/PulseAudio capture or native isolation proof**.
Final observed result: `C:/Users/Admin/Desktop/projects/TeamsPeach/smoke-out/appaudio-synthetic/result.json`, `ok: true`. Decoded receiver RMS was 0.005092; selected 440 Hz was -59.91 dB versus unselected 997 Hz -94.21 dB. Master half gain changed 440 Hz by -6.15 dB. Muting only the 440 Hz application suppressed it by 36.51 dB while 997 Hz changed by only 0.01 dB. Gain reset and master mute passed. All 323 delivered PCM frames were consumed. Three actual AudioWorkletNode `processorerror` EventTarget-dispatch cycles ended with six worklet stop acknowledgements, five closed contexts, zero active helpers and zero in-flight frames. These cycles exercise the native node event path, not an intentionally crashed processor implementation.
The earlier zero-RMS failure is preserved at `C:/Users/Admin/Desktop/projects/TeamsPeach/smoke-out/appaudio-bridge/result.json`. Synthetic instrumentation isolated it to the **test receiver**, not the production mixer: PCM/worklet acknowledgements advanced and WebRTC packets arrived, but decoded samples stayed zero until a muted media element was attached and played. The fixture now starts muted remote playout; no production media-element workaround was added.
The native worker separately reported real WASAPI isolation evidence. The combined real-WASAPI → renderer → WebRTC run has **not** been re-proved after the receiver-fixture correction: a confirmed isolated endpoint is unavailable, and default-output tone reruns are prohibited. Synthetic success must not be combined with standalone native evidence into a claim of live combined proof.
@@ -0,0 +1,91 @@
# Audio and core lifecycle second audit — 2026-10-24
## Scope, baseline and safety
Independent second-pass review of `audio/engine.js`, capture/playback processors, `voice.js` consumers, main/preload boundaries and `core-process.js`. Previous evidence and its limitations were read in [nonstream-memory-audit-20261024.md](nonstream-memory-audit-20261024.md) and [stream-pipeline-audit-20261024.md](stream-pipeline-audit-20261024.md). Stream/media/chat changes belong to the separate second-pass report.
The unchanged packaged baseline was `C:/Users/Admin/tmp/teamspeach-memory-audit-20261024/build/win-unpacked/TeamsPeach.exe`, label 0.1.4; previous build evidence records `resources/app.asar` SHA-256 `96ea250138ae0a83e09f333550760060bf3bdf953a76cae78eccae4750fac59c`. This pass did not independently rehash that baseline or publish/build/tag/version-bump it.
Every runtime here used a disposable real Electron profile and remained disconnected. Capture was Chromium's explicitly enabled fake device, never a physical microphone. Playback input was generated silence. A separate native core used another directory inside that disposable profile. No normal client/profile restart, live server, private media, or physical-device routing experiment was performed. Profiles were removed after the test clients closed.
Raw timestamped machine-readable evidence: `C:/Users/Admin/tmp/teamspeach-audit2-20261024/audio/`. Reusable runtime: `scripts/audit-audio-failures.mjs`. Event dispatch, suppressed diagnostic replies and rejected context closure are explicitly harness fault injection, not evidence that Chromium spontaneously suffers those failures in normal use.
## Confirmed defects and bounded fixes
### High: diagnostic log failure could terminate main
A genuine directory-as-log-file write produced `EISDIR`, an unhandled `WriteStream` error and Node exit code 1 (`core-open-failure-before.json`, UTC 11:24:12). A controlled stalled writable similarly threw on `ENOSPC`; the existing lossless stderr pipe had no destination-failure owner (`core-before.json`).
`core-process.js` now owns destination error/premature-close handling. It reports the failure once through a warning/status, detaches the failed destination and resumes stderr consumption. Writes to an unusable log are not queued. Healthy logging retains its existing lossless backpressure. Once the destination fails, unavailable diagnostic bytes cannot be persisted: the explicit warning is intentional, not a claim of lossless disk-failure recovery. No generic logging framework or core-killing fallback was introduced.
In the final source **real Electron main** runtime, the same genuine `EISDIR` occurred while a real disconnected native core started. Main survived, the core reached `ready`, `profile_get` returned `{ok:true, result:{exists:false,...}}`, shutdown exited code 0, and ownership/pending count ended at `running=false`, `pending=0`. This exercises actual filesystem failure and actual child pipes, not only fake streams.
### Medium: exited child remained available for new IPC until stdio close
The first audit moved cleanup from `exit` to `close`, correctly fixing failed spawn ownership, but also left status `ready` after process exit while pipes drained. A controlled child emitted `exit` without `close`; a new request remained pending instead of immediately returning `core_unavailable`.
Exit now revokes command availability/readiness immediately. **Buffered stdout is not discarded:** already-issued requests can still receive their final responses, and final events are delivered until stdio close. Close disposes readline/log/child ownership and resolves unanswered requests with `core_exited`; their existing command deadlines remain in force while draining. A late `ready` cannot resurrect the exited core. Failed spawn still receives close cleanup without requiring an exit event.
The final regression checks a successful response and a disconnected event arriving after exit, one unanswered request settled by close, a rejected new request and a suppressed late-ready resurrection. An intermediate blanket stdout gate was rejected during review and is not in the final implementation.
### Medium: capture processor failure left the microphone open
The packaged baseline, after injected `processorerror`, still reported `capturing=true`, a `live` fake microphone track and no error notification. Final source reports `capturing=false`, ends the track immediately and reports a capture error; explicit subsequent capture produces frames. Processor listeners are removed on teardown, including partially constructed graphs.
The final code uses removable event listeners. An intermediate property-handler implementation passed its simplistic unit callback but did not respond to synthetic native event dispatch in this Electron runtime; that implementation was rejected. The real-Electron regression is why callback-only unit evidence was not treated as sufficient.
### Medium: rejected capture closure was silently forgotten
With `AudioContext.close()` rejected by the harness, the baseline stopped the track but forgot its still-running context and acquired another microphone. The final engine retains the failed context and reports the failure. An explicit later start retries its closure **before** acquiring a new microphone; continued rejection rejects that start. No periodic/background retry or arbitrary resource cap was added.
Final real-context injection observed `retryOutcome="injected close refusal"`, original track `ended`, original context still `running`; after restoring the real close operation, explicit recovery closed that original context and acquired capture successfully. The retained failed context is deliberate ownership, not evidence that the rejected operation magically freed native resources. Playback close rejection has an equivalent deterministic regression: no replacement context is created until the retained context can close. That playback rejection case is a controlled Web Audio stub test, not a hardware/native close-failure observation.
### Medium: explicit playback initialization could succeed with unusable playback
The packaged baseline's successful `init()` left a deliberately suspended context `suspended`, and reused a deliberately closed context. It also did not handle a failed playback processor or settle diagnostics whose replies could no longer arrive.
Explicit initialization now resumes an interrupted/suspended context, or releases/rebuilds terminal playback resources. Failure closes partial resources; a rejected close retains the context and rejects recovery rather than silently creating overlapping contexts. Recovery initialization is single-flight. Processor failure resolves outstanding diagnostic waiters with `null` and prevents further writes to the failed processor; no automatic retry loop is installed.
Recreation preserves the last applied volume/output selection before connecting the replacement graph. This is engine state retention, not a second persisted-preferences layer. A regression discovered during this pass prevented the proposed recovery from resetting gain to 100%. Controlled tests prove `17%` and a **nondefault** `selected-output` survive plain explicit `init()`, then a new sink selection retains gain. A separate test uses the actual `voice.startAudio()` / `voice.chooseOutputDevice()` consumer with saved `out-1` → `out-2` and verifies `0.17` gain. The real Electron smoke additionally measures gain `0.17000000178813934` and sink `default`; that runtime result alone is **not** proof of nondefault physical-device selection.
## Paired runtime results
Final paired fixture, same reusable script:
- Baseline: `baseline-final/result.json`, UTC **11:38:38.429–11:38:42.041**, failed consumer assertions.
- Source: `source-final/result.json`, UTC **11:38:42.369–11:38:44.396**, all assertions passed, zero page errors.
- Both: Electron **44.9.3**, Chromium **152.0.7977.167**, Node **24.22.0**.
| Observation | Packaged baseline | Final source |
| --- | --- | --- |
| Capture processor-error track / capturing | live / true | ended / false |
| Error surfaced for capture failure | no | yes |
| Failed capture close followed by new start | acquired another microphone | rejected before acquisition |
| Explicit retry after restoring real close | original context still running until harness cleanup | original context closed |
| Explicit init after playback suspension | suspended | running |
| Explicit init after playback closure | same closed context | replacement running context |
| Failed-worklet diagnostic with suppressed reply | timed out in harness | settled null |
| Silent frames received after final output selection | 1/1 | 1/1 |
The unchanged one-second capture ACK fallback was exercised with a **real suspended capture context**, not just a fake timer: final source closed it after **1010.1 ms**, with tracks ended immediately. The existing persistent playback context remained identical and running through that capture stop. This confirms the failure-path deadline and separation; it is not a new latency improvement or a heap/RSS savings measurement.
## Other paths examined and evidence limits
- Existing generation checks still reject stale microphone/module/resume completion; failed or superseded starts cannot replace a newer capture. Focused behavior tests cover these paths and graph construction failure. A permission promise that never resolves is not claimed to be cancellable by the Web API; stale completion is cleaned up when it arrives.
- Stopping capture replaces its message callback with the stop-ACK handler, closes the port and removes graph/track listeners. The capture-specific context design and persistent healthy playback were preserved.
- Voice forwarding requires the current core transmit acknowledgement, including latest-request epochs; mute/deafen/disconnect gating remains intact. Rust `set_transmit` clears its input queue and ends its burst before answering. These facts do **not** prove every cross-thread queued-PCM scheduling boundary. No causal consumer-visible privacy/mode-switch failure was established in this bounded pass, so no speculative timestamp/epoch protocol rewrite was shipped.
- The selected-output recovery path and consumer reapplication are behavior-tested. Arbitrarily reordered native device switches and real device removal were not established as defects or exercised on physical hardware; no speculative output queue/retry abstraction was added.
- Main/preload source inspection found no new subscription ownership change needed. Main's trusted IPC/validation and preload unsubscribe boundaries were left unchanged. No main/preload source edits were required.
- Pending playback-stat requests on a live but indefinitely unresponsive worklet remain outside the terminal `processorerror`/closed-context recovery guarantee. No polling, forced GC, or generic diagnostic timeout framework was added.
- This pass does not repeat the previous native heap/RSS experiment and makes no new total-memory-savings claim. It proves specific failure ownership/settlement behavior, not absence of every leak, indefinite browser promise, driver interruption or live TS6 audio glitch.
## Verification and reproduction
- `focused-final.json`: **36/36** focused tests passed at UTC 11:38:36–11:38:38, covering audio-engine, core-process, voice-capture and voice-transmit.
- `nondefault-routing-final.json`: both selected-output and actual voice-consumer recovery tests passed at UTC 11:40:25.
- Earlier `*-before.json` records retain failing consumer assertions, including genuine filesystem failure. Intermediate unsuccessful runtime attempts are preserved as evidence, not reported as final passes.
- Source real-Electron command: `node scripts/audit-audio-failures.mjs --out C:/Users/Admin/tmp/teamspeach-audit2-20261024/audio/source-final --core --verify`.
- Packaged integration command: `node scripts/audit-audio-failures.mjs --exe <new TeamsPeach.exe> --out C:/Users/Admin/tmp/teamspeach-audit2-20261024/audio/packaged --core --verify`.
- Full-suite/final-package integration belongs to the coordinating workstream; this report records only the focused/source verification actually exercised here.
Only reusable audit code and intentional evidence were kept. No throwaway product scaffolding, production fault injection, periodic GC, version bump, tag or publication was added.
+117
View File
@@ -0,0 +1,117 @@
# Glass, shell and voice integration — 2026-10-29
## Artifact and provenance
Unpublished Windows x64 directory build, unchanged version **0.1.4**:
`C:/Users/Admin/tmp/teamspeach-glass-voice-20261029/build/win-unpacked/TeamsPeach.exe`
Executable SHA-256: `14c613504644d6fd2b4f8a6d0d4441a5e81c02708fb49c3a8de2e6224213c491`.
Evidence root: `C:/Users/Admin/tmp/teamspeach-glass-voice-20261029/`.
`build-provenance.json` records exact agreement for all **55 application files** in the ASAR, unchanged
source/package versions, and identical optimized-release/staged/packaged core hashes:
`79e5b81b2c2123efe13bf88f0a07e6aec59b5f7e1aa4a76a3cd05aa142e4756a`.
Only a Rust test was added; Rust production code did not change, so the existing optimized core was
packaged without a needless rebuild. The normal client and previous player-refine build were not
restarted or modified. No version bump or publication occurred.
## Bounded review and corrections
One initial multi-surface batch and one packaged correction confirmation were performed. The full
matrix measured EN/RU, dark/light, and 1280×900/880×560. It covers onboarding, connection, saved servers,
server/channel/chat/footer, all seven settings categories and video details, device/client menus,
volume/groups, connection/permission information, and action dialogs. Separate generated-media checks
cover one/two stream players, hover/focus/details, broadcaster preview, publishing controls and errors.
The initial pixel review caught broadcaster/footer buttons still using browser-default styling. The
single design correction applied the existing capsule button system and peach range accent. Compact
Audio also caused document-height overflow; containing the absolutely positioned fieldset legend
fixed it. The volume range now explicitly names its label instead of implicitly targeting the embedded
output element. Final full-size Audio shows **100%**, not `undefined`: the latter came from the initial
QA fixture incorrectly assigning the `{ok,prefs}` wrapper as preferences, not a product formatter bug.
That fixture and an asynchronous viewport-resize wait were corrected; the original results are retained.
`initial-contact-1.jpg`, `initial-contact-2.jpg`, and `final-contact.jpg` provide the bounded pixel review.
Useful full-size final captures:
- `final-ui/settings-audio-ru-light-880x560.png`: correct 100% value, label and contained scrolling.
- `final-ui/connection_info-ru-light-880x560.png`: readable vertical fields, IPv6, milliseconds and loss.
- `final-ui/client-menu-ru-light-880x560.png`: readable light material and full menu hierarchy.
- `final-broadcast/broadcast-ru-light-880x560.png`: styled, reachable action footer.
- `final-broadcast/broadcast-permission-error.png`: generated denial, no retained capture.
- `final-stage/1-player-en-dark-1280x900-hover.png`: picture-first player and over-picture controls.
- `final-stage/2-player-ru-light-880x560-hover.png`: narrow two-view actual image fill.
The semantic text-token contrast checks passed all 18 text/background combinations, minimum **4.68:1**
(light secondary text on sidebar). This is an opaque-token check, not an exhaustive pixel-level WCAG
certification of translucent composites. Full-size menu/body controls remain readable at the exercised
100% scale; main controls use 13–14 px text, with smaller metadata. Reduced motion, reduced transparency,
forced colors, named controls and keyboard focus were exercised. Blur remained limited to transient
menus/toasts, never video or the whole window. No GPU benchmark claim is made.
## Exercised final checks
All final runtime paths below launched the packaged executable through the shared safety guard.
| Check | Observed result |
|---|---|
| Full Node suite | 196 total; **195 passed**, one opt-in test skipped, zero failures; `artifact://1162` |
| Full Rust suite | **66 unit + 5 integration passed**, one externally supplied PCM matrix ignored in ordinary run; existing unused `sensitivity` warning |
| Isolated electron-builder | `--win --x64 --dir --publish never`, passed |
| Whole-surface renderer | **176 cases, 551/551 checks**, zero renderer errors; `final-ui/result.json` |
| Generated WebRTC players | **16 cases, 220/220 checks**, zero renderer errors/capture/native requests; `final-stage/result.json` |
| Broadcaster | **14 checks**, eight locale/theme/viewport previews plus generated lifecycle/error cases; `final-broadcast/result.json` |
| Titlebar | Eight locale/theme/viewport cases, System theme, outer-view geometry and safety passed; `final-titlebar/result.json` |
| Functional shell | **6 checks**, including scrolled sidebar and DPR 1.25; `final-shell/result.json` |
| Packaged stale-audio regression | **600 raw frames, 580 accepted, 20 stale dropped** after a 600 ms renderer stall; `final-voice-stall/capture.json` |
The titlebar measured exactly 32 px, flat background, 1 px divider, no gradient/shadow, `drag` surface and
`no-drag` native-control region. Native Windows overlay buttons are OS-drawn and absent from renderer
screenshots. OS dragging, Snap, native maximize/minimize, caption double-click, shortcuts, fullscreen/PiP,
and Linux/macOS runtime behavior were deliberately **not** exercised or newly claimed.
Functional shell evidence verifies pointer x850 opens a 310 px menu at x540 (true side flip), keyboard
anchor/resize/submenu bounds, actual scrolled row anchoring, and zero connection commands from the saved
heading's pointer/Space activation. Connection information presents **45 fields in two vertical records,
zero spreadsheet columns**, preserving the exact 64-bit count `9,007,199,254,740,993`, raw records, selectable
IPv6 and meaningful 2.5%/millisecond/byte/rate units. The removed detached bookmark toggle has no shim.
Measured contained picture geometry, not decoder resolution:
| Window | Views | Video element per view | Actual contained image per view | Chat height |
|---|---:|---:|---:|---:|
| 1280×900 | 1 | 992×449 | 798×449 | 303.6 |
| 880×560 | 1 | 600×251 | 446×251 | 180 |
| 1280×900 | 2 | 493×449 | 493×277 | 303.6 |
| 880×560 | 2 | 297×251 | 297×167 | 180 |
Narrow two-view pictures fill 100% of their tile width (66.6% of element area), preserving the prior
picture-first fix rather than merely passing an overflow test. Media identity survives resize/collapse;
stopping one viewer leaves the other advancing. Generated VP8/silent Opus RTP is not live TS6 stream or
subjective quality proof.
The design detector ran once and returned five warnings: existing meter width transition (reported
for CSS and HTML), keyboard-key bottom border, initially source-less dynamically populated hidden host
banner, and the intentional offset peach button elevation shadow. The key/banner reports are contextual
false positives; the small meter transition remains a known pre-existing performance warning. No broad
cleanup or repeated detector/render loop followed.
## Audio conclusion and limits
See `voice-timed-20261029.json` and `voice-official-source-20261029.json` in this directory for the audio
worker's source and measured evidence. Two 190-second fake-file speech/silence captures each produced
9,500 frames at fixed 48 kHz mono with EC/NS/AGC enabled; the six real native encode/decode configurations
were measured before and after. The baseline did **not** reproduce progressively worsening barrel-like
coloration. The demonstrated defect was stale MessagePort speech replay after a renderer stall; capture-
context sample timestamps now discard frames older than 200 ms. DSP preferences and channel bitrate
mapping were not reset or changed. The packaged 12-second regression independently confirmed 20 stale
frames discarded with the same settings, disconnected and with no output sink.
This fixes the measured backlog defect, **not a proven complete explanation or cure for the reported
natural-microphone symptom**. Real microphone/official-client subjective fidelity, network behavior,
Asahi/M1 runtime, native platform capture, whisper and macOS application audio retain their prior limits.
All windows were invisible, unfocused, nonfocusable and offscreen, with muted webContents and disposable
profiles. Shared guards reject visible/native activation and mismatching packaged main code. There were
no OS keys, clipboard operations, private pixel capture, audible output/test tones, live moderation or
server connections. All media/content was generated or explicitly labelled fixture data.
+21
View File
@@ -0,0 +1,21 @@
{
"command": "C:/Users/Admin/.cargo/bin/cargo.exe build --manifest-path core/Cargo.toml --bin teamspeach-core --offline && node scripts/probe-app-audio.mjs",
"workingDirectory": "C:/Users/Admin/Desktop/projects/TeamsPeach",
"source": "Observed tool completion bg_162; copied verbatim stdout below, not a rerun",
"exitCode": 0,
"stdout": "{\"pass\":true,\"isolatedGeneratedPid\":34584,\"wanted440Amplitude\":0.009642124074526451,\"excluded997Amplitude\":0.000005607464553938791,\"isolationDb\":64.70812357360697,\"stopMs\":13.422399999999925,\"staleRejected\":true,\"invalidRejected\":true,\"privateAudioCaptured\":false,\"windowsShown\":false}\n",
"buildOutput": " Compiling teamspeach-core v0.1.4 (C:\\Users\\Admin\\Desktop\\projects\\TeamsPeach\\core)\n Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.40s\n",
"limits": [
"This evidence predates final hostAncestors metadata and callback-owned activation input lifetime changes; QA must rebuild and test those changes.",
"Owned generated tones used 1 percent amplitude on existing default output. They could be audible; headless does not mean inaudible. No system volume/routing change was made.",
"The new fixture now refuses playback without an explicitly confirmed isolated waveOut endpoint. No such endpoint has been established; no further tone runs were performed by this worker.",
"This is standalone native capture evidence, not native-to-WebRTC receiver proof. Bridge worker reported a separate receiver RMS0 result.",
"No Linux audio-daemon or macOS implementation/runtime proof is represented."
],
"linuxContractEvidence": {
"command": "C:/Users/Admin/.cargo/bin/cargo.exe test --manifest-path core/Cargo.toml --bin teamspeach-core app_audio --offline",
"source": "Observed tool completion bg_161",
"stdout": "running 3 tests\ntest app_audio::linux_contract_tests::tests::proc_stat_handles_parenthesized_names ... ok\ntest app_audio::linux_contract_tests::tests::identity_uses_start_time_serial_and_exact_monitor ... ok\ntest app_audio::linux_contract_tests::tests::controlled_executable_output_and_failure ... ok\n\ntest result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 63 filtered out; finished in 0.14s\n",
"limits": "Compiled/executed on Windows, not Linux. Predates final small Linux cancellation-error distinction."
}
}
@@ -0,0 +1,110 @@
# Non-stream memory audit — 2026-10-24
## Scope and safety
This audit covers Electron main/preload/core-process ownership, renderer audio, chat, snapshot/tree/media caches, device menus, settings and reconnect teardown. Stream-specific evidence is in [stream-pipeline-audit-20261024.md](stream-pipeline-audit-20261024.md).
All runtime workloads launched the real application with fresh disposable profiles. They never connected to a TeamSpeak server, recorded a physical microphone, changed the normal profile, or closed/restarted the user's existing client. Audio was either generated silence or Chromium's explicitly enabled fake device. Synthetic snapshots/images are marked fixture data, not evidence of live-server interoperability. No version bump, tag or publication was performed.
Raw JSON and native-inclusive V8 heap snapshots are under `C:/Users/Admin/tmp/teamspeach-memory-audit-20261024`. Reusable workloads are `scripts/audit-memory.mjs` and `scripts/audit-memory-state.mjs`.
## Verified defects and fixes
### High: capture processors and native source ownership
Before changes, 125 start/stop cycles on the long-lived audio context retained 125 native `MediaStreamAudioSourceNode` objects and 125 capture `AudioWorkletNode` objects. The baseline native heap contained 127 worklets total (two playback processors, including the workload's playback engine), 126 streams, and three contexts. JavaScript worklet-wrapper counts stayed at two: wrapper-only measurements would have missed the leak. Track listeners increased from 125 after warm-up to 484 at cycle three.
Disconnecting the graph, stopping the tracks and clearing the main-side port callback were insufficient. The capture processor always returned `true`. Explicit termination removed the processors, but sources remained until context closure; the same behavior occurred with Chromium fake-device capture, not only shared generated-stream clones.
`audio/engine.js` now keeps playback in its persistent 48 kHz context and gives each capture lifetime its own 48 kHz context. Stopping immediately stops tracks, removes track listeners and disconnects capture. The processor acknowledges its terminal `process()` return; only then is its port/context closed. A one-second deadline releases an unresponsive/suspended processor. A subsequent capture waits for that closure. Stops while module loading, microphone acquisition or resume is pending close only the superseded capture's resources. Playback is not closed, replaced or suspended.
The acknowledged generated-audio run's native heap contained zero capture sources, two playback worklets, one generator stream and three contexts. The shorter fake-device source run still contained 96 native `MediaStream` objects immediately after the repeated cycles, despite zero capture sources and only three contexts: that result alone did **not** prove stream retention eliminated. In the final matched packaged fake-device workload, JavaScript-query stream counts progressed 5→45→85→97, then fell to zero after the identical twelve-second settle; the native-inclusive heap then contained one generator stream, versus 126 before the fix. Baseline query counts remained 125 after the same settle. Thus the transient fake-device retention clears in this workload; it is not a proven permanent leak or a guarantee of bounded behavior under every long-running capture rate. JS wrapper query counts and native heap counts are different measures and must not be interchanged.
An attempted immediate close, before processor acknowledgement, retained closed native contexts/worklets. That intermediate experiment was rejected; final code waits for the processor. Chromium WebAudio inspector node-destroyed notifications also do not reliably enumerate every node discarded with a context. The workload records context closure and, critically, checks actual native objects in the heap snapshot rather than treating stale graph events as proof of a leak.
Tradeoff: capture restarts load a capture module/context once per microphone/test/device-switch lifetime, never per PCM frame. Matched packaged fake-device mean start time increased from 9.88 to 18.86 ms, including acquisition and any previous teardown wait. These are workload observations, not physical-device latency guarantees. Normal cycles completed without the one-second fallback; the extra start time is on the order of milliseconds, not a measured standalone ACK latency. All 125 generated playback frames reached the unchanged running playback context. The intentionally sparse frames produce normal prebuffer underruns, not an audio-quality benchmark.
### High: active chat DOM exceeded its existing history limit
Chat stored at most 500 messages but appended DOM rows forever until switching/re-rendering the tab. At 3,500 generated messages the baseline had 3,500 rows and 29,516 DOM nodes; a re-render alone reduced that to 500 rows and 5,432 nodes.
`chat.js` now removes only DOM rows already evicted by the existing 500-message policy. It rebuilds the retained first row's author header and compensates for removed height while the user is reading above the bottom. It does not re-render the complete history per arrival, reduce message capacity, or cap conversations. Real Electron regression checks 500 rows, first retained message 2 after 502 arrivals, a valid first header, unchanged visible scroll anchor (0 px), and private-tab close cleanup.
At cycle three the corrected generated run had 500 rows, 5,516 DOM nodes and 109 listeners. Final matched packaged results below use the same fake device and settle method, rather than comparing different capture sources.
### Medium: obsolete image versions accumulated until disconnect
`media.js` cached every avatar hash/banner/icon ever requested in a connection. A synthetic real-renderer workload kept ten current avatar images visible while changing their hashes twenty times: 200 live blob URLs / 4,110,800 bytes remained before the fix.
`pruneMedia(snapshot)` retains all current snapshot references, including off-screen channel/group icons, and revokes only obsolete entries. Pending results are revoked when they eventually finish. Existing per-element generation/signature guards prevent old image completions from replacing current UI. No arbitrary image count or byte cap was introduced.
The same workload after the fix held ten URLs / 205,540 bytes at every checkpoint (3,905,260 bytes of obsolete image payload eliminated), all ten current images rendered, and zero URLs after disconnect. Tests include pending-download eviction and current non-visible resource preservation.
### Medium: reconnect history retained entire snapshots
The translated welcome message closed over the full snapshot, so preserved server chat retained old client/channel arrays after disconnect. Twenty synthetic reconnects plus the avatar workload retained 21 tagged snapshots. Capturing only the server name/version scalars leaves zero old snapshots while preserving chat history and translation. Post-disconnect JS heap in this workload decreased from 5,935,648 to 3,552,972 bytes (2,382,676 bytes). This is synthetic state, not a live-server size estimate.
### Medium: failed audio initialization retained a partial context
An injected first module-load failure left a running context and permanently cached the rejected initialization promise. Retrying never attempted module load again. Initialization now closes partial resources, clears failed readiness and allows a later explicit retry. Real Electron failure/retry and unit regressions both exercise this behavior.
### Medium: core failure cleanup and stderr backpressure
`core-process.js` cleaned up only on child `exit`, which is not emitted after a spawn failure. Cleanup now uses `close` (after stdio closes, including failed spawn), clears readiness callbacks and pending requests, closes the log and releases child ownership. Failure status is preserved. Shutdown waits for the same terminal event.
Core stderr previously wrote to the log without honoring its backpressure. It now uses lossless stream piping, which pauses reading instead of accumulating writes behind a stalled log. A stalled-writable regression checks this behavior. No diagnostic output is silently dropped by this change.
## Verification and interpretation
- Full Node suite after both agents' changes: 107 tests, 106 passed, one explicitly opt-in live-update test skipped, zero failures.
- Real Electron source state workload: current images retained, obsolete blobs released, 21→0 old snapshots, no microphone request and no page error.
- Real Electron fake-device source workload: native capture source count zero; persistent playback context identity/running state and 125/125 delivered frames preserved; chat grouping/scroll/tab checks passed; injected initialization retry passed.
- Capture regressions cover late microphone results, newer starts, module/resume cancellation, graph failure, processor acknowledgement, immediate track shutdown, and the unresponsive-worklet deadline/restart path.
- Heap collection is **test-only**: two CDP `HeapProfiler.collectGarbage` calls after a 500 ms settle at every checkpoint, identically before/after. Final packaged comparison also uses an identical twelve-second settle. There is no product forced-GC/working-set trim.
Heap snapshots themselves allocate substantially and can raise process peak RSS/private bytes. Prefer pre-snapshot matched checkpoints; distinguish JS heap, native/embedder heap, retained object counts, and Windows process working set/private bytes. A high Electron baseline or unreclaimed allocator pages alone is not a leak. These fixes remove specific ownership defects; they do not promise that Electron's RSS becomes tiny.
## Coverage and limitations
- Preload subscriptions return removal callbacks; renderer initialization subscriptions are app/window-lifetime, not repeatedly mounted per view. No general subscription rewrite was needed.
- Device menu close removes document/window listeners; repeated open/close workloads left no menus or accumulating menu listeners. Settings panels reuse existing DOM. Translation dynamic text uses a `WeakMap`, not a global strong element registry.
- Snapshot/talking state is replaced/pruned; tree reconciliation removes absent rows. Private conversations intentionally preserve history and remain user-closeable. Bookmarks are persistent user data, not an evictable cache.
- Playback PCM stays a 200 ms bounded worklet ring; the existing transfer copy is needed for the IPC-owned view. Rust input is bounded to ten frames with non-adjacent end markers, stdio output is bounded, and per-client receiver queues have 50-packet limits and remove ended/lost speakers. No speculative Rust rewrite or extra frame-dropping policy was introduced.
- Core requests have response/timeout/close cleanup, but aggregate request concurrency and generic Electron IPC/MessagePort queues are not end-to-end credit-controlled. This audit did not flood a stalled renderer/core with legitimate chat/audio or add arbitrary caps that drop them. Readline's inbound line buffering relies on the local trusted core protocol. These remain load-boundary limitations, not claims of measured ordinary-session leaks.
- Playback-stat requests still depend on a responsive worklet. The current diagnostics do not poll them indefinitely; no generic retry/telemetry framework was added.
- Real microphone hardware, private sessions, sustained live-server workloads and all operating systems were deliberately not exercised. The stream report separately limits its local generated-media FPS conclusions.
## Final packaged integration and measured savings
Built with `node node_modules/electron-builder/cli.js --win --x64 --dir --publish never --config.directories.output=C:/Users/Admin/tmp/teamspeach-memory-audit-20261024/build`, after the final full suite passed 106 tests with one opt-in live-update skip (107 total). No release was published. The old running build was not overwritten.
The same `audit-memory.mjs --capture fake` workload ran against the original packaged baseline and the new package, with `--verify` on the latter. Both performed five warm-up captures, three batches of forty captures/1,000 chat messages/twenty menu mounts, then an identical twelve-second settle and test-only GC. Files: `packaged-before-settled.json/.heapsnapshot` and `packaged-after-settled.json/.heapsnapshot` in the raw evidence directory.
| Settled pre-snapshot measurement | Before | After |
|---|---:|---:|
| Chat rows | 3,500 | 500 |
| DOM nodes | 29,384 | 5,384 |
| JS event listeners | 484 | 109 |
| Native capture source nodes (heap) | 125 | 0 |
| Native worklet nodes including two playback nodes (heap) | 127 | 2 |
| Native contexts (heap) | 3 | 3 |
| Native streams including generator (heap) | 126 | 1 |
| JS used heap, bytes | 3,768,344 | 3,716,472 |
| Embedder used heap, bytes | 7,407,384 | 2,192,040 |
| Renderer private bytes, KiB | 79,848 | 78,688 |
| Renderer working set, KiB | 143,884 | 144,104 |
| Renderer peak working set before snapshot, KiB | 157,636 | 183,276 |
| Main RSS, bytes | 123,039,744 | 122,109,952 |
| Main private bytes, KiB | 83,296 | 82,636 |
This removes 5,215,344 bytes (4.97 MiB) of retained embedder heap in the combined workload, but only 1,160 KiB (1.13 MiB) of settled renderer private bytes. Renderer working set did **not** decrease, and peak working set increased from context churn. These are not blanket total-RAM savings. Separately, the state workload removed 3,905,260 bytes of obsolete blob payload and 2,382,676 bytes of JS heap from old snapshots; these figures must not be summed as one live-client measurement.
The packaged workload passed native heap, persistent playback identity/running state, 125/125 frames, failed-init recovery, chat-header/scroll/tab-close and page-error checks. The packaged `smoke-stream-view.mjs` passed production stream UI, local generated audio/video, fullscreen click/keyboard/native Escape, failure handling and teardown; `captureRequests=0`. Its evidence is `packaged-stream-ui/result.json` and screenshots. This is integration proof, not live TS6/server FPS proof. A second agent's read-only cross-review of capture cancellation/ACK/deadline/playback and chat anchoring found no concrete blocker.
Artifact: `C:/Users/Admin/tmp/teamspeach-memory-audit-20261024/build/win-unpacked/TeamsPeach.exe` (local unreleased 0.1.4). SHA-256:
```text
TeamsPeach.exe c9d2cff57cd905971bcd5f3e393ee4c54ceed3635ba3ec94f4e86bf72a37db07
resources/app.asar 96ea250138ae0a83e09f333550760060bf3bdf953a76cae78eccae4750fac59c
resources/core/teamspeach-core.exe eedda14684106ddfe20bf6d1c4dfcfcfef67c2418b54dba620850c3831e8e52d
```
@@ -0,0 +1,29 @@
{
"source": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/TeamSpeak.dll",
"sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"scope": "Static disassembly, no server invocation or interoperability claim",
"image_base": "0x180000000",
"commands": [
{
"verb": "clientavatardeleted",
"constructor": "0x1814bddd0",
"verb_lea": "0x1814bde07",
"verb_string_va": "0x182770280",
"argument": "cluid",
"argument_string_va": "0x1827700a4",
"argument_loop": "0x1814bde40..0x1814bde90",
"send_virtual_call": "0x1814bdeae",
"official_js": "main.js@1630100 deleteServerAvatar(handler.id,uid,callback)"
},
{
"verb": "vsgroupassignbyids",
"verb_lea": "0x1814b8e7d",
"verb_string_va": "0x182770340",
"argument": "json",
"argument_string_va": "0x182770354",
"serialize_call": "0x1814b8ee0",
"send_virtual_call": "0x1814b8f01",
"payload_source": "official main.js assignServerGroupMembers; version1/add, uid length>32 client_uid else migration, vs_group_id string"
}
]
}
@@ -0,0 +1,36 @@
{
"source": "Installed TeamSpeak 6.0.0.5163 TeamSpeak.dll and html/client_ui/main.js",
"dll_sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"scope": "Static source/disassembly; no messages sent, no server connected",
"js": {
"channel_RequestSendTextMessage": 2129244,
"permission_action": 2353775,
"api": "requestSendChannelTextMsg(sc_handler_id,message,channel_id,callback)",
"caution": "API argument alone is not proof of arbitrary channel targeting on classic wire"
},
"native": {
"channel_function": "0x1814b85f0",
"verb": "sendtextmessage",
"verb_reference": "0x1814b862c",
"targetmode": 2,
"targetmode_value_instruction": "0x1814b8666",
"targetmode_key_va": "0x1827700b0",
"msg_key_va": "0x18276ce94",
"msg_append": "0x1814b86b9",
"send": "0x1814b86da",
"fields": [
"targetmode",
"msg"
],
"absent_fields": [
"target",
"cid",
"channel_id"
],
"direct_caller": "0x18143af0c",
"comparison_private_function": "0x1814b8710 writes targetmode=1 and target",
"comparison_server_function": "0x1814b8860 writes targetmode=3 and msg"
},
"pinned_declaration": "Messages.toml913-915 example sendtextmessage targetmode=2 msg=hi; generic optional target does not prove channel-target support",
"conclusion": "Classic own-channel send is source-backed. Arbitrary non-own-channel legacy delivery is not established; preserve own-channel-only UI/native routing and label this boundary. No conclusion about separate Matrix/decentralized/account paths."
}
@@ -0,0 +1,629 @@
{
"schema": "teamspeach-official-parity-features/1",
"generated": "2026-11-01",
"scope": "Strictly without account (user decision). Remote Apps API excluded. Local CSS theme extensions included.",
"source": {
"officialUi": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/html/client_ui/main.js",
"sha256": "9d6bea2ee5333086555c36584621c1b3462a83042ce746d3229d6766a9b82c39",
"hashNote": "Hash taken from docs/evidence/voice-official-source-20261029.json; not recomputed in this session (no shell). Opus table excerpt unchanged at col 2328340.",
"offsetUnit": "column on line 2 of the minified bundle",
"tsDeclarations": "~/.cargo/git/checkouts/tsclientlib-b9d0d0212095a0c5/ee3bc6f/utils/tsproto-structs/declarations/Messages.toml",
"extensionsSpec": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/docs/{Extensions.md,extensions.json}"
},
"statusLegend": {
"implemented": "present in TeamsPeach with existing evidence (see FEATURE_COMPATIBILITY.md)",
"partial": "some official behaviour present; remaining parts listed in missing",
"missing": "can be built without an account; not built",
"blocked": "external dependency other than an account",
"excluded": "needs myTeamSpeak/cloud or was excluded by the user",
"unverified": "source names known; behaviour or wire format not established",
"notReproduced": "dead or no-op in the official client",
"awaiting_execution": "Source owner reports implementation; current final suite/runtime proof not yet executed. Not a pass.",
"implemented_controlled_verified": "Implementation exercised by named controlled unit/native/renderer fixtures; not a live server or native hardware claim.",
"runtime_partial_pending": "Some real runtime acceptance still unresolved; not complete."
},
"inferenceNote": "verbs marked inference=true are standard TS3/TS6 protocol verbs not seen in plain text in the bundle; native call names are observed, but their native implementation is not visible and is not assumed to be copyable bit-for-bit",
"features": [
{
"id": "identity.multi",
"owner": "AstraIdentity",
"status": "implemented_controlled_verified",
"official": "tsclient_internal.getIdentities col 2713034; settings.identity.* (new, import from file, use as default, delete warning, per-identity nickname, related bookmarks, 'Used for your Homebase' excluded)",
"contract": "local identity list; default identity; per-saved-server identity choice; nickname per identity, falling back to the identity name; profile.lock writes coordinated with ParityMultiServer",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/identity/result.json",
"qa-confirmation/onboarding/result.json"
]
}
},
{
"id": "identity.security_level_improve",
"owner": "AstraIdentity",
"status": "implemented_controlled_verified",
"official": "improveIdentity(uuid,targetLevel), abortImproveIdentity, getIdentityQuality, GetIdentityImproving col 2723047; server.connection_blocked.security_level_needed",
"contract": "background hash-cash key-offset search to a target level, cancellable, with progress; on a 'security level needed' connect error offer to improve. tsproto-types has the level computation [inference: method name not checked]",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/identity/result.json",
"qa-confirmation/onboarding/result.json"
]
}
},
{
"id": "onboarding.offline",
"owner": "AstraVisual",
"status": "implemented_controlled_verified",
"official": "first_launch.offline.* (create username, not synced, not unique), first_launch.theme; myTS create/login steps excluded",
"contract": "show only the offline steps (username, theme pick); no login visuals",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/onboarding/result.json"
]
}
},
{
"id": "connection.multi",
"owner": "AstraConnections",
"status": "implemented_controlled_verified",
"official": "server_connection_handlers[], FindAudioInputServerConnectionHandler col 2706048; toolbar.mute/unmute all/current; settings.audio.microphone.mute_automatically, reactivate_previous_target",
"contract": "several sessions; mic sends only on the first connection with input on; optional auto-activate mic on the viewed server; restore the previous target on leave",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/menu/result.json"
]
}
},
{
"id": "connection.capabilities",
"owner": "AstraCore",
"status": "implemented_controlled_verified",
"official": "hasFeature col 2420323-2420803: MATRIXCHAT/HTTPFT/s3/STREAM_P2P/STREAM_SFU substring tests on capabilityExtensions",
"contract": "tap initserver (+notifyserveredited/updated) for virtualserver_capability_extensions (Messages.toml:329,475); confirm the separator from a raw capture",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/menu/result.json"
]
}
},
{
"id": "channel.crud",
"owner": "AstraCore",
"status": "implemented_controlled_verified",
"official": "CreateChannel col 1605294; setChannelProperties col 2128308; requestChannelMove(sc,cid,parent,order) col 2126548; getChannelInfo col 2125045",
"contract": "channelcreate/channeledit/channelmove/channeldelete/channelgetdescription/channelsubscribe/channelunsubscribe",
"inference": true,
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/accountfree-surfaces/result.json"
]
}
},
{
"id": "server.admin",
"owner": "AstraCore",
"status": "implemented_controlled_verified",
"official": "server.banlist/privilege_keys/temp_passwords/snapshots/edit/log/client_list strings",
"inference": true,
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/accountfree-surfaces/result.json"
]
}
},
{
"id": "client.away_talkpower",
"owner": "AstraCore",
"status": "implemented_controlled_verified",
"official": "AwayStatus hotkey col 2287178; requestClientSetIsTalker/requestIsTalker col 2160054; GrantTalkPower/RevokeTalkPower col 2353696; moderation_queue.*",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/menu/result.json",
"qa-confirmation/accountfree-surfaces/result.json"
]
}
},
{
"id": "client.local_volume",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "setClientVolumeModifier(sc,clid,dB,persist)/getClientVolumeModifier col 2159645; ts-client-volume -> audio-fader-taper col 3247821; mm2db/db2mm col 3254904: dB range -200 (treated as silence)..+10, 0.5 dB steps; piecewise taper over 0..100 travel: +10..-10 dB over the first 48%, -10..-40 by 84%, -40..-60 by 96%, -60..-200 by 100%; Alt-click resets to 0 dB; menu Reset = modifier 0 + unmute col 1616938",
"contract": "store a dB modifier; gain = 10^(dB/20); fader uses the official taper; max +10 dB; per-UID persistence when persist=true",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/menu/result.json",
"qa-confirmation/accountfree-surfaces/result.json"
]
}
},
{
"id": "voice.transmit_modes",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "settings.audio.vad.mode automatic/hybrid/volume_gate; broadcast descriptions continuous/vad/ptt/vad+ptt; PTT release delay 300 ms default off",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json"
]
}
},
{
"id": "voice.dsp",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "capture Agc, Denoise, DenoiserLevel, TypingSuppression, Vad, VadMode, VadLevel; playback Aec, Agc, ComfortNoise, ComfortNoiseLevel, EchoReductionLevel (ducking), AgcExperimentalMode; per-device DSP map; buildCaptureDspBlob",
"note": "official DSP is native (not visible in UI source); independent implementation required, never claimed bit-identical",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json"
]
}
},
{
"id": "voice.devices",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "default device, notifications device, device-unavailable recovery prompts, record test, output volume, notification volume -23",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json"
],
"deviceTest": "test/audio-device-test.test.mjs + test/voice-transmit.test.mjs in final318pass Node log; generatedPCM, not physicalaudio"
}
},
{
"id": "voice.3d",
"owner": "-",
"status": "notReproduced",
"official": "hotkey category Sound3D=592 dispatch is a no-op (col 2287178); no 3D settings strings",
"contract": "do not implement"
},
{
"id": "whisper.all",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "see official-parity-feature-matrix.md rows 1.1-1.7",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/whisper/result.json"
]
}
},
{
"id": "whisper.receive_mode_transport",
"owner": "AstraAudio",
"status": "implemented_controlled_verified",
"official": "setWhisperReceiveMode native; HandleIgnoredWhisperEvent",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/whisper/result.json"
]
}
},
{
"id": "whisper.block_hotkey",
"owner": "-",
"status": "notReproduced",
"official": "modes declared col 2290690, never dispatched"
},
{
"id": "hotkeys.global",
"owner": "AstraAudio+AstraConnections",
"status": "implemented_controlled_verified",
"official": "categories col 2288791; getLocalHotkeys col 2301839; startInputRecording col 2323037; Wayland portal strings",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/whisper/result.json"
]
},
"limit": "Windows and Linux backends are implemented; Linux x64 tests and ARM compilation succeeded. Actual global registration/Wayland portal runtime intentionally unexecuted. macOS global shortcuts are unsupported: core/src/hotkeys.rs open_backend cfg(not(any(windows,target_os=linux))) returns unavailable."
},
{
"id": "files.legacy",
"owner": "AstraFiles",
"status": "implemented_controlled_verified",
"official": "downloadFile col 1368733; ignoreTransfers col 1282551; transfer speed limit col 2412867",
"inference": true,
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/accountfree-surfaces/result.json",
"qa-confirmation/i18n/result.json"
]
}
},
{
"id": "files.httpft_s3",
"owner": "AstraFiles",
"status": "blocked",
"official": "decentralDownloadFile when HTTPFT; getTransferQuota col 2726741",
"evidence": {
"source": [
"docs/evidence/ts6-filetransfer-native.json",
"docs/evidence/ts6-filetransfer-native-continuation.json"
]
},
"blocker": "Exact endpoint/base URL, headers/verb values, notification payload mappings and controlled newer-storage server are unavailable"
},
{
"id": "recording.local",
"owner": "AstraRecordThemes",
"status": "implemented_controlled_verified",
"official": "startRecording/stopRecording/pauseRecording col 2719053; server.recording.*",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/accountfree-surfaces/result.json"
]
}
},
{
"id": "chat.server_plain_send",
"owner": "AstraChat",
"status": "implemented_controlled_verified",
"official": "requestSendPrivateTextMsg col 2160054; requestSendChannelTextMsg(sc,msg,channel_id) col 2353696",
"limit": "Sending legacy channel text to a non-own channel remains unverified and is not covered by the successful own-channel/private controlled fixtures. No claim of arbitrary-channel delivery or permission interoperability.",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "chat.history_local",
"owner": "AstraChat",
"status": "implemented_controlled_verified",
"official": "saveChatMessage col 2147052; getChatMessages col 2139200",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "chat.format",
"owner": "AstraChat",
"status": "implemented_controlled_verified",
"official": "chat.input.slash.markdown.*, settings.chat.markdown_help.*; BBCode note col 1380733",
"contract": "own parser; sanitized; link scheme allowlist http/https/mailto + trusted hosts; remote images off by default",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "chat.ts3file_links",
"owner": "AstraChat+AstraFiles",
"status": "implemented_controlled_verified",
"official": "chat.attachment.ts3file.*",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "chat.matrix_features",
"owner": "-",
"status": "excluded",
"official": "tschat_redactMessage col 2630785 (edit/delete/react/pin/reply/attachments/typing/rooms)"
},
{
"id": "chat.unread_badge",
"owner": "AstraChat",
"status": "implemented_controlled_verified",
"official": "setBadgeText col 1372575",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "notifications",
"owner": "AstraRecordThemes",
"status": "implemented_controlled_verified",
"official": "settings.notifications.* (104), sound/default/",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json"
]
}
},
{
"id": "themes.extensions",
"owner": "AstraRecordThemes",
"status": "implemented_controlled_verified",
"official": "getInstalledThemes col 2726741; applyUserStyle col 1369443; refresh at most every 300000 ms col 1370314; docs/extensions.json",
"contract": "local schema-validated packages, restricted scheme, no remote content or scripts; real --tsv-* compatible hooks or say clearly that only the format is compatible",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/user-styles/result.json"
]
}
},
{
"id": "appearance.options",
"owner": "AstraRecordThemes",
"status": "implemented_controlled_verified",
"official": "settings.appearance.* (display size, chat style, tree style, badges [account, excluded], channel banners, channel background, commander lamp, clients before channels, country flags, contact highlight [excluded], sidebar icon mode, language)",
"note": "visual tokens/markup by OfficialVisualParity; settings behaviour by ParityThemes",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json",
"qa-confirmation/shell/result.json"
]
}
},
{
"id": "streams.p2p",
"owner": "AstraStreams",
"status": "implemented_controlled_verified",
"note": "viewing proven live; publishing verified with generated media",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/broadcast/result.json"
],
"generatedPublisher": "qa-final/publisher/result.json"
}
},
{
"id": "streams.extras",
"owner": "AstraStreams",
"status": "implemented_controlled_verified",
"official": "video.* (join request block/deny, viewer kick/ban, presets 360-1440/source/presentation, audio bitrate 64-320, app audio scope, hide/show, pop-out, stats, camera capabilities via postMessage getCameraCapabilities col 1935411)",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/stage/result.json",
"qa-confirmation/broadcast/result.json",
"qa-final/publisher/result.json"
]
},
"limit": "macOS selected-application audio capture remains UNIMPLEMENTED (CoreAudio/TCC/backend prerequisite); Windows/Linux scope is not a cross-platform completion claim. Standalone child native OSR viewport0x0 recorded; authorized test-only CDP960x600 verifies renderer/media lifecycle, not ordinary native painting."
},
{
"id": "streams.sfu",
"owner": "AstraStreams",
"status": "blocked",
"official": "mode SFU=2, sfuEndpoint/sfuUserId/publicSessionId col 1950353; UI gated by STREAM_SFU col 3736805; requestsfuaccessinfo/notifysfuaccessinfo + mediasoup verbs native only",
"blocker": "Token origin/renewal, authoritative URL/TLS, exact values/types/optional response branches and mediasoup-to-Chromium SDP mapping unproven; no controlled SFU endpoint exercised.",
"evidence": [
"docs/evidence/official-parity/sfu-native-inspection.json",
"docs/evidence/official-parity/sfu-request-construction.json",
"docs/evidence/official-parity/server-sfu-prerequisite.json"
],
"contract": "track as residual high-impact blocker; no generic mediasoup 'success' fake; UI reports SFU streams as unsupported"
},
{
"id": "os.settings",
"owner": "AstraRecordThemes",
"status": "implemented_controlled_verified",
"official": "settings.os.windows.* (autostart, taskbar flash message/poke, hide in taskbar on close/minimize, mute mic when locked)",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/i18n/result.json"
]
}
},
{
"id": "privacy.local",
"owner": "AstraChat",
"status": "implemented_controlled_verified",
"official": "reset confirmations, trusted external hosts, allow trusting flagged sites",
"note": "chat privacy / remote images / history pages",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": [
"qa-confirmation/chat/result.json"
]
}
},
{
"id": "privacy.analytics",
"owner": "-",
"status": "excluded"
},
{
"id": "dev.options",
"owner": "-",
"status": "excluded",
"note": "No analytics or skip-permission-checks developer toggles in strict account-free scope",
"evidence": {
"unit": "qa-final/node-final-package.log; qa-final/native-suite-unit-pass.log; qa-final/native-bridge-summary.json",
"runtime": []
}
},
{
"id": "remote_apps",
"owner": "-",
"status": "excluded"
},
{
"id": "myts.account_cloud",
"owner": "-",
"status": "excluded",
"items": [
"login/create/2FA/recovery/badges/usertags/chat id/mobile token",
"bookmark/whisper/hotkey/identity sync",
"contacts/presence/ignore",
"direct/group chats, homebase",
"direct calls",
"dashboard/discovery/hosting/invites/GIPHY/store",
"myTS avatar upload and avatar states",
"contacts-based whisper receive modes and contact-only streams"
]
}
],
"verification": {
"node": {
"passed": 318,
"failed": 0,
"skipped": 1,
"evidence": "qa-final/node-suite.log"
},
"windowsNative": {
"unitPassed": 152,
"bridgePassed": 5,
"ignored": 1
},
"linux": {
"unitPassed": 154,
"bridgePassed": 5,
"arm64CrossBuild": true,
"arm64Executed": false,
"evidence": "qa-final/linux-summary.json"
},
"visual": {
"metricsPassed": 224,
"metricsTotal": 224,
"wholeIdentity": false,
"evidence": "qa-confirmation/parity/result.json"
},
"shell": {
"cases": 324,
"checks": 1001,
"evidence": "qa-confirmation/shell/result.json"
},
"package": {
"version": "0.1.4",
"publication": "never",
"path": "C:/Users/Admin/tmp/teamspeach-official-parity-20261101/build/win-unpacked",
"sourceFileCount": 144,
"archiveByteMismatches": [],
"manifest": "qa-final/package-manifest.json"
},
"streamStage": {
"passed": 249,
"cases": 16,
"captureRequests": 0,
"nativeRequests": 0,
"evidence": "qa-confirmation/stage/result.json"
}
},
"evidenceRoot": "C:/Users/Admin/tmp/teamspeach-official-parity-20261101",
"scopeLimits": [
"SFU authentication/token/SDP negotiation unresolved; no configured controlled endpoint",
"HTTPFT/S3 endpoint/payload/header mapping unresolved; no speculative legacy fallback",
"Independent DSP is not official private native DSP bit identity",
"macOS selected application audio remains unimplemented",
"No Asahi ARM execution or physical microphone/speaker/camera/appcapture/globalhook/portal runtime",
"Electron44.9.3 standalone OSR viewport0x0; authorized test-only CDP viewport proves renderer adoption/media not normal visible window painting",
"macOS global shortcuts unsupported (explicit unavailable backend branch)",
"Legacy non-own-channel text delivery specifically unverified; no arbitrary-channel interoperability claim"
],
"runtimeSuites": [
{
"suite": "onboarding",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/onboarding/result.json"
},
{
"suite": "i18n",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/i18n/result.json"
},
{
"suite": "identity",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/identity/result.json"
},
{
"suite": "whisper",
"ok": true,
"checks": 3,
"evidence": "qa-confirmation/whisper/result.json"
},
{
"suite": "chat",
"ok": true,
"checks": 6,
"evidence": "qa-confirmation/chat/result.json"
},
{
"suite": "titlebar",
"ok": true,
"checks": 13,
"evidence": "qa-confirmation/titlebar/result.json"
},
{
"suite": "user-styles",
"ok": true,
"checks": 23,
"evidence": "qa-confirmation/user-styles/result.json"
},
{
"suite": "accountfree-surfaces",
"ok": true,
"checks": 2,
"evidence": "qa-confirmation/accountfree-surfaces/result.json"
},
{
"suite": "shell",
"ok": true,
"checks": 1001,
"cases": 324,
"evidence": "qa-confirmation/shell/result.json"
},
{
"suite": "parity",
"ok": true,
"checks": 7,
"evidence": "qa-confirmation/parity/result.json"
},
{
"suite": "stage",
"ok": true,
"checks": 249,
"cases": 16,
"evidence": "qa-confirmation/stage/result.json"
},
{
"suite": "menu",
"ok": true,
"checks": 8,
"evidence": "qa-confirmation/menu/result.json"
},
{
"suite": "shell-behavior",
"ok": true,
"checks": 6,
"evidence": "qa-confirmation/shell-behavior/result.json"
},
{
"suite": "broadcast",
"ok": true,
"checks": 14,
"evidence": "qa-confirmation/broadcast/result.json"
}
]
}
@@ -0,0 +1,206 @@
{
"schema": "teamspeach-official-parity-qa/1",
"complete": true,
"scope": "Reachable account-free implementation acceptance; not100%TS6interoperability",
"version": "0.1.4",
"node": {
"passed": 318,
"failed": 0,
"skipped": 1,
"evidence": "qa-final/node-suite.log"
},
"native": {
"unitPassed": 152,
"bridgePassed": 5,
"ignored": 1
},
"linux": {
"sourceArchiveSha256": "d60b6bf8a8d40c789c16bb95c2c611bd14b76890a7423ba00972506de7558322",
"toolchain": "rustc/cargo 1.96.0; cached rust:1-bookworm",
"limits": {
"cpus": 2,
"memory": "2g",
"swap": "none",
"sourceMount": "read-only",
"vendorMount": "read-only"
},
"x64": {
"unitPassed": 154,
"ignored": 1,
"bridgePassed": 5
},
"arm64": {
"build": "dev unoptimized",
"exitCode": 0,
"initialFailure": "Two simultaneous rustc processes SIGKILL under2GB; jobs1 resumed successfully",
"sha256": "6a690607f60c11a0eb54067185c7fd2fa8d48c46a726b19926ac6a9b8b7e88a2",
"loadAlignment": 65536,
"page16384": "passed",
"glibc": "GLIBC_2.34",
"executed": false
},
"remoteCleanup": {
"ownedPath": "/tmp/teamspeach-parity-linux-20261101-zKipMPyB",
"removed": true,
"containersRemaining": 0,
"hostInstall": false,
"servicesRestarted": false
},
"scope": "Linux x64 tests and ARM cross-build only; no native global hooks/portals or Asahi hardware operation"
},
"runtimeSuites": [
{
"suite": "onboarding",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/onboarding/result.json"
},
{
"suite": "i18n",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/i18n/result.json"
},
{
"suite": "identity",
"ok": true,
"checks": 4,
"evidence": "qa-confirmation/identity/result.json"
},
{
"suite": "whisper",
"ok": true,
"checks": 3,
"evidence": "qa-confirmation/whisper/result.json"
},
{
"suite": "chat",
"ok": true,
"checks": 6,
"evidence": "qa-confirmation/chat/result.json"
},
{
"suite": "titlebar",
"ok": true,
"checks": 13,
"evidence": "qa-confirmation/titlebar/result.json"
},
{
"suite": "user-styles",
"ok": true,
"checks": 23,
"evidence": "qa-confirmation/user-styles/result.json"
},
{
"suite": "accountfree-surfaces",
"ok": true,
"checks": 2,
"evidence": "qa-confirmation/accountfree-surfaces/result.json"
},
{
"suite": "shell",
"ok": true,
"checks": 1001,
"cases": 324,
"evidence": "qa-confirmation/shell/result.json"
},
{
"suite": "parity",
"ok": true,
"checks": 7,
"evidence": "qa-confirmation/parity/result.json"
},
{
"suite": "stage",
"ok": true,
"checks": 249,
"cases": 16,
"evidence": "qa-confirmation/stage/result.json"
},
{
"suite": "menu",
"ok": true,
"checks": 8,
"evidence": "qa-confirmation/menu/result.json"
},
{
"suite": "shell-behavior",
"ok": true,
"checks": 6,
"evidence": "qa-confirmation/shell-behavior/result.json"
},
{
"suite": "broadcast",
"ok": true,
"checks": 14,
"evidence": "qa-confirmation/broadcast/result.json"
}
],
"visual": {
"metricsPassed": 224,
"metricsTotal": 224,
"wholeIdentity": false,
"evidence": "qa-confirmation/parity/result.json"
},
"shell": {
"cases": 324,
"checks": 1001,
"evidence": "qa-confirmation/shell/result.json"
},
"stage": {
"passed": 249,
"cases": 16,
"captureRequests": 0,
"nativeRequests": 0,
"evidence": "qa-confirmation/stage/result.json"
},
"artifacts": [
{
"path": "win-unpacked/TeamsPeach.exe",
"bytes": 246841856,
"sha256": "e29499710dacadab747b8913bd1c40380d725b2f4c6087590efafae11d4b67da"
},
{
"path": "win-unpacked/resources/app.asar",
"bytes": 12582816,
"sha256": "09748966b47af58af93dde449fc839af58c4d42ad0a44d9f3a96201986af4717"
},
{
"path": "win-unpacked/resources/core/teamspeach-core.exe",
"bytes": 11193856,
"sha256": "d1db694209aabf9dc1056397b341a34d99d29e538549000ec6bf05c55767d467"
},
{
"path": "linux-arm64-debug/teamspeach-core",
"bytes": 34418904,
"sha256": "6a690607f60c11a0eb54067185c7fd2fa8d48c46a726b19926ac6a9b8b7e88a2"
},
{
"path": "linux-x64-debug/teamspeach-core",
"bytes": 35248632,
"sha256": "e24c82c9939c07943a087b283c39976a394e428696373e256109d0f589ede9de"
}
],
"limits": [
"SFU authentication/token/SDP negotiation unresolved; no configured controlled endpoint",
"HTTPFT/S3 endpoint/payload/header mapping unresolved; no speculative legacy fallback",
"Independent DSP is not official private native DSP bit identity",
"macOS selected application audio remains unimplemented",
"No Asahi ARM execution or physical microphone/speaker/camera/appcapture/globalhook/portal runtime",
"Electron44.9.3 standalone OSR viewport0x0; authorized test-only CDP viewport proves renderer adoption/media not normal visible window painting",
"macOS global shortcuts unsupported (explicit unavailable backend branch)",
"Legacy non-own-channel text delivery specifically unverified"
],
"evidenceRoot": "C:/Users/Admin/tmp/teamspeach-official-parity-20261101",
"artifactRoot": "C:/Users/Admin/tmp/teamspeach-official-parity-20261101/build",
"sourceManifest": "qa-final/package-manifest.json",
"fullFeatureMatrix": "docs/evidence/official-parity/final-feature-matrix.json",
"visualExamples": [
"qa-confirmation/parity/teamspeach-dark-ru.png",
"qa-confirmation/parity/teamspeach-light-en.png",
"qa-confirmation/i18n/en-audio-1280.png",
"qa-confirmation/accountfree-surfaces/admin-channel.edit-ru-dark.png",
"qa-confirmation/accountfree-surfaces/recording-active-ru-dark.png",
"qa-confirmation/accountfree-surfaces/files-browser-ru-dark.png"
]
}
@@ -0,0 +1,34 @@
{
"date": "2026-11-01",
"feature": "Standalone stream pop-out",
"runtimeEvidenceOwner": "AstraQA",
"runtimeEvidence": "C:/Users/Admin/tmp/teamspeach-official-parity-20261101/qa-confirmation/stage/result.json",
"observed": [
"QA reports the actual hidden, nonfocusable, muted offscreen child loads app://teamspeach/stream-popout.html and receives the adopted player DOM.",
"QA reports child innerWidth/innerHeight and html/body/host/player/video rectangles remain zero; hidden=false and display block/flex, stylesheets loaded.",
"QA reports child.setContentSize(960,600,false) after exact-document load does not initialize that offscreen guest viewport.",
"QA reports all 214 preceding stage checks pass and media identity preservation passes after correcting its asynchronous readiness predicate. This worker did not rerun those checks."
],
"sourceDiagnosis": {
"status": "Source-supported explanation; not debugger-confirmed against the native binary",
"version": "Electron 44.9.3 (project pinned dependency)",
"sources": [
"https://raw.githubusercontent.com/electron/electron/v44.9.3/shell/browser/api/electron_api_web_contents.cc",
"https://raw.githubusercontent.com/electron/electron/v44.9.3/shell/browser/osr/osr_web_contents_view.cc",
"https://raw.githubusercontent.com/electron/electron/v44.9.3/lib/browser/guest-window-manager.ts"
],
"trace": [
"MaybeOverrideCreateParamsForNewWindow constructs OffScreenWebContentsView and assigns CreateParams.view/delegate_view.",
"AddNewContents uses CreateAndTake -> owned-WebContents constructor -> InitWithSessionAndOptions. AddNewContents rebinds SetCallback but does not call OffScreenWebContentsView::SetWebContents.",
"The normal explicitly created offscreen WebContents constructor does call view->SetWebContents(web_contents.get()) immediately after content::WebContents::Create.",
"OffScreenWebContentsView::GetView returns null while its web_contents_ is unset. OnWindowResize calls view->SetSize(GetSize()) only when GetView returns non-null; SetNativeWindow also delegates resizing to OnWindowResize.",
"guest-window-manager.ts both custom and default window creation wrap the same pre-created guest WebContents. Simply changing custom createWindow to default did-create-window does not add the missing native SetWebContents call."
]
},
"boundaries": [
"No visible window, focus, native fullscreen/PiP, private capture, physical device or audible output was used by this worker.",
"Ordinary production native-window presentation is not runtime-verified by this safe offscreen test.",
"No CSS visibility override, synthetic positive test result, dependency binary modification or debugger emulation was applied to hide the zero-viewport failure.",
"A CDP-emulated viewport would need separately labeled evidence and cannot be reported as unmodified native offscreen paint success."
]
}
@@ -0,0 +1,226 @@
# Official TS6 visual parity — QA harness (2026-11-01)
## Current result: exact-design correction, 2026-11-01
### Committed correction checkpoint
Implementation commit `e6464bc` preserves the accumulated implementation and the final source-backed
correction batch. `commit-verification/` under the evidence root below measures app.asar
`3fa8f1fbe6beb3804426aaaf48b3bf819ed5b5d7c9ff20b492171da6967f68ec` with fresh official captures:
40 pairs, no blocked captures or harness errors, 40 strict visual failures. Instrument self-tests
and the permanent bottom-anchor/history-reading resize regression passed.
Both renderers now use Electron's normal acceleration policy. The former reference driver called
`disableHardwareAcceleration()` while the product did not, causing different text/SVG rasterization.
Historical screenshots remain unchanged; percentage differences across those policies are not a
controlled before/after measure of product code alone.
Current dark/en/1553×998 whole-screen differences: full chat 0.43%, short chat 0.25%, empty chat 1.16%,
Audio 2.66%, Appearance 2.79%. Full/short chat still fail because bookmark/tree regions exceed 0.5%;
passing the whole-image threshold does not override failed regions. Account-only settings, absent
bookmark folders, supported DSP differences and additional product settings remain explicit deviations.
There are also residual geometric differences, especially narrow content and empty-chat presentation;
this checkpoint is not completion of the exact-design task.
`commit-controls/result.json`: real overflow formatting actions and submenus, narrow category placement
below the server actions, widening restoration; zero page errors/capture attempts.
`empty-chat-behavior/result.json`: localized prompt visibility follows draft and send eligibility;
zero page errors/capture attempts. `commit-chat/result.json`: packaged history persistence/restart,
scope isolation and hostile-text safety passed. Complete Node suite passed after integration.
The native core was reused unchanged; no fresh native/ARM compatibility proof is claimed.
The reconstructed reference described below is historical. The owner's rejection led to
`scripts/official-pair-capture-offscreen.mjs`, which compares the actual product with the installed
official Vue frontend running in a hidden, network-denied renderer with synthetic native-bridge data.
The official installation and profile are not changed. Font files now match the original Noto 2.013
under the OFL; non-brand SVG provenance is in `LICENSES/teamspeak-client-icons-PROVENANCE.md`.
The refreshed actual-frontend run **did not pass visual acceptance**: 168 pairs at 1553×998,
1280×800 and 880×800, all evaluated, none blocked, none fully passing. It covers both languages,
both themes and all 14 screen states. This supersedes the earlier 224-pair run for coverage at
supported sizes; the 860px cases remain below the product's 880px minimum.
Evidence root: `C:/Users/Admin/tmp/teamspeach-exact-design-20261101/`.
- `confirmed-pairs/pair-report.json` and `.md`: full refreshed matrix and per-region strips;
its `BUILD-MANIFEST.json` identifies app.asar `e056599c0840344cac7860aa487c2494f04845bf35c9c2ed14f30d023ff5fae6`.
- `final-confirmation/`: focused 32-pair run after content-box chat spacing and nested preview zoom
corrections, app.asar `bd1441db2a66ef1249934dcfcaba162796b75240d812449942d4791bbe77be96`.
All captures completed; all pairs still failed at least one region. This is not a full-matrix rerun.
- `build/BUILD-MANIFEST.json`: latest isolated Windows build, version 0.1.4, unchanged native core.
Later chat-resize changes are verified separately below, not retroactively attributed to earlier captures.
- After fixing import-time DOM listener registration, the complete Node test command passed:
`node --test --test-reporter=dot "test/*.test.*"`. The existing live release-list test stays skipped.
- `final-smoke/chat/result.json`: passed after the initialization fix, including main-process history restart,
cross-identity isolation and hostile text rendering. No network requests or page errors.
- `final-smoke/controls/result.json`: packaged dropdown open/Escape and keyboard slider/SVG-knob
interaction passed; no page errors or physical capture requests.
- `final-smoke/accountfree/result.json`: administration rejection/acknowledgement, scoped recording
controls and file browsing passed in both languages/themes using synthetic server responses.
- `final-smoke/broadcast/result.json`: all 14 checks passed after fixing narrow Russian footer overlap,
including all eight language/theme/size combinations, explicit publish/approval, cancellation,
source changes and denial. Media is generated canvas video, not physical screen or microphone capture.
The new paired harness retains its 16/255 channel tolerance, 0.5% differing-pixel threshold and 1px
box tolerance. Corrections to the instrument: chat timestamp comparison uses painted viewport text
rather than virtualized-versus-retained DOM rows; already-excluded caption rectangles remain excluded
inside overlapping scored regions; both clients receive all four canonical synthetic audio endpoints
and the explicit default-device metadata. The instrument's self-test passed, including clipped versus
virtualized text and nested exclusions. No ordinary content is excluded to hide a visual mismatch.
`confirmed-behavior/result.json`: passed actual packaged selection/persistence checks for country
flags, tree order/background/commander, keyboard icon-mode changes/focus, language flags, bookmark
save/add/disclosure and new/closed connection tabs. Zero page errors and zero capture attempts.
The fixture explicitly binds the local identity and gives no connected server microphone ownership;
earlier diagnostic runs reached the rejecting getUserMedia stub when closing a tab, never a device.
`confirmed-chat/result.json`: passed real main-process history IPC/restart, scoped history isolation,
hostile text and local rich-text hydration; no page errors or network requests.
Chat resize regression: `chat-resize-before/result.json` reproduced a 119px gap after narrowing a
bottom-pinned conversation. `chat-resize-after/result.json` passes on app.asar
`cf487d7417e31dcbc44dc6f4af21a98cfadb543d08fdaa8af74b2c22dfbc952e`: wide/narrow bottom gap 0px;
the separate lookback case stays at scrollTop 0 instead of jumping 629px to the bottom. No page errors.
The production fix ignores resize-induced scroll events when recording reading intent and observes
both the log viewport and the composer's content box. `checkChatResize` in the paired harness keeps
the behavioral regression; it does not make the visual threshold easier to pass.
`chat-resize-confirmation/` exercised that permanent regression and eight main-screen captures in
both languages/themes at 1553×998 and 880×800: no blocked captures or harness errors, but all eight
still fail the strict visual gate.
Latest focused dark/en/1553×998 whole-screen differences: main/full 0.9%, main/few 0.4%, Audio 3.0%,
Appearance 6.5%. A whole-image value below 0.5% does not pass if any scored region fails. Search and
connected-server geometry now match in this configuration; bookmark folder artwork, toolbar details,
system timestamps, supported-settings composition and narrow settings navigation still differ.
The source has account-bound badge/contact controls and a multilevel denoise control absent from the
product's actual capabilities; nonfunctional replicas were not added. Language help remains truthful
about immediate application instead of claiming the official client's restart requirement.
The static design detector still reports source-style/contrast/layout findings; no clean accessibility
audit is claimed and no blanket detector suppression was installed. Native devices/platform
interoperability are not established by these fixtures. Exact-design acceptance remains open.
## Historical reconstructed-reference method
`scripts/smoke-official-parity-offscreen.mjs` compares the **actual TeamsPeach renderer** with a
**reconstructed official reference**, metric by metric. It is a measurement gate, not an impression.
## Reference (reconstructed, never product code)
- `scripts/lib/official-ts6-reference.mjs` reads the installed client UI in place
(`%LOCALAPPDATA%/Programs/TeamSpeak/html/client_ui`) and refuses to run if hashes drift:
`main.css` `bc700401…34adf`, `main.js` `9d6bea2e…82c39`, `index.html` `96c60720…f793`.
It resolves the active style layers from the bundle's own webpack request maps (no hard-coded ids):
`main.css` → platform module (`window.os` switch; windows → empty module 55629, linux → 97870) →
`./teamspeak.{dark,light}.scss` (css modules 8165 / 4115). `:root` tokens are resolved per theme with
source + character offset. Root-relative font URLs are rewritten to the installed directory in a
transient temp page only; nothing from the bundle is written to the repository or packaged.
- `scripts/lib/official-ts6-template.mjs` builds the DOM from the official compiled render functions
(offsets in comments: content header @2975904, screenshare tile @4070145 scope 6eee7636, system chat
row @3305157 scope 5c102790, chat input @3561667 / toolbar order @3517745, tool menu @3872578,
ts-list-simple-cell @3222136, ts-button @3109151, tree channel/client @4119733/@4140768). Icons are
size-only placeholders; labels come from the installed official locale files. Items marked
INFERENCE (slim layout, default tree density, menu backdrop, TSButton for toolbar) are not proven.
- Both sides render the same labelled synthetic data (`FIXTURE`), including official-locale event
sentences, so region crops are class-matched, same-data comparisons.
## Validation of the reference against real official captures
`--official-shots <dir>` locates the user's private official screenshots by sha256 (never copied,
cropped into outputs, or committed) and probes regions with Electron `nativeImage`. Result on
2026-11-01, dark/ru: **22/22 probes pass** — titlebar/header/composer fills, channel header 71 px,
header separator 4 px `#1C2539`, player border 2 px `#2b3346`, chat system rows 23 px with 27 px pitch,
row gradient start `#131824`, bold names `#acacac`, sentence `#697a97`, time `#697a97`·0.75, menu
text `#fff`, captions `#697a97`, destructive `rgb(255,130,130)`, plain menu items 30 px and submenu
items 34 px, menu title colour. Captures are dark only; light values are source-derived, not captured.
The captures are cropped at the top, so the 44 px window-bar height is a source token, not observed.
## Comparison
56 class-matched metrics × {dark, light} × {en, ru} at the user-reference 1553×998 viewport: header fill/height/title type and
platform font/separator/mode buttons; player tile border/radius/fill/name label size, colour and
insets; system rows height/pitch/radius/fill/text, emphasised names, time stamps and visible time
colour; composer container, toolbar presence/height/fill/11 official buttons, actions; context menu
radius/size/item heights/colours/captions/destructive/outer width and actual backdrop gradient/opacity/blur;
tree row heights, name size/colours, pane fill. Colours ±2 per channel, sizes ±1 px, counts/fonts exact
(actual face via CDP `CSS.getPlatformFontsForNode`, while the menu remains mounted). Translucent popup
fill is compared by its actual compositing styles rather than mismatched background pixels. The source
runtime modifier caps the reconstructed outer popup at 260 px (`local://official-popup-width-trace.json`).
Outputs: `result.json`, `metrics.md`, full captures, region crops and labelled side-by-side comparisons.
## Safety
Both windows are hidden, nonfocusable, offscreen and muted (shared launch guard; the reference window
gets the same guard and a separate partition with permissions denied and non-file requests cancelled).
No server, official runtime/native bridge, account service, OS input, clipboard, capture device, native
presentation, normal profile or audible output. The stream tile uses generated local WebRTC media
(`scripts/lib/generated-stream.mjs`, shared with the stage smoke).
## Run
```
node scripts/smoke-official-parity-offscreen.mjs --out <dir> [--official-shots <dir>] [--exe <packaged exe>]
node scripts/smoke-official-parity-offscreen.mjs --reference-only --official-shots <dir> # reference targets + validation only
```
A pass of every metric is required before claiming visual parity for these regions. Feature parity is
tracked separately and is not established by this harness.
## Limits — no full-identity claim
The reference uses empty, size-only icon placeholders and synthetic data, so whole-region pixel
identity is neither measured nor claimed; region crops are for review, not a pass criterion. The
available official captures are the owner's cropped dark-theme screenshots of different content: they
validate the 22 regional probes above only. Light theme, the window-bar height, icons/glyph artwork,
hover/animation states, settings pages and every feature behaviour are outside this evidence.
## Reference coverage
The reconstructed reference is a component sheet, not a full-application reference. It must never be
cited as screenshot parity for the whole official client.
| Region | Measured (class-matched) | Validated on official capture | Excluded / not representative |
|---|---|---|---|
| Window caption bar | — (native overlay; title bar test) | fill `#121a2c` | 44 px height (source token `--tsv-header-window-bar-height`; captures cropped) |
| Channel/content header | fill, 71 px height, title type/colour/font, separator, mode-button count | 71 px, fill, 4 px separator | icon artwork, button glyphs, button placement detail |
| Player tile | border, radius, fill, name label size/colour/insets | 2 px border colour/width | hover capsule controls, viewer/volume overlays, pagination, more/pop-out buttons |
| Chat system rows | height, pitch, radius, gradient fill, text/name/time colours, emphasis, time count | all of these | avatars, text messages/bubbles, timestamps format beyond HH:MM - weekday |
| Composer | container fill/border/radius, input size, toolbar presence/height/fill/button count, action count | message-field fill | toolbar icons (blank placeholders; only "Others" label renders), emoji/attach/send glyphs |
| Client context menu | radius, size, fill, item heights, text/title/caption/destructive colours, caption count, width | colours, plain 30 px / submenu 34 px items | icon glyphs, avatar in title row, submenus |
| Server tree | channel 44 px / client 40 px rows, name size/colours, pane fill | — (no tree capture) | channel/client icons, channel cards/banners, talk/mute indicators, compact density choice (INFERENCE) |
| Sidebar pane, settings, dialogs, onboarding, stream setup | — | — | not reconstructed; need separate source-component checks |
Final acceptance therefore also requires a full three-pane screenshot of the actual product compared
against the user's source images and the source component constraints (icon placement, text alignment,
cards, rich controls). No-overflow checks alone are not acceptance.
Fonts: the official family is `"Noto Sans"` loaded from the official bundle's own `@font-face` file.
Platform-font metrics only match if TeamsPeach ships a separately licensed Noto Sans (SIL OFL 1.1, from
the upstream Noto project, with its licence in `LICENSES/`) — never the official bundle's font file.
Without it Chromium falls back (e.g. Segoe UI on Windows) and the platform-font metrics fail.
## Connection-aware feature execution
Synthetic server events carry `connectionId`; request fixtures implement `(connectionId, command, args)`.
The disposable application's real initial native connection is retained rather than replaced with a
fake connection manager. Generated transport sources are keyed by connection and stream ID, including
two simultaneous native processes with colliding stream IDs. The stage suite exercises hide/show,
focus/strip, paging, drag/keyboard ordering and internal overlays without starting native presentation.
`smoke-official-shell-offscreen.mjs` captures every rendered settings category, not a hard-coded set of
legacy panels. `smoke-i18n.mjs` checks bound strings in both languages through the real renderer. Catalog
symmetry and placeholder formatting have consumer unit tests; dynamic local namespace helpers are not
treated as standalone catalog keys. `smoke-identity-offscreen.mjs` drives create/edit/default/delete and
cancellation against the real native identity CLI. `smoke-whisper-offscreen.mjs` drives actual local
storage/restart and real disconnected-core rejection; it does not claim a successful server whisper route.
The final package uses a separate Cargo target directory and an explicit temporary builder config;
normal `core/target`, `core-bin`, `dist`, version and publication state are unchanged. Runtime helpers use
the isolated executable through the packaged-source safety guard. Authored scripts/tests are not evidence
of a pass until their result/log is recorded in the final feature matrix.
Final execution: 224/224 component metrics passed; full-shell 324 cases / 1,001 checks passed and actual
three-pane/settings/menu/admin/recording/file-browser pixels were inspected. The stream stage passed
249 checks with three real generated receivers across two native connection processes, no physical
capture request and no fullscreen/native-PiP request. Standalone child media identity/restore is proven
with explicitly authorized **test-only CDP viewport emulation**: Electron 44.9.3's actual offscreen guest
started at 0×0. The native size and emulation are retained in evidence; ordinary visible-window painting
is not claimed. See `popout-offscreen-limitation.json` and `final-feature-matrix.json`.
@@ -0,0 +1,9 @@
{
"scope": "Read-only configured teamspeak SSH host, SQLite mode=ro, schema inspection and an exact nonsecret server-property allowlist. No TS client joined, no server/configuration/database mutation, no user/credential/token/message records read.",
"server": "teamspeak (10.10.10.160)",
"database": "/opt/teamspeak-server_linux_amd64/tsserver.sqlitedb",
"observed": {"server_id": 1, "virtualserver_sfu_endpoint": "", "virtualserver_storage_quota": "4294967295"},
"not_present_in_queried_storage": ["virtualserver_capability_extensions", "instance property names matching %sfu% or %capability%"],
"limits": ["An empty persisted SFU endpoint does not establish runtime feature flags or all server configurations.", "No live TS6 protocol handshake, access-token acquisition or SFU transport was exercised.", "No configured endpoint was found here for controlled SFU interoperability verification."],
"transport": "ssh-manager read-only commands; ssh:// reader refused shell capability validation, so documented SSH command route was used."
}
@@ -0,0 +1,143 @@
{
"binary": "C:\\Users\\Admin\\AppData\\Local\\Programs\\TeamSpeak\\TeamSpeak.dll",
"sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"method": "Read-only PE section/unwind table parsing and Capstone x64 RIP-relative references; no native code execution, profile or server access.",
"commandsObserved": [
"create-stream",
"transport-connect",
"transport-produce",
"set-paused",
"join-request",
"join-response",
"consume-stream",
"close-stream",
"main-producer-changed",
"close-consumer-producer",
"update-codec-support"
],
"references": [
{
"va": "0x1815f6923",
"fileOffset": 23026979,
"string": "StreamSFU: CreateStream success, id: "
},
{
"va": "0x181601582",
"fileOffset": 23071106,
"string": "responseId"
},
{
"va": "0x1816015f7",
"fileOffset": 23071223,
"string": "responseId"
},
{
"va": "0x181601726",
"fileOffset": 23071526,
"string": "responseId"
},
{
"va": "0x18257e320",
"fileOffset": 39311136,
"string": "StreamSFU: CreateStream response parse error: "
}
],
"functions": [
{
"function": "0x1815f6620",
"strings": [
{
"address": "0x1815f66b2",
"text": "StreamSFU: CreateStream request failed: ",
"op": "lea rdx, [rip + 0x1188b1f]"
},
{
"address": "0x1815f6923",
"text": "StreamSFU: CreateStream success, id: ",
"op": "lea rdx, [rip + 0x11888de]"
},
{
"address": "0x1815f6bd9",
"text": "StreamSFU: Loading Device with router capabilities: ",
"op": "lea rdx, [rip + 0x1188650]"
},
{
"address": "0x1815f6fe1",
"text": "StreamSFU: Outbound Init completed",
"op": "lea rdx, [rip + 0x11882a0]"
}
]
},
{
"function": "0x181601450",
"strings": [
{
"address": "0x181601582",
"text": "responseId",
"op": "lea rdx, [rip + 0x117dee7]"
},
{
"address": "0x1816015f7",
"text": "responseId",
"op": "lea rdx, [rip + 0x117de72]"
},
{
"address": "0x181601726",
"text": "responseId",
"op": "lea rdx, [rip + 0x117dd43]"
},
{
"address": "0x181601747",
"text": "err",
"op": "lea rdx, [rip + 0x115b8d2]"
},
{
"address": "0x181601770",
"text": "args",
"op": "lea rdx, [rip + 0x1176615]"
},
{
"address": "0x181601ba2",
"text": "cmd",
"op": "lea rdx, [rip + 0xfed573]"
},
{
"address": "0x181601bc3",
"text": "requestId",
"op": "lea rdx, [rip + 0x10004ce]"
},
{
"address": "0x181601be4",
"text": "args",
"op": "lea rdx, [rip + 0x11761a1]"
},
{
"address": "0x181601fb7",
"text": "SFU socket: unhandled msg: ",
"op": "lea rdx, [rip + 0x117d4c2]"
},
{
"address": "0x1816021d5",
"text": "cannot compare iterators of different containers",
"op": "lea rdx, [rip + 0xff1bd4]"
}
]
},
{
"function": "0x18257e300",
"strings": [
{
"address": "0x18257e320",
"text": "StreamSFU: CreateStream response parse error: ",
"op": "lea rdx, [rip + 0x200f89]"
}
]
}
],
"limits": [
"Command vocabulary and envelope fields only; complete request/response bodies and token authentication contract not recovered.",
"No server advertising STREAM_SFU or controlled SFU endpoint exercised.",
"Cannot claim an interoperable SFU implementation from mediasoup command names alone."
],
"sourceExistingProtocol": "docs/evidence/ts6-official-client.md"
}
@@ -0,0 +1,794 @@
{
"binary": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/TeamSpeak.dll",
"sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"method": "Read-only PE64 section and .pdata function ranges; Capstone RIP-relative references and request construction disassembly. No binary execution, credentials, profile or server access.",
"functions": [
{
"start": "0x1815f0130",
"end": "0x1815f0339",
"strings": [
{
"at": "0x1815f0170",
"text": "id"
},
{
"at": "0x1815f01e0",
"text": "userId"
},
{
"at": "0x1815f01e9",
"text": "Id"
},
{
"at": "0x1815f0252",
"text": "rtpCapabilities"
},
{
"at": "0x1815f025f",
"text": "ilities"
},
{
"at": "0x1815f0268",
"text": "ies"
},
{
"at": "0x1815f0273",
"text": "s"
},
{
"at": "0x1815f02e2",
"text": "filter"
},
{
"at": "0x1815f02eb",
"text": "er"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f0340",
"end": "0x1815f066f",
"strings": [
{
"at": "0x1815f0380",
"text": "id"
},
{
"at": "0x1815f03ef",
"text": "iceParameters"
},
{
"at": "0x1815f03fc",
"text": "eters"
},
{
"at": "0x1815f0405",
"text": "s"
},
{
"at": "0x1815f0472",
"text": "iceCandidates"
},
{
"at": "0x1815f047f",
"text": "dates"
},
{
"at": "0x1815f0488",
"text": "s"
},
{
"at": "0x1815f04f6",
"text": "dtlsParameters"
},
{
"at": "0x1815f0503",
"text": "meters"
},
{
"at": "0x1815f050c",
"text": "rs"
},
{
"at": "0x1815f0577",
"text": "sctpParameters"
},
{
"at": "0x1815f0584",
"text": "meters"
},
{
"at": "0x1815f058d",
"text": "rs"
},
{
"at": "0x1815f0617",
"text": "routerCapabilities"
},
{
"at": "0x1815f0621",
"text": "es"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600",
"0x1815eb9d0",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x1824d9890",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f0670",
"end": "0x1815f09c9",
"strings": [
{
"at": "0x1815f06b0",
"text": "id"
},
{
"at": "0x1815f0720",
"text": "userId"
},
{
"at": "0x1815f0729",
"text": "Id"
},
{
"at": "0x1815f07c7",
"text": "signedIdentityType"
},
{
"at": "0x1815f07d1",
"text": "pe"
},
{
"at": "0x1815f0845",
"text": "signedIdentity"
},
{
"at": "0x1815f0852",
"text": "entity"
},
{
"at": "0x1815f085b",
"text": "ty"
},
{
"at": "0x1815f08f1",
"text": "is_remove"
},
{
"at": "0x1815f08fe",
"text": "e"
},
{
"at": "0x1815f0972",
"text": "codecs"
},
{
"at": "0x1815f097b",
"text": "cs"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x1824d9890",
"0x180d72570",
"0x180d62600",
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x18150f940",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f09d0",
"end": "0x1815f0d89",
"strings": [
{
"at": "0x1815f0a10",
"text": "id"
},
{
"at": "0x1815f0a80",
"text": "userId"
},
{
"at": "0x1815f0a89",
"text": "Id"
},
{
"at": "0x1815f0b23",
"text": "accepted"
},
{
"at": "0x1815f0c1e",
"text": "transportInfo"
},
{
"at": "0x1815f0c2b",
"text": "tInfo"
},
{
"at": "0x1815f0c34",
"text": "o"
},
{
"at": "0x1815f0cab",
"text": "videoCodec"
},
{
"at": "0x1815f0cb8",
"text": "ec"
},
{
"at": "0x1815f0d2b",
"text": "audioCodec"
},
{
"at": "0x1815f0d38",
"text": "ec"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x1815f0340",
"0x180d62600",
"0x180d55400",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f0d90",
"end": "0x1815f0f2d",
"strings": [
{
"at": "0x1815f0dd0",
"text": "responseId"
},
{
"at": "0x1815f0ddd",
"text": "Id"
},
{
"at": "0x1815f0e63",
"text": "err"
},
{
"at": "0x1815f0e6d",
"text": "r"
},
{
"at": "0x1815f0ee1",
"text": "args"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x1815eb9d0",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f0f30",
"end": "0x1815f1185",
"strings": [
{
"at": "0x1815f0f70",
"text": "id"
},
{
"at": "0x1815f0fe0",
"text": "userId"
},
{
"at": "0x1815f0fe9",
"text": "Id"
},
{
"at": "0x1815f1083",
"text": "video"
},
{
"at": "0x1815f108c",
"text": "o"
},
{
"at": "0x1815f112a",
"text": "audio"
},
{
"at": "0x1815f1133",
"text": "o"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f1190",
"end": "0x1815f1318",
"strings": [
{
"at": "0x1815f11d0",
"text": "id"
},
{
"at": "0x1815f1240",
"text": "userId"
},
{
"at": "0x1815f1249",
"text": "Id"
},
{
"at": "0x1815f12b8",
"text": "dtlsParameters"
},
{
"at": "0x1815f12c5",
"text": "meters"
},
{
"at": "0x1815f12ce",
"text": "rs"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f1320",
"end": "0x1815f1548",
"strings": [
{
"at": "0x1815f1360",
"text": "id"
},
{
"at": "0x1815f13d0",
"text": "kind"
},
{
"at": "0x1815f1468",
"text": "paused"
},
{
"at": "0x1815f1471",
"text": "ed"
},
{
"at": "0x1815f14e5",
"text": "rtpParameters"
},
{
"at": "0x1815f14f2",
"text": "eters"
},
{
"at": "0x1815f14fb",
"text": "s"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x180d62600",
"0x180d72570",
"0x180d62600",
"0x180d526e0",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815f1550",
"end": "0x1815f16d0",
"strings": [
{
"at": "0x1815f1590",
"text": "id"
},
{
"at": "0x1815f1600",
"text": "userId"
},
{
"at": "0x1815f1609",
"text": "Id"
},
{
"at": "0x1815f1679",
"text": "codecs"
},
{
"at": "0x1815f1682",
"text": "cs"
}
],
"calls": [
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x1815eba70",
"0x180d72570",
"0x180d62600",
"0x18150f940",
"0x180d72570",
"0x180d62600"
]
},
{
"start": "0x1815fbf00",
"end": "0x1815fc14c",
"strings": [
{
"at": "0x1815fc002",
"text": "id"
},
{
"at": "0x1815fc061",
"text": "create-stream"
},
{
"at": "0x1815fc06e",
"text": "tream"
},
{
"at": "0x1815fc077",
"text": "m"
}
],
"calls": [
"0x181ad9fc0",
"0x18004cf20",
"0x181567b70",
"0x180cdda50",
"0x180d436f0",
"0x180d72570",
"0x180d62600",
"0x181603d90",
"0x1824d98e0",
"0x180d62600",
"0x180ce0df0",
"0x1815fb7b0",
"0x1824d9f50"
]
},
{
"start": "0x181603d90",
"end": "0x181604437",
"strings": [
{
"at": "0x18160401b",
"text": "SFU socket: send req: "
}
],
"calls": [
"0x181ad9fc0",
"0x180d1cee0",
"0x180ce6a40",
"0x180d55400",
"0x180cdc180",
"0x180cdc180",
"0x180cdc180",
"0x180d526e0",
"0x180d62600",
"0x1824d4660",
"0x1815ee7b0",
"0x1824d4680",
"0x1815efad0",
"0x180e5ff90",
"0x180d62600",
"0x180d823b0",
"0x180cdbc80",
"0x180e6d920",
"0x180cdc180",
"0x1816b1cd0",
"0x1824d98e0",
"0x1824d98e0",
"0x180d83080",
"0x181ada1c0",
"0x1824d98e0",
"0x1824d98e0",
"0x180d62600",
"0x1824d98e0",
"0x1824d98e0",
"0x1824d98e0",
"0x180d55400",
"0x180d62600",
"0x1824d9f50",
"0x1824c9d30"
]
},
{
"start": "0x1815eed80",
"end": "0x1815eeed9",
"strings": [
{
"at": "0x1815eed90",
"text": "id"
},
{
"at": "0x1815eeda7",
"text": "iceParameters"
},
{
"at": "0x1815eedea",
"text": "iceCandidates"
},
{
"at": "0x1815eee2d",
"text": "dtlsParameters"
},
{
"at": "0x1815eee70",
"text": "sctpParameters"
},
{
"at": "0x1815eee8b",
"text": "routerCapabilities"
}
]
},
{
"start": "0x1815ef160",
"end": "0x1815ef2d1",
"strings": [
{
"at": "0x1815ef1ea",
"text": "id"
},
{
"at": "0x1815ef204",
"text": "producerId"
},
{
"at": "0x1815ef21f",
"text": "kind"
},
{
"at": "0x1815ef23a",
"text": "rtpParameters"
},
{
"at": "0x1815ef284",
"text": "paused"
},
{
"at": "0x1815ef29f",
"text": "sourcePaused"
}
]
},
{
"start": "0x1815ef3a0",
"end": "0x1815ef5a4",
"strings": [
{
"at": "0x1815ef419",
"text": "id"
},
{
"at": "0x1815ef433",
"text": "userId"
},
{
"at": "0x1815ef44e",
"text": "accepted"
},
{
"at": "0x1815ef469",
"text": "transportInfo"
},
{
"at": "0x1815ef53c",
"text": "videoCodec"
},
{
"at": "0x1815ef55a",
"text": "audioCodec"
}
]
},
{
"start": "0x1815efad0",
"end": "0x1815efcc9",
"strings": [
{
"at": "0x1815efb10",
"text": "cmd"
},
{
"at": "0x1815efb1a",
"text": "d"
},
{
"at": "0x1815efb89",
"text": "token"
},
{
"at": "0x1815efb92",
"text": "n"
},
{
"at": "0x1815efc01",
"text": "requestId"
},
{
"at": "0x1815efc0e",
"text": "d"
},
{
"at": "0x1815efc7d",
"text": "args"
}
]
},
{
"start": "0x1815efcd0",
"end": "0x1815efed7",
"strings": [
{
"at": "0x1815efd10",
"text": "id"
},
{
"at": "0x1815efd80",
"text": "userId"
},
{
"at": "0x1815efd89",
"text": "Id"
},
{
"at": "0x1815efdf9",
"text": "kind"
},
{
"at": "0x1815efe7f",
"text": "consumerProducerId"
},
{
"at": "0x1815efe89",
"text": "Id"
}
]
},
{
"start": "0x1815efee0",
"end": "0x1815f0123",
"strings": [
{
"at": "0x1815eff20",
"text": "id"
},
{
"at": "0x1815eff90",
"text": "userId"
},
{
"at": "0x1815eff99",
"text": "Id"
},
{
"at": "0x1815f0033",
"text": "isKick"
},
{
"at": "0x1815f003c",
"text": "ck"
},
{
"at": "0x1815f00c7",
"text": "reason"
},
{
"at": "0x1815f00d0",
"text": "on"
}
]
}
],
"newEstablishedFacts": [
"Request serializer 0x1815efad0 writes cmd, token, requestId, args; cmd/token/requestId pass the same std::string-to-JSON constructor 0x180d436f0; args uses JSON copy 0x180d526e0.",
"0x181603d90 copies token from this+0xd30 and assigns incrementing this+0xe28 converted to string into requestId before serialization. Missing token length branches to failure.",
"create-stream at 0x1815fbf00 constructs args with id from this+0xbf0 then invokes 0x181603d90.",
"transport-connect invokes serializer0x1815f1190 (id,userId,dtlsParameters). transport-produce invokes0x1815f1320 (id,kind,paused,rtpParameters). consume-stream invokes0x1815f0130 (id,userId,rtpCapabilities,filter).",
"join-request invokes0x1815f0670 (id,userId,signedIdentityType,signedIdentity,is_remove,codecs); trustme literal occurs in caller0x1815fbbd0 but its security semantics are NOT established.",
"Transport response serializers/parsers include id,iceParameters,iceCandidates,dtlsParameters,sctpParameters,routerCapabilities. Consumer parser0x1815ef160 includes id,producerId,kind,rtpParameters,paused,sourcePaused."
],
"remainingPrerequisites": [
"Trace token origin/renewal and authenticated WebSocket URL/TLS opening from authoritative notifysfuaccessinfo; token field existence alone is not authentication interoperability.",
"Prove exact values/types of userId, stream id, signedIdentity and filter and full response shapes (including optional/null branches), not only keys.",
"Map mediasoup transport/producer/consumer negotiation to Chromium WebRTC SDP reliably (native mediasoupclient performs this in official client).",
"No controlled or live server advertising SFU available/exercised; no SFU interoperability claim."
]
}
@@ -0,0 +1,33 @@
{
"date": "2026-11-01",
"slice": "AstraStreams account-free stream extras",
"verification": "Implementation and authored tests only; no tests/build/device/capture/audio/native window operation executed by this worker. QA owns frozen controlled offscreen validation.",
"source": {
"officialJavascript": "Installed TeamSpeak html/client_ui/main.js; readonly formatted derivative C:/Users/Admin/tmp/ts6seg/main.pretty.js",
"visibility": "137881-137886, 138784-138805: hide is independent of leave; own and inactive visibility gates",
"accountBoundary": "135712-135718: server-only calls=[] yields stream seats, participants=[], callRef=null. Avatar/duet and call-bar branches require account-call peers and are intentionally excluded, not replaced with fake participants.",
"cardGrid": "63335-63341 minH120 aspect16/9; 135583-135640 row-height solver/capacity; 135984-136028 paged centered cards",
"focus": "136298-136417 source-aspect focused tile, choose side/bottom strip by focused area, overflow pages",
"internalPip": "135784-135814 geometry; 136593-136638 host validity, occupied-corner and cycle fallback. Distinct from existing Chromium native PiP.",
"issues": "65280-65350 official thresholds; Chromium timestamps milliseconds rather than native microseconds"
},
"implemented": [
"Per-connection hidden IDs/manual order/focus/pages/internal PiP placements; same video/session remains subscribed when hidden, paged, rearranged or moved into server tree overlay.",
"Official server-stream card-grid and focus-strip geometry; internal Shift-drop PiP with same DOM media, explicit unpin/reset, invalid host/collision fallback.",
"Standalone Electron pop-out adopts the existing player DOM/video into fixed same-origin scriptless document: same remote PeerConnection/MediaStream, controls retained, child close returns original tile. Main-frame one-use grant pins connection epoch. Child has no preload/Node; navigation/new-window denied. Offscreen mode always hidden, nonfocusable, offscreen and muted even on explicit present acknowledgement.",
"Block-and-deny by stable viewer UID, kick without ban, ban and unblock management; source pause disables existing tracks without closing the publication.",
"Live quality settings use existing publisher.updateOptions source constraints and RTCRtpSender.setParameters; no pretend local settings-only control.",
"Actual getStats inbound/outbound counters, deltas, codec/cipher/encoder/decoder and source-backed issues. Missing capture/preprocess native-only metrics are omitted, not fabricated.",
"Camera options enumerate getCapabilities on the explicitly opened preview/live track only; constraints preserve exact device ID and supported image controls are checked against settings.",
"Application audio All/Exclude use fresh safe native application enumeration, capture all allowed roots/streams via existing WASAPI process-tree or Pulse monitor-stream helpers, refresh one second and update worklet nodes; never alias selected-only IDs or move system routing. Eight-root/stream limit fails explicitly rather than truncating."
],
"limitations": [
"No SFU interoperable implementation: new sfu-request-construction.json recovers request serializers and token field, but token origin/renewal/socket URL/TLS, full exact types/values and mediasoup transport-to-Chromium SDP still need authoritative tracing; no SFU server exercised.",
"QA observed the hidden child loading/adopting DOM but its unmodified Electron44.9.3 OSR viewport remained 0x0 even after setContentSize. See popout-offscreen-limitation.json for source diagnosis. Main authorized test-only CDP viewport emulation to exercise real generated media/control/restore behavior; that is not native offscreen paint or visible-window proof. Production construction remains unchanged; native Chromium video PiP/fullscreen was not invoked.",
"Native minimized-window reason unavailable from Chromium track mute. UI says source suspended rather than asserting minimized; mute does not terminate publication.",
"All/Exclude audio includes safely observable native app roots/streams, not inaccessible/protected sessions or OS sounds lacking process identity. Newly observable apps arrive on one-second enumeration. Windows exclusion of a child sharing a capture ancestor fails closed with explanation; no unsafe endpoint-loopback subtraction.",
"Camera physical capabilities/settings and actual native audio scopes remain unexercised under no-device/no-capture safety restriction."
],
"tests": ["test/stream-extras.test.mjs", "test/stream-publisher.test.mjs", "test/appaudio-main.test.js", "test/appaudio-renderer.test.mjs", "test/stream-popout-main.test.js"],
"qaHarness": "scripts/smoke-stream-stage-offscreen.mjs (AstraQA owner; generated tracks/multiple independent connection scopes only)"
}
@@ -0,0 +1,457 @@
# TS6 6.0.0.5163 — Detail-pane chat spec (channel / private / poke), composer, toolbar
Sources: `C:/Users/Admin/tmp/ts6ref/*` extracts plus targeted greps of installed `html/client_ui/main.js`, `main.css`, `locales/en.json`, `locales/ru.json`. Values are resolved at Medium scale (main.css :root defaults). "Theme" means the CSS module at main.js@92422 (dark) or main.js@201685 (light). Both modules contain the **same** chat overrides at the same inner offsets, so `theme@N` below means both. A theme rule beats a main.css rule only when specificity is equal or higher.
Token values used (from themes.txt): see §6.
---
## 0. Architecture: what drives which chat
- **One component for every chat.** `ts-chat` (chat container, render@3472672) renders channel chats, private chats and Matrix rooms.
- Container getters at main.js@~3431811: `isLegacy = !this.room`, `chat = room ? null : item`, and `room` is set only when `item instanceof NW` (a Matrix room, main.js@1521496).
- A **channel item or client item is passed directly**, which makes it a *legacy* chat.
- **Legacy chat model** (module 60408, main.js@2137033). Chat target enum: `CLIENT=1` (private), `CHANNEL=2`, `SERVER=3`, `POKE=4`. Event types: `None, TextMessage, Poke, ChannelJoined, ChannelLeft`.
- Messages (class main.js@2136580) have the fields `time, isPoke, isSystem, isSelfMentioned, isGroupStart, isDayStart`.
- Grouping window constant `CU = 30` (minutes).
- Send, limits and history go through native methods on the chat object: `GetMaxInputLength()`, `GetCanSendMessage()`, `GetUnreadMessagesCount()`, `OnMessageDidSend()`. In other words these are the TS3-protocol server text messages handled by the native core.
- **How you switch chats.** There are no chat tabs inside the chat view. Chat is a *content mode* of the selected tree item, chosen in the detail pane header's SegmentedControl (main.js@1339858–1344484):
- channel: `ChannelInfo` "Info" → `Chat` "Chat" (`universal.chats` count 1) → `ChannelFiles` "Files". `Chat` is only offered when **your own client is in that channel** (isAvailable checks `GetClients().find(own id)`).
- client: `ClientInfo` "Info" → `Chat` (shown only when the client is **not yourself**) → `OwnFiles` (unlisted). This is the private chat.
- server: Recording, `Info`, `ServerLog` "Recent Server Events", Permissions … — **no Chat mode for the server**. A server-chat UI surface was not found (see UNRESOLVED). Only the notification strings `settings.notifications.self.text.(from|to).server` refer to server chat.
- Matrix room (`chatRoom`): Chat / Pinned / Info / Settings. Account-bound; excluded under the no-account requirement.
- The tool button `currentChannelToolButton` (main.js@1746938) has icon `ChannelShowChat`, title "Show current Channel Chat" / "Showing current Channel Chat" ("Показать текущий чат канала" / "Показывается текущий чат канала"), and a Notification-style badge = `channel.chat.GetUnreadMessagesCount()`. The badge is 0 while that chat is the one being shown.
- **Pokes**:
- Pokes are legacy messages with `isPoke` (bubble class `poke`; no `.poke` CSS rule exists).
- Pokes survive the system-message filter: `!e.isSystem || e.isPoke` (main.js@2140412).
- The poke notification widget is render@1730302, string `channel.chat.events.client.poked_you` "Poked you".
### Feature inventory (legacy = server text message / native; Matrix = myTeamSpeak/homebase-only)
| Feature | Legacy channel / private chat | Matrix-only (account) | Evidence |
|---|---|---|---|
| Send/receive text, BBCode + markdown render | yes | yes | markdown help intro "We still support BBCode" (en.json `settings.chat.markdown_help.intro.body`) |
| Join/leave/move/kick/ban/poke system rows | yes (`legacyEvent` + `i18nPath`) | own variants | main.js@3305577 |
| Grouping / day start / self-mention flags | computed in JS (`stampGrouping`) | room-side | main.js@2140019 |
| Unread marker + unread count | yes (`unread_message_count`) | yes | main.js@2137033 |
| Emoji picker | yes (button always rendered) | yes | main.js@3571557 |
| File/image attach button | only if `sc_handler.hasFeature(FileTransfer)` or (`useCentralForChatAttachments && mytsFeaturesEnabled`) | — | main.js@4325033, `shouldDisplayFilePickerAction` main.js@3539164 |
| GIPHY integration tab | external network service | — | render@1481197 |
| Formatting toolbar / rich-text (CodeMirror) editor | yes (client-side markdown) | yes | `useRichTextEditing` = workflowSettings.useRichTextEditor, default true (main.js@1298340) |
| Edit, reply, reactions, pin, quick-action hover bar, read receipts/status, E2EE "unable to decrypt", call-log rows, invites/participation prompts | **no** (they need `room` / `isTSChatMessage`) | yes | quickButtons uses `allowed(event, room)` (main.js@3262534); edit/reply helpers main.js@1554003 |
| Typing indicator | UNRESOLVED for legacy | yes | — |
---
## 1. DOM skeleton
### Chat container (render@3472672)
```
div.ts-chat-container.tsv-view [.is-compact | .is-detailed]
ts-background-hexes
div.tsv-pinned-message-overlay … (Matrix pins)
chat-overlay > div.ts-unread-events-left[.as-addition] > div.ts-unread-events-left__inner
> span.ts-unread-events-left__inner__unread_text.ts-font-small (ts-icon.inline + "chat.alert.jump_to_unread")
+ ts-button (ts-icon.inline "universal.dismiss")
ts-loader.tsv-load-spinner
div.ts-chat-container-overlay
div.ts-chunk-scroll-track[.scrollbar-visible] > .__thumb, .__chunks > .__chunks__chunk[.is-hovering]
div.tsv-body.tsv-flex-column.tsv-virtual-list-container
ts-virtual-list.tsv-flex-grow{loading, scrollbar-visible}
(rows: ts-chat-room-event-generic-rendered → .ts-rendered-message)
div{ts-chat-messages-container-typing} > div.ts-chat-input-placeholder
TSChatQuickActions (hover, Matrix)
div.tsv-subtitle.tsv-absolute-below-header "chat.waiting_for_messages" ← empty state
div.tsv-subtitle.tsv-absolute-below-header "chat.error.you_left"
TSChatInput
TSChatDropzoneOverlay
```
### Detailed message row (default style; render@3336866)
```
[system → ts-chat-room-event-system-compact (legacy, inline-timestamp-only=true)]
div.ts-chat-room-event-detailed{group-start, ownclient, isPending, isError, slim, ts-chat-room-event-selected}
div.ts-chat-message-header (group start only)
div.ts-chat-room-event-sender-avatar-wrapper > div.ts-chat-room-event-sender-avatar.has-presence.rounded-presence.ts-noselect > ts-icon-stack
span.ts-chat-message-sender-name.ts-font-large.ts-font-bold{disabled:isSelf} style=color:colorFromString(name)
span.room-users-title.LocalUser (if the name matches the server tree; tooltip channel.chat.user.name.tooltip)
span.ts-font-small.ts-style-caption.ts-timestamp → formatDate(time,false)
div.ts-chat-room-event-body
div.ts-chat-room-event-bubble-container
ts-chat-detailed-timestamp → div.ts-chat-room-event-timestamp-container.ts-font-minimal
> span.ts-chat-room-event-timestamp (HH:mm) + div.…-flexible-offset
div.ts-chat-room-event-bubble{poke, self-mention, deleted, ts-unable-to-decrypt-bubble}
[span.ts-chat-detailed-edited "chat.message.edited_by" | span.ts-chat-detailed-editing]
parsed-text-render (.ts-chat-message-content.ts-parsed-text-content)
span.ts-chat-hidden-copy
ts-chat-message-attachment.ts-chat-message-attachment-container{ts-timestamp-margin-left}
ts-reactions.ts-timestamp-margin-left.tsv-mar-t-minimal (Matrix)
ts-chat-message-unread "chat.unread_messages"
```
### Legacy system row (component `ts-chat-room-event-system-compact`, scope data-v-5c102790, render@3304620)
```
div.ts-chat-room-event-detailed.is-system{slim, has-self-mention, group-start, selected}
[div.ts-chat-message-header > span.ts-font-minimal.ts-style-caption "chat.conversation_started"] (not for legacy: renderHeaderOnGroupStart=false)
div.ts-chat-message-system-body.compact{slim-layout}
div.ts-chat-message-system-body-icon (class only when inlineTimestampOnly)
div.ts-chat-message-system-body-contents.ts-chat-message-system-body-contents-spaced
i18n.ts-font-small(path=legacyEvent.i18nPath) with <strong> slots victim/invoker/channel (click/contextmenu → client context menu)
span.ts-font-minimal.ts-style-caption.ts-chat-message-system-time (inline timestamp: formatDate(timeDate,false,false))
ts-chat-message-unread (literal text "Unread Messages", not i18n)
```
- In the outer wrapper, a system row is preceded by `div.ts-chat-day-start.ts-font-small` ("Conversation started: {time}") when `isDayStart` (main.js@3327217).
### Compact message row (setting "Compact"; render@3327069)
`div.ts-chat-room-event-compact > div.ts-chat-message-compact-container > div.ts-chat-room-event-compact.actual{poke,self-mention}`, which contains:
- `div.ts-chat-message-compact-details` > `span.ts-chat-timestamp.ts-font-minimal`
- `div.ts-chat-sender.ts-chat-sender-name{group-start}` (coloured)
- status
- `div.ts-chat-message-main`
### Composer (render@3561789)
```
div.ts-chat-input-container{focus, showEmoji, ignoreHover, ts-chat-input-hide}
div.ts-card.ts-chat-prompt[.warning|.ts-participation] … (prompts, Matrix/direct-request)
transition > ts-chat-input-integrations.ts-chat-input-emoji-picker{maxWidth}
(= div.ts-flex.column > div.ts-chat-input-tabs > div.ts-chat-input-tab{active}… + div.ts-chat-input-integration-container)
transition > div.ts-chat-scroll-to-bottom > TSButton.ts-chat-scroll-bottom-button.tsv-action-subtle
div.ts-chat-input-top-section
div.ts-chat-editing-wrapper > div.ts-chat-referenced-event{is-hoverable} … + TSButton.ts-chat-editing-abort "universal.abort"
ts-chat-autocomplete.ts-chat-input-container-autocomplete (emoji ":", users "@", markdown "/")
div.ts-chat-input-container-previews > div.ts-chat-input-previews > TSChatInputFilePreview*
div.ts-card.ts-chat-typing > span.ts-dot-animate > div.dot-pulse{animated}; span.ts-style-caption.ts-typing-text
div.ts-chat-input-container-content
div.ts-chat-input-edit-toolbar{is-attached-to-autocomplete}
TSButton.ts-chat-input-edit-toolbar-button{is-group} (+ ts-icon.ts-chat-input-edit-toolbar-button-expander{only-text}) …
TSButton.ts-chat-input-edit-toolbar-button.is-overflow ("More")
div.ts-chat-input-edit-toolbar-measure (offscreen clone used for overflow measuring)
div.ts-chat-input-container-content-inner
TSChatInputTextarea.ts-chat-input → div.ts-chat-input-textarea-inner{editing} > div.ts-chat-input-textarea-inner-editor.ts-parsed-text-content{is-empty}[data-placeholder]
div.ts-chat-input-container-actions
TSButton.ts-chat-emoji-button.tsv-action-subtle (icon ChatEmoji)
TSButton.ts-chat-image-button.tsv-action-subtle (icon ChatImage) [conditional]
TSButton.ts-chat-send-button{disabled} (icon ChatSend)
```
Refs: render@3561789, main.js@3570908, main.js@3571557, main.js@3572062.
---
## 2. Measurements (Medium scale)
### 2.1 Pane / list
| Element | Property | DARK | LIGHT | Ref |
|---|---|---|---|---|
| detail pane body | background | `--tsv-bg` #2b3346 | #f5f5f5 | `.tsv-body-background` main.css@90047 [INFERENCE: the detail pane is not `.tsv-activity-secondary`] |
| detail header backdrop | background | `--tsv-shaded-bg` #222A3C | rgb(235,235,235) | theme@35204 |
| .ts-chat-container | user-select:text; `--tsv-overlay-respecting-top-space` = 1px + transparent-header(0) + pinned(0) = **1px** | same | same | main.css@534826 |
| virtual list | native scrollbar hidden; `.scrollbar-visible` adds padding-right 10px | | | main.css@536117, @541403 |
| chunk scroll track | right 0; width 8px; top = overlay-space + 8px; opacity 0 unless `.scrollbar-visible` | | | main.css@540234 |
| scroll track thumb | radius 8px; bg `--tsv-scrollbar-bg` | #0B111D | UNRESOLVED (light value not in themes.txt excerpt) | main.css@540548 |
| scroll track chunks | radius 8px; opacity .75; even = hsl(189 79% 34%), odd = hsl(208 47% 31%); hover = tint2 at .85 | | | main.css@541008–541321 |
| load spinner | top 16px; radius 50%; bg `--ts-context-menu-background` | rgba(20,23,32,.85) | rgba(230,238,243,.85) | main.css@536227 |
| empty-state text | `.tsv-subtitle.tsv-absolute-below-header`; absolute, top 1px, width 100% | | | main.css@535040 |
| `.ts-chat-messages-container-typing` | height 41px; transition .5s | | | main.css@534652 |
### 2.2 Detailed message (default style: `chat_compact=false`, main.js@1299504)
| Element | Property | Value (both themes unless noted) | Ref |
|---|---|---|---|
| `.ts-chat-room-event-detailed` | padding-left | **15px** (theme `1.5*10`; overrides main.css 20px) | theme@31422 |
| | `--tsv-timestamp-width` | **58px** (33 + 2·20 − 15; theme) | theme@31422 |
| | white-space | nowrap | main.css@496611 |
| | layout | flex column; flex 1 | main.css@496611 |
| | highlight vars | border = tint, border2 = tint2, bg = shaded-bg-selection (#1A2B50 / #cccccc) | main.css@496611 |
| `.ts-chat-room-event-body` | margins / padding | margin-top **2px**, margin-bottom **1px** (theme), padding-left 5px, flex 1 | theme@32434, main.css@496928 |
| `.ts-chat-message-header` | box | height 22px; line-height 22px; margin-bottom 4px; padding 0 | main.css@497113 |
| | group-start | margin-top 4px | theme@32532 |
| sender name | font | 16px / 19px (`.ts-font-large`), weight 700 (theme bold) | theme@31811 |
| | colour | `colorFromString(name)`, see §3 | main.js@3339106 |
| | hover | opacity .75, cursor pointer (not when self/disabled) | main.css@497378 |
| | click / contextmenu | opens the sender unified menu | |
| header timestamp `.ts-timestamp` | font | 13px / 14px, weight 300, uppercase | theme@34262 |
| | colour | `--tsv-font-color` #FFFFFF / #1a1a1a (theme beats `.ts-style-caption`) | theme@34262 |
| | spacing | margin-left 5px | theme@34262 |
| avatar | size | **37.95px** square (1.15 × 33) | theme@32633 |
| | margin | `17.5% 16px 0 0` (top margin is % of the containing block width) | theme@32633 |
| | other | radius 33px; `--tsv-icon-scale` 1.725; cursor pointer; z-index 1; inside a float-left wrapper; animated avatar swaps on hover | main.css@490864, @491468 |
| presence ring | | `has-presence.rounded-presence` → presence-width-large vars | theme@106674 |
| timestamp column | box | width 58px (min = max); flex column, justify flex-end; user-select none | main.css@501410 |
| `.ts-chat-room-event-timestamp` | box | padding 2px 5px; radius 4px; 13px / 14px (`ts-font-minimal`); right-aligned; pre-line | main.css@501662 |
| | colour | transparent by default | main.css@501662 |
| | row hover | colour `--ts-muted-font-color` #797878 (main.css root; no theme override found); bg `--tsv-bg` | main.css@502225, @502135 |
| | group-start rows | visibility hidden (the header carries the time) | theme@32966 |
| | text | `HH:mm` (24h default, `use24hrTime=true`) or `h:mm A` | main.js@1249144, @2175222 |
| | hover tooltip (400ms) | full date `formatDate(time,false,false,true,true)` | main.js@3334866 |
| bubble container | layout | flex; align stretch; margin-left 0 | main.css@498725 |
| `.ts-chat-room-event-bubble` (remote) | background | `--tsv-chat-remote-bg` **#697a97** / **rgb(164,186,224)** | main.css@499619 |
| | text colour | `--tsv-chat-remote-font-color` #FFFFFF / #333 | main.css@499619 |
| | padding | **8px 12.5px** (theme) | theme@31907 |
| | radius | 8px; top-left 0 on group start | theme@31907 |
| | spacing / layout | margin-right 25px; flex-grow 0; flex-shrink 2; min-width 0; word-wrap break-word; flex column | main.css@499619 |
| bubble tail `::before` | shape | border-bottom 14px transparent; border-right **12px** solid bubble colour; left 0, top 0; translateX(calc(−100% + 1px)) | main.css@500639 + theme@32108 |
| | non-group-start | radius 8px all corners; tail `display:none` | theme@32231, @32367 |
| own bubble (`.ownclient`, exact `[class=ts-chat-room-event-bubble]` only) | background | `--tsv-chat-self-bg` **#0C1326** / **rgb(138,206,204)** | main.css@495968 |
| | text colour | `--tsv-chat-self-font-color` #FFFFFF / #333 | main.css@495968 |
| | tail | same colour | main.css@496152 |
| | link colour | tint #1588FA / #5DA1CB | theme@32856 |
| message text `.ts-chat-message-content` | font | **16px / 19px** (theme large; overrides main.css round(1.5625em)) | theme@31675 |
| links in bubble | colour | `--tsv-chat-link-color` = **#081cbd** both themes (theme var on `.ts-chat-room-event-detailed`); `.ts-currently-referencing` → #1A0D96 | theme@31422, main.css@500543 |
| deleted bubble | colours | bg #684454 / rgba(255,130,130,.25); text #E0E0E0 / rgb(121,121,121); italic; tail same colour | main.css@500042 |
| self-mention bubble | colours | bg rgb(37,221,133) / rgb(255,212,119); tail same | main.css@500325 |
| pending (`.isPending`, `.ts-chat-message-pending`) | colours | bg #138b81 (both); text self-font colour | main.css@503006, @538378 |
| failed (`.isError`) | colours | bg #138b81 (`.isError` rule) | main.css@503403 |
| failed (`.ts-chat-message-failed`) | colours | bg error-light rgb(255,130,130) / rgb(218,77,77) | main.css@538925 |
| pending / error status | content | Retry + Discard buttons ("universal.retry" Retry/Повторить, "chat.message.pending.discard" Discard/Сбросить) | render@3319078 |
| emoji-only message (`apparently-people-like-huge-faces`) | look | bubble transparent, no tail; emoji 55px | main.css@496316, @502779 |
| emoji default | size | 24px (`--tsv-emoji-size`) | main.css@539501 |
| edited marker | | icon in subtitle colour; absolute bottom 2px, right −5px, translateX(100%); tooltip "Edited by {user}, {time}" | main.css@497810 |
| selected row `::before` | look | bg `--room-event-highlight-bg`; 1px tint2 ring; radius 4px; left-mask gradient | main.css@499120 |
| slim layout | avatar | 15px square, top 2px; bubble container margin-left 0 | main.css@503688 |
| attachments | box | height 250px (compact 180px); inner bg contrast-bg (#0C1326 / #C9D9E5); 1px separation border; radius 8px; max-width 425px; min-width 50% | main.css@511145, @511676 |
### 2.3 Legacy system / event rows (join, leave, move, kick, ban, poke), data-v-5c102790
| Element | Property | DARK | LIGHT | Ref |
|---|---|---|---|---|
| row wrapper | box | `.ts-chat-room-event-detailed.is-system`, padding-left 15px; timestamp column `display:none` (theme) | same | theme@31422, @33063 |
| `.ts-chat-message-system-body.compact` | background | linear-gradient(90deg, `--ts-chat-system-message-bg` 0, transparent 80%) = **#131824 → transparent** | **#C9D9E5 → transparent** | main.css@477464 |
| | layout | flex; width calc(100% − 16px) | same | main.css@477464 |
| | radius / padding | radius **10px**; padding 2px 0 | same | theme@33354 |
| | position | margin-top 4px; position relative; left −2px | same | main.css@477768, @479361 |
| icon slot (`.ts-chat-message-system-body-icon`, legacy only) | size | width / min-width `--tsv-system-icon-width` **32px** (set on `.ts-rendered-message`) | same | main.css@477886, @490367 |
| | look | mask linear-gradient(90deg, #000, transparent 90%); svg fill secured-text colour #3dda8b / rgb(40,151,96) | | main.css@478107 |
| contents | typography | colour **subtitle #697A97** / **#445d77** (theme); 15px / 15px (main.css); flex 1 0 50%; text 13px / 15px (theme `.ts-parsed-text-content`; legacy i18n span `.ts-font-small` 13/15); word-break break-all; white-space normal | | main.css@478270, theme@33670, @33848 |
| | margin | **2px 0**. The compact rule (specificity 0,4,0) beats theme `0 0 0 5px` (0,3,0) [INFERENCE from specificity] | | main.css@479864 |
| | spacing | each child except the last gets margin-right .5ch (`-spaced`, legacy) | | main.css@478693 |
| `strong` (names / channels) | look | weight 700; colour `--ts-chat-system-message-text-color` #acacac (main.css root) / rgb(100,100,100) (light theme); cursor pointer; click / contextmenu opens the client menu | | theme@34116, main.css@477187 |
| `.ts-italic` inside | look | font-style normal | | theme@34014 |
| inline time `.ts-chat-message-system-time` | look | colour subtitle; opacity .75; line-height 15px; margin 2px 5px; 13px / 14px (`ts-font-minimal`). Text `formatDate(timeDate,false,false)` → today: "HH:mm - ddd" (time.format.same_day.at) | | main.css@479522, main.js@3307119 |
| icon-on-hover (matrix detailed system variant) | animation | icon opacity 0 → 1 and translateX(50%) → 0, .2s / .1s | | main.css@486466 |
| selected system row `::before` | look | shaded-bg-selection; radius 7px (1.75 × 4) | | main.css@477330, theme@33543 |
Legacy event strings (en / ru):
| Key | English | Russian |
|---|---|---|
| `channel.chat.events.client.joined` | "{invoker} joined the channel" | "{invoker} вошел(-ла) на канал" |
| `.joined.from_channel` | "{invoker} joined coming from {channel}" | "{invoker} присоединился(-ась) с канала {channel}" |
| `.left` | "{invoker} left heading to {channel}" | "{invoker} ушел(-ла) на {channel}" |
| `.moved.from` | "{victim} was moved to {channel}" | "{victim} перемещен(-а) в {channel}" |
| `.moved.into` | "{victim} was moved from {channel}" | "{victim} был(-а) перемещен(-а) с {channel}" |
| `.kicked.from` | "{victim} was kicked from the server" | "{victim} был(-а) кикнут(-а) с сервера" |
| `.poke.received` | "{invoker} poked you: {message}" | "{invoker} толкнул(-а) тебя: {message}" |
- The `*.by_invoker` and `*.with_reason` variants are listed in en.json lines 58–80 (banned / kicked / moved).
- Poke sent: "You sent a poke: {message}".
### 2.4 Day divider / unread
| Element | Property | DARK | LIGHT | Ref |
|---|---|---|---|---|
| `.ts-chat-day-start` | look | subtitle colour; 13px / 15px; padding 2px 0; selectable | same | main.css@504638 |
| | text | "Conversation started: {time}" / "Беседа началась: {time}" (`formatDayOnly`, see UNRESOLVED) | | |
| `.ts-chat-message-unread` | layout | flex row, centered; margin 16px 0 8px | same | main.css@476309 |
| | rules (::before / ::after) | 45×1px each, colour `--ts-chat-system-highlight-text-color` **rgb(22,188,251)**; gap 10px to the text | **rgb(50,133,167)** | main.css@476473 |
| | label | `span.ts-style-caption` in the same colour (13px / 15px); "Unread Messages" / "Непрочитанные сообщения" | | render@3302322 |
| | `.slim` | start-aligned; margin-left 10px; only ::before, 30px wide, gap 5px | | main.css@476927 |
| Jump-to-unread banner `.ts-unread-events-left.as-addition` | box | width calc(100% − 20px); margin 8px 10px 0; no bg (theme); inner border-top 1px subtitle colour, padding-top 4px; text 13px; cursor pointer | | theme@84051, @84273 |
| | text | "There are unread messages — jump to last seen" / "Есть непрочитанные сообщения — перейти к последнему просмотренному"; button "Dismiss" / "Закрыть" | | |
### 2.5 Compact style (alternative setting)
- Row padding-left: 10·1.5 + 5 − 4 = **16px** (main.css@504759).
- Timestamp: subtitle colour, opacity .75, width 65px, margin-right 5px; non-first rows use the muted colour (main.css@508378, @509475).
- Sender: 13px, weight 700, line-height 1rem; shown on group start only; colour from colorFromString (main.css@508607, main.js@3329666).
- Message text colour #b5b5b5 (`.ts-parsed-text-render`; main.css@508289).
- Mention row: gradient from mention-bg to transparent 90%, opacity .2 / .5 (main.css@506888).
- Selected row: #1b2c50 plus a tint2 ring (main.css@505392).
### 2.6 Composer
| Element | Property | DARK | LIGHT | Ref |
|---|---|---|---|---|
| `.ts-chat-input-container` | position | absolute; bottom 0; margin 10px; width / min-width calc(100% − 20px); z-index 3; flex column | same | main.css@206847 |
| | border | 1px solid **#697a97** (`--tsv-chat-remote-bg`, theme) | **rgb(164,186,224)** | theme@34684 |
| | radius | **8px** (theme) | | |
| | background | **#2b3346** (`--tsv-bg`, theme) | **#f5f5f5** | |
| | hover / `.focus` | border-color highlight **#1588FA** (main.css 0,2,0 beats theme 0,1,0) | `--tsv-icon-tint` = tint **#5DA1CB** | main.css@207222 |
| | `.ignoreHover` | separation border #1D1F20 | rgb(189,189,189) | main.css@207660 |
| | `.showEmoji` | top-right radius 0; z-index 101 | | main.css@207491 |
| `.ts-chat-input-container-content` | look | bg `--tsv-bg` (theme); radius 8px; flex column; z-index 6 | | theme@34898, main.css@211964 |
| | light extra | `--ts-chat-background-color` = contrast-bg on `.ts-chat-input-container-inner`; input colour font-color | | main.js@201685@115487 (light only) |
| content-inner | layout | flex row, nowrap, stretch | | main.css@212210 |
| textarea `.ts-chat-input` | typography | **14px**, weight 400, letter-spacing −0.025rem (−0.4px), line-height **18px**, colour font-color (#FFF / #1a1a1a) | | main.css@212377 |
| | box | padding **8px 10px**; max-height 250px; transparent; no border | | |
| | `.error` | colour `--ts-error-color` #f82929 | | |
| placeholder (`.is-empty::before`) | look | subtitle colour #697A97 / #445d77; 14px; absolute 0,0 | | main.css@205825 |
| | text | **"Send Message"** / **"Отправить сообщение"** (`client.action.message.button`, count 1) | | main.js@3540267 |
| | other texts | disabled: "Cannot send messages at this time" / "В настоящее время невозможно отправлять сообщения"; with attachments: "Add Comment" / "Добавить комментарий"; editing with attachments: `chat.input.currently_editing_attachments` | | |
| CodeMirror selection | look | color-mix(shaded-item-selection (= `--tsv-bg`) 80%, transparent); caret font-color | | main.css@206599 |
| max length | | legacy: native `chat.GetMaxInputLength()`; fallback 4096 when there is no chat object | | main.js@3540718 |
| actions row | box | flex row; height **26px**; margin auto 3px 4px auto; children margin auto **2px** (theme) | | main.css@211296, theme@34964 |
| | order | Emoji → Image / File (conditional) → Send | | main.js@3571557 |
| send button | look | icon fill tint (#1588FA / #5DA1CB); hover scale(1.2) | | main.css@211633 |
| | disabled | opacity .5, no scale. Disabled when (msg, previews and attachments are all empty) OR isDisabled, unless overridden | | main.js@3572062 |
| emoji / image buttons | | `tsv-action-subtle` TSButton (button styling in buttons spec) | | |
| scroll-to-bottom | box | absolute; right 0; bottom calc(100% + 8px); 38×38px; svg scale(2); slide transition translateY(38px) .15s | | main.css@215615 |
| typing line `.ts-chat-typing` | box | absolute; left 0; bottom calc(100% − 8px); text subtitle colour | | main.css@209608 |
| | dots | 4px subtitle-colour dots, radius 3px; 2s pulse; `.ts-dot-animate` left 15px, width 25px; text padding-left 10px | | main.css@207849–209141 |
| | text | "{user} is typing…" / "{user} печатает…" | | |
| emoji picker | box | 375×375px (max-height 60vh); absolute; bottom 100%; right −1px; bg shaded-bg (#222A3C / rgb(235,235,235)); separation border, bottom transparent; top radii 4px; z 3; `.maxWidth` → calc(100% + 2px) | | main.css@210465 |
| | hover / focus | border highlight | | |
| | search placeholder | "+1, :grinning:, …" | | |
| picker tabs | box | height 36px; padding 0 6px; bg contrast-bg (#0C1326 / #C9D9E5); each tab 36×36; active = shaded-bg; icon 22px centered | | main.css@202405 |
| | tab order | emoji first, then integrations (GIPHY) | | render@3502579 |
| integration panel | box | height calc(100% − 36px); `.ts-chat-input-panel` padding 0 6px | | main.css@203066, @203172 |
| file preview tile | box | 150×150px (100 at ≤800px viewport height, 75 at ≤600, 65 at ≤500); bg shaded-bg; separation border; radius 8px; margin-right 5px; failed → error-light border | | main.css@199140 |
| | close box | top / right 5px | | |
| previews strip | box | padding 5px 10px 0; 8px scrollbar | | main.css@210895 |
| referenced-event bar (edit / reply) | look | bg contrast-bg; border-bottom 2px `--tsv-shaded-bar-bg` (= `--tsv-bg`); radius 4px; hover bg `--tsv-bg`; "Jump To"; Abort button top-right | | main.css@216335 |
| autocomplete | box | max-height 300px; padding 10px; border-bottom separation | | main.css@190573 |
### 2.7 Formatting toolbar
| Element | Property | Value | Ref |
|---|---|---|---|
| `.ts-chat-input-edit-toolbar` | box | flex, align center; bg shaded-bg (#222A3C / rgb(235,235,235)); border-bottom 1px separation (#1D1F20 / rgb(189,189,189)); top radii 8px; gap **2.5px**; padding **2px 10px**; nowrap; overflow hidden | main.css@213134 |
| | autocomplete open | top border transparent, square top | main.css@213580 |
| button | box | transparent; border 2px solid transparent; radius **2px**; min-height **24px**; padding 0 2.5px; colour font-color; with icon → content margin-left 5px; `.is-group` → padding-right 0 | main.css@214153 |
| | hover | bg color-mix(`--tsv-bg` 65%, transparent); border-bottom tint; icon tint | main.css@215101 |
| | active | color-mix 80% | main.css@215372 |
| | transition | background-color / border-color .2s ease | main.css@214885 |
| group expander icon | look | 16px, subtitle colour, margin-left −5px (0 when the group has no icon) | main.css@213789 |
| show / hide | animation | opacity + translateY(3px), .2s (used unless "Always Visible") | main.css@212890 |
Visibility setting `chat_input_toolbar_visibility` (default `"always-visible"`, main.js@1299504):
- Hidden: never shown.
- Dynamic: shown when the text is non-empty or while editing.
- Always Visible: always shown.
- Logic at main.js@3522855. The setting strings are under §4 "Toolbar visibility setting".
Button order `ve` (main.js@3517677). Overflowing items collapse into the **More** / **Ещё** button (`.is-overflow`, measured offscreen).
| # | id | Icon | Label EN / RU | Action / insert | Ref |
|---|---|---|---|---|---|
| 1 | bold | FaBold | Bold / Жирный | toggleBold `**…**` | main.js@3507738 |
| 2 | italic | FaItalic | Italic / Курсив | toggleItalic `*…*` | main.js@3507437 |
| 3 | strike | FaStrikethrough | Strikethrough / Зачёркивание | toggleStrikethrough `~~…~~` | main.js@3508029 |
| 4 | underline | FaUnderline | Underline / Подчёркивание | toggleUnderline `++…++` | main.js@3508356 |
| 5 | link | FaLink | Link / Ссылка | `[…](https://)` | main.js@3510417 |
| 6 | quote | FaBlockquote | Blockquote / Блочная цитата | `> ` on each line | main.js@3511967 |
| 7 | codeblock | FaCode | Code Block / Блок кода | toggleCodeBlock ```` ``` ```` | main.js@3513413 |
| 8 | lists-group | FaListUl | Lists / Списки | ul `- `, ol, task `- [ ] ` | main.js@3512491 |
| 9 | spoiler-group | Hidden | Reveal / Показать | spoiler `\|\|…\|\|` (toggleSpoiler) | main.js@3509534 |
| 10 | heading-group | FaHeading | Heading / Заголовок | h1–h6, setext (`Section title\n---`) | main.js@3505575 |
| 11 | others-group | (none, text only) | Others / Другое | highlight `==…==`; Code (inline `` ` ``); Math (`$…$`, sub `~…~`, sup); Footnote (`[^…]`, def); Align (left / center / right / justify `:::x`); Links | main.js@3518074, @3508674, @3516673 |
---
## 3. Behaviours
**Grouping** (`stampGrouping`, main.js@2140019):
- The first message is both a group start and a day start.
- `isDayStart` = the weekday (`getDay()`) differs from the previous message.
- A non-system message starts a new group when the sender differs, the gap is ≥30 minutes, or the previous message was a system message.
- A system message starts a group when the previous message was not a system message.
**Sender key:**
- Client sender → `"" + client.id`.
- Otherwise → `` `${uuid}-${id ?? -1}` ``.
**System messages filter:**
- Setting `chat_show_system_messages` (default true), labelled "Show Moderation Events".
- When it is off, only system rows that are pokes survive.
**Sender name colour** (`colorFromString`, main.js@1253518):
1. Hash: `h = c + ((h << 5) − h)` over the name.
2. Colour: hex of `h & 0xFFFFFF`, zero-padded to 6 digits.
3. Contrast check against the computed `--tsv-bg` (fallback #2b3346), up to 3 iterations:
- If the luminance difference (299R + 587G + 114B)/1000 is < 40, or the RGB Manhattan distance is < 80, convert to HSV.
- If luminance difference < 40: S = min(100, S × (S > 50 ? 0.5 : 1.5)) and V = min(100, V × (2 − V/100)).
- If distance < 80: hue += 60.
- Convert back to RGB (main.js@1252141–1252646). The HSV→RGB tail was not read; assume standard [INFERENCE].
**Name hover and pills:**
- Hover over a sender name shows a custom tooltip.
- The `LocalUser` pill appears when the name matches the server tree.
- Pill style: subtitle colour, 16px, padding-left 10px, top 3px (theme), with a ::before bar 5px wide × 10px tall in subtitle colour (main.css@503940, theme@103560).
- Tooltip: "Username matches Server Tree" / "Имя пользователя совпадает с записью в дереве сервера".
**Timestamps:**
- Group-start rows show the time in the header (uppercase), formatted by the calendar rules: same day "HH:mm - ddd", last day / last week "HH:mm - ddd", next week "dddd", else "HH:mm - L" (time.format.*, main.js@2174753).
- Following rows show "HH:mm" in the left column, visible only on row hover.
- 24-hour format is the default (`use24hrTime=true`).
**Truncation:**
- Message text wraps (pre-wrap, break-word).
- The detailed row itself is nowrap; the bubble wraps via word-wrap.
- Attachment links truncate with an ellipsis.
**Mentions and spoilers:**
- `.md-mention` is bold and has a pointer cursor; self / everyone mentions use the default cursor.
- A self-mention turns the whole bubble mention-coloured.
- Spoiler: background `--tsv-spoiler-background-color`, opacity .7; click to reveal (main.css@355108).
**Hover quick-actions bar:**
- Pill radius (theme), shaded-bg at .9, buttons separated by 1px `--strong-bg` dividers; shows at most 2 buttons plus an expander.
- Matrix-only: needs `room`.
**Keyboard and drag-drop:**
- Composer: `keydown` handler, paste handler, drop handler.
- Drag-and-drop overlay: "Drop a file here to add it to your message"; maximum drag size 5 MB (`chat.attachment.dnd.error.too_big_drag`).
**Icon sizes:**
- Toolbar and composer icons: 22px default.
- Toolbar group expander: 16px.
- System icon slot: 32px.
- Picker tab icons: 22px.
---
## 4. Other i18n (en / ru)
| Key | English | Russian |
|---|---|---|
| `chat.waiting_for_messages` | Waiting for messages | Ожидание сообщений |
| `universal.system` | System | Система |
| `chat.message.edited_by` | Edited by {user}, {time} | Отредактировал(-а) {user}, {time} |
| `chat.message.deleted_by` | Deleted by {user}, {time}. | Удалено пользователем {user}, {time}. |
| `chat.input.start_conversation` | Send a message to start the conversation! | not looked up |
| `client.action.open_chat` | Open Private Chat | not looked up |
| `client.info.chat.open` | Start Private Chat | not looked up |
| Toolbar visibility setting | Editing Toolbar Visibility: Hidden / Dynamic / Always Visible | not looked up |
| Rich text setting | Use Rich Text Editor | not looked up |
| 24h setting | Format timestamps to display as 24-hour | not looked up |
---
## 5. UNRESOLVED
1. **Server chat surface.** There is no server `Chat` content mode in `contentModes.server`. The `SERVER=3` target exists, but where server chat is shown in 6.0.0.5163 was not found.
2. **`formatDayOnly`** implementation (the day-start text format) was not traced.
3. **Day divider in detailed non-system rows.** Whether non-system detailed rows render `.ts-chat-day-start` was not confirmed; the skeleton shows it only for system and compact rows.
4. **Legacy max input length.** The value returned by native `GetMaxInputLength()` is not visible in JS.
5. **Typing indicator for legacy chats** (whether TS6 servers support it) was not checked.
6. **Legacy context menu items.** The right-click menu for legacy messages (copy etc.) was not enumerated.
7. **Light `--tsv-scrollbar-bg`.** Not present in the themes.txt excerpt.
8. **Chat header DOM.** The header is the generic CentralHeader (`.tsv-content-header-bar` + ContentItemCell + ToolButtons + SegmentedControl, render@2975910); its dimensions belong to the header/base spec and are not repeated here.
9. **Extra composer buttons.** Exact icons and conditions for the "image" button versus a generic file picker when FileTransfer is unavailable were not checked beyond the getter quoted in §0.
## 6. Tokens referenced
| Token | DARK | LIGHT |
|---|---|---|
| `--tsv-bg` | #2b3346 | #f5f5f5 |
| `--tsv-shaded-bg` | #222A3C | rgb(235,235,235) |
| `--tsv-contrast-bg` | #0C1326 | #C9D9E5 |
| `--tsv-tint` | #1588FA | #5DA1CB |
| `--tsv-tint2` | = tint (#1588FA) | #22658f |
| `--tsv-font-color` | #FFFFFF | #1a1a1a |
| `--tsv-font-subtitle-color` | #697A97 | #445d77 |
| `--tsv-separation-border-color` | #1D1F20 | rgb(189,189,189) |
| `--tsv-error-light-color` | rgb(255,130,130) | rgb(218,77,77) |
| `--tsv-shaded-bg-selection` | #1A2B50 | #cccccc |
| `--strong-bg` | #0B1124 | = contrast-bg (#C9D9E5) |
| Scale | font 15 / content 14 / small 13 / minimal 13 / large 16; line-heights 19 / 18 / 15 / 14 / 19; padding-h 20 / 10 / 5; padding-v 16 / 8 / 4 / 2; bar 36; bar-element 26; radii 10 / 8 / 4 / 2; icon 22 / 16 / 33 / 55; portrait 38 | same |
@@ -0,0 +1,348 @@
# TS6 6.0.0.5163 — Shared controls & server-tree context menus (source-backed spec)
Conventions
- Medium scale tokens (main.css :root): font 15/content 14/small 13/minimal 13; line-height 19/content 18/small 15/minimal 14; row 24 (large 44, small 20); pad-h 20/small 10/minimal 5; pad-v 8/small 4/minimal 2; bar 36; bar-element 26; control 22; radii xxxl 20/xxl 15/xl 10/large 8/base 4/small 2/pill 100px; icon 22 (small 16, large 33). Global `*,:after,:before{box-sizing:border-box}` (main.css@254).
- `main.js@N` = byte offset in main.js (line-2 column + 62). `main.js@92422@N`/`@201685@N` = dark/light theme module CSS (identical component rules; they load after main.css and win on equal specificity). "theme" below = rule present in both modules.
- D = dark, L = light. Colours resolved through themes.txt.
Common resolved tokens
| token | DARK | LIGHT |
|---|---|---|
| --tsv-font-color | #FFFFFF | #1a1a1a |
| --tsv-font-subtitle-color | #697A97 | #445d77 |
| --tsv-tint / --tsv-tint2 | #1588FA / #1588FA | #5DA1CB / #22658f |
| --tsv-bg | #2b3346 | #f5f5f5 |
| --tsv-shaded-bg | #222A3C | rgb(235,235,235) |
| --tsv-contrast-bg | #0C1326 | #C9D9E5 |
| --tsv-header-bg | #1C2539 | rgb(235,235,235) |
| --strong-bg | #0B1124 | #C9D9E5 |
| --tsv-view-header-gradient-start | #222C41 | #C9D9E5 |
| --tsv-separation-border-color | #1D1F20 | rgb(189,189,189) |
| --tsv-shade | rgba(255,255,255,.05) | rgba(0,0,0,.05) |
| --tsv-preview-bg | #1C2539 | #bccbeb |
| --tsv-error-color / -light | #CC3838 / rgb(255,130,130) | rgb(223,15,15) / rgb(218,77,77) |
| --tsv-accept-color | #13F78D | rgb(5,177,71) |
| --tsv-away-color | #FF8B04 | rgb(247,84,19) |
| --presence-online | #17f78d | rgb(1,192,11) |
| --tsv-disabled-color (global) | #595959 | #888888 |
| --ts-new-header-bg | #121A2C | rgb(235,235,235) |
| --ts-menu-action-color (main.css root, not overridden) | #8ac5fc | #8ac5fc |
| --card-background-inverted | linear-gradient(to bottom,#222C41,#0C1225) | linear-gradient(to bottom,#C9D9E5,#0C1225) |
---------------------------------------------------------------------------------------------------
## 1. Context menu (.ts-context-menu)
### 1.1 DOM skeleton
```
div.ts-context-menu (template string, main.js@519851)
├─ <component :is=context_menu_component> → ToolMenu: (render@3875375 / main.js@3875363)
│ div.tsv-tool-menu.tsv-list.tsv-list-compact.tsv-no-padding
│ [TSLinkInteractionDialog | TSTextInteractionDialog] [hr] (text/link interaction only)
│ ts-list-simple-cell ×N (top-level "buttons") → li.tsv-item(.tsv-action …)
│ .tsv-item-container > .tsv-item-content > ts-icon-stack.tsv-icon-primary
│ > .tsv-item-text.tsv-flex-grow > .tsv-text-truncate
│ .tsv-item-accessory > one of: TSCheckbox | ts-toggle | ts-segmented-control.tsv-mar-l-small(preset compact)
│ | ts-button.tsv-tool-menu-accessory | <accessoryComponent>
│ .tsv-item-highlight
│ div.ts-tool-section(.ts-tool-no-title when title empty) ×M
│ p.ts-style-caption (section title; rendered if items>0 or >1 sections, and title non-empty)
│ ts-list-simple-cell ×K (same as above)
└─ ts-false-context-menu (only when a sub-menu component is displayed) > <component sub_menu_component>
```
Per-item class map (ToolMenu.classForButton, main.js@3874272): `tsv-is-destructive`←isDestructive, `tsv-is-disabled`←isDisabled, `tsv-is-visually-disabled`←isVisuallyDisabled, `tsv-tool-button-no-action`←onSelected===null (pointer-events:none, main.css@646136), `tsv-selectable`←onSelected; plus button.class object merged (e.g. `ts-context-menu-title`, `ts-context-menu-input`, `channel-commander`, `tsv-item-accessory-only`, `tsv-quick-info-group`, `tsv-quick-info-avatar`, `small-presence`).
Sub-menus are NOT flyouts: a sub-menu replaces the menu by pushing a new popup at the same click coordinates, whose first item is "Back" (universal.back, icon NavigationBack). Items that open sub-menus carry an accessory ts-button with icon NavigationForward (chevron) (main.js@1626763, @1628083, @1629403, @1858827).
### 1.2 Geometry & colours
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| position / z-index | absolute / 1000000, -webkit-app-region:no-drag, contain:layout style | same | main.css@156402 |
| background-color | **unset** (theme) — main.css value var(--ts-context-menu-background)=rgba(20,23,32,.85) is overridden | unset (main.css value rgba(230,238,243,.85) overridden) | main.js@92422@55021 |
| painted backdrop (::before) | absolute inset 0, z -1, `linear-gradient(to bottom,#0B1124,#222C41)`, opacity .8, radius 8px | `linear-gradient(to bottom,#C9D9E5,#C9D9E5)` (flat #C9D9E5), opacity .8, radius 8px | main.js@92422@55209 |
| backdrop-filter | blur(4px) | blur(4px) | main.css@156402 |
| border-radius | 8px (theme; main.css 4px) | 8px | main.js@92422@55021 |
| border | none (--tsv-context-menu-border: none) | 1px solid rgb(230,238,243) | themes / main.js@92422@5897 |
| box-shadow | 1px 1px 2px 0 rgba(0,0,0,.2) | same | main.css@156402 |
| text colour | #FFFFFF | #1a1a1a | main.css@156402 |
| base font-size | 14px (content) | 14px | main.css@156402 |
| inner .tsv-tool-menu | radius 4px, overflow hidden, min-width 170px !important, position relative | same | main.css@645569, @167978 |
| max width | client menus: modifiers style maxWidth 260px (from matrixRoomButtons return) | same | main.js@1657344 |
| ul / hr margin | 0 !important | same | main.css@157521 |
| item `li` (.tsv-list-compact li in menu) | padding 4px 5px (theme beats main.css 2px v / .tsv-no-padding 10px h) | same | main.js@92422@60170 |
| item min-height | `.tsv-list-compact li` min-height uses undefined var `--tsv-row-heigh-small` (typo) → invalid → auto; [INFERENCE] row = max(icon 22px, line 19px)+8px = 30px | same | main.css@76569, @70592 |
| item text | 15px / line-height 19px (theme; main.css compact 13px) ; margin-left 10px from icon; ellipsis truncation (.tsv-text-truncate) | same | main.js@92422@60284, main.css@72310, @73400 |
| icon | 22×22 (`--tsv-icon-size`×scale 1); --tsv-icon-base = #FFFFFF, --tsv-icon-tint = #1588FA | 22×22; base #1a1a1a, tint #5DA1CB | main.css@111475, @156402 |
| hover highlight (.tsv-item-highlight) | display:block on li:hover; absolute top 0 bottom 0 left 0 right 0, radius 0, z -1, background rgba(28,37,56,.85) (--tsv-context-menu-item-selection) | background #C9D9E5 | main.css@74548, @76715, @69654, @157050, @88626 |
| disabled (.tsv-is-disabled) | colour/icons #9c9c9c, pointer-events none (no hover) | #888888 | main.css@79745, themes |
| visually disabled (title rows) | #9c9c9c but clickable | #888888 | main.css@80010 |
| destructive (:not(.tsv-is-disabled).tsv-is-destructive) | text+icon rgb(255,130,130) | rgb(230,25,25) | main.css@157190 |
| constructive (.tsv-is-constructive) | text/icon/tint #13F78D | rgb(5,177,71) | main.css@79222 |
| channel-commander class | --tsv-icon-base #daa520 | #daa520 | main.css@157731 |
| title row (.ts-context-menu-title) | font-weight 500, padding 2px 0; `.ts-context-menu-input` padding-top/bottom 0 | same | main.css@157778, @157915 |
| section caption (p.ts-style-caption) | 13px/15px, colour #697A97, margin 4px 10px | #445d77 | main.css@55645, @70770 |
| untitled section separator (.ts-tool-no-title:not(:first-child)) | padding-top 4px; ::after 1px line, bg #697A97, margin 2px 10px, width calc(100%-20px), top 0 | bg #445d77 | main.css@168080, @168179 |
| accessory button | margin-left 10px | same | main.css@646070 |
| accessory-only row (slider/conn-info component) | li padding-h 5px !important; container hidden; accessory flex 1 | same | main.css@71968–72258 |
| inline create channel inside menu | margin 8px 10px | same | main.js@92422@104919 |
| input-dialog inside menu (.tsv-user-input-dialog) | max-width 200px, radius 4, padding-top 0 (tool-menu) / padding-bottom 0 !important; title padding 8px 15px; subtitle 13px subtitle-colour padding 0 15px 8px; option row padding 0 15px 8px; error 13px context-error colour; action padding 0 10px 8px, button width 100% | same | main.css@159329–161251, @157626, @645977 |
| tooltip on items | v-better-tooltip (item.tooltip) | | main.js@3875803 |
Legacy classes still in main.css but not emitted by ToolMenu [INFERENCE: no reference found in ToolMenu render]: `.ts-context-menu-group` (border-top 1px hsla(0,0%,95.7%,.1) between groups, `.scroll` max-height 250px), `.ts-context-menu-item` (padding 6px 9px, border-bottom 3px #274266), `.ts-context-menu-sub` (flyout right 100%, chevron = 3px black rotated border at right 6px), `.ts-context-menu-sub-group` (bg --tsv-bg, shadow 0 0 40px -5px rgba(0,0,0,.6)), `.ts-context-menu-inline-text-item` width 220px (main.css@157969–159290).
### 1.3 Menu assembly & ordering (main.js@1658003 openContextMenu / @1658438 getSortedButtonsAndSections)
- Providers run in order [serverButtons, channelButtons, matrixRoomButtons]; results merged.
- Per provider: a button/section without `order` gets `order = ++n`; an explicit order sets n = order. All buttons concatenated, then sorted by order (stable → ties keep provider order). Sections merged by identical title (items concatenated by order) and sorted; empty sections dropped.
- Modifiers merged (style maxWidth 260px etc). Menu not shown if 0 buttons and 0 sections.
- Section title = `p.ts-style-caption`; there are no hr separators between sections (separator line only for untitled sections).
### 1.4 CLIENT context menu (server tree)
Tree client passes `{client:{client}, display:{server:{serverName:false}}}` (main.js@4134324). Hence p (matrix/channel/recentExtras)=false → `_`=true, `b`=false; no server-name header; no "Action" section; matrixRoomButtons adds only the title row (no chat/contact rows because display.matrix.chatActions is absent). w = own client; u = client online in this connection; S = >1 clients selected.
A. Single client, **another** client (online). Final order:
| # | key | EN | RU | icon | condition / behaviour | src |
|---|---|---|---|---|---|---|
| 0 | (nickname) | client nickname | — | avatar (url) or SettingsAccount, stack ClientDetailed/ChatContact, mask ContactMask | classes ts-context-menu-title + ts-context-menu-input (+tsv-quick-info-avatar); isVisuallyDisabled; click on avatar opens lightbox ("universal.avatar_image") | main.js@1655144–1657344 |
| 1 | client.action.poke.title | Poke | Толкнуть | ChatPokeSolid | if CanExecuteAction(PokeClient). Opens input dialog: title client.action.poke.user "Poke {name}"/"Толкнуть {name}", subtitle client.action.poke.information, placeholder client.action.message.placeholder ("Optional Message"/"Необязательное сообщение"), button "Poke", maxLength 100; error shows "(Nx) An error occurred: …" and keeps input | main.js@1627203–1628083 |
| 2 | client.menu.change_volume | Change Volume | Регулировать громкость | SettingsAudio + › | always (online) → sub-menu 1.4.E | main.js@1628083 |
| 3 | client.connection_info.title | Connection Info | Информация о подключении | ModeStats + › | always (online) → sub-menu 1.4.F | main.js@1626763 |
| sec | universal.permissions (plural) | Permissions | Разрешения | — | section order 5; shown if serverGroups or channelGroups non-empty or perms below | main.js@1628963 |
| | universal.server_groups (plural) | Server Groups | Группы сервера | Contacts + › | if client has ≥1 server group (x.serverGroups) → sub-menu 1.4.G | main.js@1629403 |
| | universal.channel_groups (singular) | Channel Group | Группа канала | Groups + › | if online and channelGroups non-empty → sub-menu 1.4.H | main.js@1629403 |
| | universal.client_permissions | Client Permissions | Разрешения клиента | ModeServerPermissions | if b_virtualserver_client_permission_list; opens Permissions view | main.js@1629843 |
| | universal.channel_client_permissions (singular) | Channel Client Permissions | Разрешения клиента на канале | ModeServerPermissions | if b_virtualserver_channelclient_permission_list | main.js@1629843 |
| sec | settings.whisper.whispering | Whispering | Шептание | — | always | main.js@1857958 |
| | settings.whisper.add_to_list | Add to Whisperlist | Добавить в список шепотов | Add + ›, constructive (green) | sub-menu: Back, "settings.whisper.list.new" New Whisperlist/Новый список шепотов (Add, constructive), then each whisper list name (ModeServerCompact); non-List type asks confirmation settings.whisper.edit.type.warning | main.js@1857958–1858827 |
| sec | universal.moderation | Moderation | Модерация | — | if any item | main.js@1631163 |
| | client.action.move.to_self.title | Move to Own Channel | Переместить в собственный канал | Drag | online, in different channel, CanExecuteAction(MoveClient→own channel); password-protected own channel → input dialog "Move {name}", placeholder universal.channel_password, button client.action.move.button | main.js@1631163–1632043 |
| | client.action.kick.channel.title | Kick from Channel | Кикнуть с канала | ItemLeave, destructive | online & CanExecuteAction(KickFromChannel); dialog "Kick {name}", subtitle client.action.kick.channel.information, placeholder client.action.reason.placeholder, warning-style button, maxLength 80 | main.js@1632043–1632483 |
| | client.action.kick.server.title | Kick from Server | Кикнуть с сервера | ItemLeave, destructive | online & CanExecuteAction(KickFromServer); maxLength 80 | main.js@1632483–1632923 |
| | client.action.ban.title | Ban from Server | Забанить на сервере | ItemLeave, destructive | CanExecuteAction(BanClient); ban dialog render@4082364 (title client.action.ban.detail.title, duration input + select, reason) | main.js@1633363–1633803 |
| | client.avatar.delete | Delete Avatar | Удалить аватар | Delete, destructive | client has avatar and b_client_avatar_delete_other; confirmation client.avatar.delete.warning.other | main.js@1630283–1631163 |
B. Single client, **own** client:
| # | key | EN | RU | icon | condition |
|---|---|---|---|---|---|
| 0 | (own nickname) | nickname | — | avatar/SettingsAccount | editable: accessory Edit (pencil) icon, click → inline text editor (min 3 / max PRz chars; errors client.action.rename.error.with_min / too_long.with_max), showDelete | main.js@1656904 |
| 1 | client.info.channel_commander.title | Channel Commander | Командир канала | ChannelCommander | if b_client_use_channel_commander>0. When OFF: class channel-commander (gold #daa520 icon). When ON: isDestructive (red). Toggles flag | main.js@1626323 |
| 2 | client.connection_info.title | Connection Info | Информация о подключении | ModeStats + › | always |
| 3 | client.avatar.set | Set Avatar | Установить аватар | ContactNormal | if i_client_max_avatar_filesize = -1 or >0; file dialog client.avatar.select, png/jpeg | main.js@1628523 |
| 4 | client.avatar.delete | Delete Avatar | Удалить аватар | Delete, destructive | if own avatar set; confirm client.avatar.delete.warning |
| sec | Permissions section (same rules as A) | | | | |
(no Whispering / Moderation for own client.)
C. Multi-selection (>1 clients selected in tree; main.js@1620163–1625883). Buttons: none except title. Sections:
| section | key | EN | RU | items |
|---|---|---|---|---|
| order 5 | client.menu.multi_select.title | Multi Selection | Множественный выбор | client.menu.multi_select.deselect "Deselect all Clients"/"Снять выбор со всех клиентов" (ItemClose, badgeCount = selected count) |
| next | settings.whisper.whispering | Whispering | Шептание | Add to Whisperlist (for selection) |
| next | universal.chats (singular) | Chat | Чат | client.action.poke.title "Poke" (dialog title client.action.poke.multi "Poke {count} Users"/"Толкнуть пользователей ({count})"); client.action.message.title "Text Message"/"Текстовое сообщение" (ModeChat; dialog client.action.message.multi, subtitle client.action.message.information, button client.action.message.button, maxLength 8192). Section hidden when >10 selected |
| next | universal.moderation | Moderation | Модерация | Move to Own Channel (if not all already in own channel & allowed), Kick from Channel (destructive, always; per-target permission check at execution), Kick from Server (destructive, if allowed), Ban from Server (destructive, if allowed; nickname "N Users") |
D. Other contexts of the same provider (not the tree): `display.serverInteractions` without server → single "client.menu.server_interactions.title" Server Interactions/Взаимодействие с сервером (ServerGlobal + ›) listing servers where user is present; `b` path (chat/channel/recent) → section client.menu.action.title "Action"/"Действие": client.menu.action.join.channel "Join Channel of Client"/"Присоединиться к каналу клиента" (NavigationForward; if joinable & not own channel), client.action.find.title "Find Client in Server"/"Найти клиент на сервере" (ChannelSelectDefault; normal clients) (main.js@1634243). Chat-only rows (account/matrix-bound: client.action.open_chat "Open Private Chat"/"Открыть приватный чат", chat.user.action.add "Add as Contact"/"Добавить как контакт", ignore, favourite, call, notification settings, category, e2ee, copy user tag) appear only when display.matrix.* flags are set — not from the server tree (main.js@1647664–1654704).
E. Change Volume sub-menu (main.js@1616607): button Back; section "Change Volume": [accessory-only row with client fader component (class tsv-item-accessory-only, closeOnClicked false)], universal.mute "Mute"/"Заглушить" ↔ universal.unmute "Unmute"/"Включить звук" (InputMutedLocal; label flips), universal.reset "Reset"/"Сбросить" (destructive, Empty icon, does not close; unmutes and sets volume modifier 0). scrollEnabled false.
F. Connection Info sub-menu (main.js@1615746): first row Back (or title "Connection Info" if no parent) with accessory universal.close "Close" (ItemClose); then accessory-only row with connection-info component (showPropertyList).
G. Server Groups sub-menu (main.js@1635563): Back; section "Server Groups": one row per group: group icon (class client-group-icon), name, TSCheckbox accessory checked = membership; closeOnClicked false; toggles membership (reverts on error).
H. Channel Groups sub-menu (main.js@1636883): Back; rows per channel group with checkbox; exclusive selection (radio-like) — checking one unchecks others.
### 1.5 CHANNEL context menu (server tree)
Tree channel passes `{channel, display:{server:{serverName:false}}}` (main.js@4113301) → "Find Channel in Servertree" hidden (requires matrix/channel/recentExtras flag). Source channelButtons main.js@1610466–1615306.
| # | key | EN | RU | icon | condition |
|---|---|---|---|---|---|
| 0 | (channel name) | channel name | — | channel icon_url or Channel, stack Channel, mask ChannelMask | class ts-context-menu-title; isDisabled (renders disabled colour) |
| (removed channel) | universal.unavailable | Unavailable | Недоступно | Empty | only row when channel.isRemoved |
| 1 | universal.join | Join | Вступить | NavigationForward | if not own current channel; password prompt if needed |
| – | channel.action.find_in_tree | Find Channel in Servertree | Найти канал в дереве сервера | ChannelSelectDefault | NOT in tree (only chat/recent contexts) |
| 2 | universal.show.details | Show Details | Подробнее | ModeInfo | always (opens Info) |
| 3 | channel.action.browse_files | Browse Files | Просмотр файлов | ModeFiles | if ownClientCanBrowseFiles |
| 4 | share.action.create_invite | Create Invite | Создать приглашение | Share | always |
| 5 | universal.edit | Edit | Редактировать | Edit | ownClientCanModify && has any b_channel_modify_* perm (make_default/permanent/semi/temporary, name, topic, description, password, banner, codec, codec_quality, maxclients, maxfamilyclients, needed_talk_power, make_codec_encrypted, temp_delete_delay) |
| 6 | universal.delete | Delete | Удалить | ItemClose, destructive | requires b_channel_delete_{permanent|semi_permanent|temporary}>0 by channel type; if channel has clients or subchannels additionally b_channel_delete_flag_force. Confirm "channel.delete.are_you_sure" "Are you sure you want to delete {name}?" |
| sec (order 1) | settings.whisper.whispering | Whispering | Шептание | | Add to Whisperlist (constructive, ›) |
| sec | universal.management | Management | Управление | | shown if any of: |
| | universal.channel_permissions (singular) | Channel Permissions | Разрешения канала | ModeServerPermissions | b_virtualserver_channel_permission_list |
| | channel.create.new_subchannel | New Subchannel | Новый подканал | Add | b_channel_create_child && one of b_channel_create_permanent/semi_permanent/temporary → inline create-channel menu (mode subchannel, order 0) |
| | channel.create.inline.insert_below | Insert Channel Below | Вставить канал ниже | Add | b_channel_create_with_sortorder → inline create below (parent = channel parent or 0) |
| sec | universal.tools | Tools | Инструменты | | always |
| | server.recording.title | Local Recording | Локальная запись | ModeRecording | accessory while recording: universal.active "Active"/"Активно" with StatusRecording icon (class no-pulse + tsv-icon-recording-paused when paused) |
---------------------------------------------------------------------------------------------------
## 2. Buttons (.tsv-button / ts-button)
Base (main.css@148161 + theme main.js@92422@47884): inline-flex, center, cursor pointer, font-size 1rem, min-height 26px (theme; main.css 22px), height auto. `.tsv-button-content`: line-height 22px, centred; with image: 5px gap (left, or right if `.tsv-button-reversed` row-reverse). `.tsv-button.disabled`: cursor default, opacity .4 (main.css@156006). `.tsv-button-left-aligned` content start (theme).
| Variant | DARK | LIGHT | States | Source |
|---|---|---|---|---|
| .tsv-button-filled | bg linear-gradient(60deg,#0058FF,#1365BB); colour/icon #FFFFFF; border none; radius 100px (theme); padding 4px 20px (theme) | bg linear-gradient(-45deg,rgb(95,135,213) 1%,rgb(142,166,255) 100%); colour #1a1a1a | hover:not(.disabled) bg #1c82cc (D) / rgba(50,114,155,.3) (L) | main.css@151571, @151868; main.js@92422@46806, @47677 |
| filled + .tsv-is-destructive | linear-gradient(to top,#f33d3d,#ca3838); hover #f84e4e | linear-gradient(-45deg,rgba(223,15,15,.5) 1%,rgba(223,15,15,.3) 100%); hover rgba(223,15,15,.3) | | main.js@92422@46919, @47086 |
| .tsv-button-filled-warning | bg --tsv-button-warning-bg = linear-gradient(-45deg,#CC3838 1%,rgb(255,130,130) 100%); hover rgb(255,130,130); radius 4; padding 0 20px | linear-gradient(-45deg,rgba(223,15,15,.5),rgba(223,15,15,.3)); hover rgba(223,15,15,.3) | | main.css@153499 |
| .tsv-button-hero | theme: colour #FFFFFF, radius 100px, border none, bg filled gradient (as above); height 44px; padding 0 60px; font-weight 500; width fit-content; animation pulse 2s infinite (shadow #25eb93) | colour #1a1a1a, bg light filled gradient | hover: bg filled gradient, colour #8ac5fc; .disabled: no animation, opacity .5; .no-pulse: no animation/shadow; .ts-small: height 24, padding 0 20; .tsv-button-hero-slim: height 27.5px, padding 0 20 | main.css@153860–154750, @85031; main.js@92422@47160–47372 |
| .tsv-button-outlined | bg #1C2539; border 1px solid #1588FA; radius 8px; colour/icons #1588FA; padding 0 10px | bg rgb(235,235,235); border/colour #22658f | hover: bg rgba(255,255,255,.05)/rgba(0,0,0,.05), colour tint; constructive border/colour accept, hover accept-light (#b8ffd3 D / rgb(67,184,86) L); destructive error-color, hover error-light | main.css@151927–153259 |
| .tsv-button-plain | colour #1588FA | #22658f | hover #8ac5fc; constructive (theme) #17f78d / rgb(1,192,11); destructive rgb(255,130,130)/rgb(218,77,77) | main.css@149176–149631; main.js@92422@61495 |
| .tsv-button-tinted | colour tint2, padding 0 | | hover transparent, colour #8ac5fc | main.css@154829 |
| .tsv-button-gray | bg #1C2539 (theme preview-bg); radius 100px (theme); padding 4px 20px; cursor default | bg #bccbeb | hover colour #8ac5fc | main.css@155699; main.js@92422@47608, @47677 |
| .tsv-button-warning | colour/icons error-color | | | main.css@155175 |
| .tsv-button-tint-icon | icon base tint2 (destructive → error-light) | | | main.css@155552 |
| sizes | .tsv-button-small: font 14px, padding 4px 14px, height max-content; .tsv-button-large: font 16px, height 33px; .tsv-button-minimal: height max-content | | | main.css@148346–148610 |
| modal-dialog actions | primary/destructive: radius 15px, font 15px bold(700), height 30px, padding 0 20px, .is-busy opacity .7; link: no bg, 15px normal(450), padding 6px 0; disabled cursor not-allowed opacity .5; close: 30×30 radius 8 hover bg shade | | | main.css@425978–426505, @425186 |
| footer buttons | .tsv-footer filled/hero min-width 120px | | | main.js@92422@11768 |
## 3. Text input (ts-text-input → render@3201993)
DOM: `div.ts-text-input-box(.warning|.xl|.l|.s) > div.ts-text-input-box-inner(.hideDelete|.hideDisclosure|.hideReveal|.showDelete|.showDisclosure) > div.ts-input-wrapper > [div.ts-input-addon.addon-left|right > ts-icon] input.ts-input(.has-addon-left|right|.error-condition)` + accept/reveal/delete buttons + `.ts-text-input-box-warning`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| wrapper height | 26px (--ts-text-input-box-height) | same | main.css@141253, @5982 |
| box font-size / colour | 14px; colour #8ac5fc (box) | same | main.css@6181, @140811 |
| input bg | #2b3346 | #f5f5f5 | main.css@141697 |
| input border | 1.5px solid transparent | same | |
| input radius | 100px (theme `.ts-input-wrapper>.ts-input` overrides 5px) | same | main.js@92422@59997 |
| input padding | 12px 10px (theme) — overrides main.css padding-left 5 / right 26. [INFERENCE] with height 26 and border-box the vertical padding exceeds the box; text still overflows visibly — verify visually | same | main.js@92422@59997 |
| input height | 26px; box-shadow none !important | same | main.css@141697 |
| hover / focus | border 1.5px solid #1588FA; focus outline none | #5DA1CB | main.css@141998, @142090 |
| error | border 1.5px solid #f82929 (--ts-error-color) | same | main.css@142189 |
| placeholder | #697A97 opacity .5 | #445d77 opacity .5 | main.css@142278 |
| addon icon | left: 2.5px; right: 13px; with addon padding-left 27px | | main.css@141503–142376 |
| accept/reveal/delete | absolute right 10px, colour #8ac5fc, hover tint; reveal width 30px; tooltip "universal.input.password.reveal" show delay 750ms | | main.css@142675–143803; main.js@3207069 |
| warning | colour #db5959, 12px, icon margin-right 8, shown with margin 5px 0 | | main.css@143852–144199 |
| sizes | xl: 16px, wrapper 31.2px, input 36.4px; l: 15px, 31.2px; s: 13px, inner height 26px | | main.css@146205–147043 |
| generic .ts-input (non-box) | border 1px solid sep-colour, radius 4, padding 0 4px; hover/focus bg --tsv-bg + box-shadow 0 0 0 2px tint | | main.css@5753, @94638 |
## 4. Select (vue-multiselect `.multiselect`, render@5079157; class .ts-select)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| box | theme: border unset; box-sizing border-box; bg #2b3346 (--ts-select-bg=--tsv-bg); padding 2px 10px; radius 10px (theme root --ts-select-border-radius = xlarge); font 15px; line-height 15px; height fit-content; min-height 26px | bg #f5f5f5 | main.js@92422@64432; main.css@8488 |
| text colour | #FFFFFF | #1a1a1a | --ts-select-color |
| tags/single/input bg | unset (theme) | | main.js@92422@64934 |
| arrow (.multiselect__select) | 26×26 box at right, top 50% translateY(-50%); ::before 5px CSS triangle colour #2580c3 (--ts-primary-accent-color); transition transform .2s; active → rotate(180deg) | same | main.css@12093, @12344; main.js@92422@65187, @65569 |
| open state | z-index 50; bottom radii 0 (above: top radii 0) | | main.js@92422@64997 |
| dropdown | bg --tsv-bg; border unset !important; min-width 100%, width max-content; margin-left -10px; bottom radii 10px; max-height 240px; scroll | | main.css@12861; main.js@92422@65298 |
| option | padding 8px 10px; min-height 26px; line-height 13px; nowrap | | main.css@13869 |
| option highlight | bg --tsv-bg (theme); :hover bg #222A3C / rgb(235,235,235); :after hint (data-select) 13px subtitle colour | | main.js@92422@65435, @65510 |
| selected option | colour tint (#1588FA / #5DA1CB), bold 700, bg transparent; selected+highlight bg shaded-bg | | main.css@14687, @15082 |
| disabled | opacity .6; bg #2b3346; colour #000 | | main.css@8811, @15313 |
| .multiselect.medium | width fit-content, option padding 2px 2px 2px 8px; option title line-height 22px | | main.css@18299–18571 |
| native `select` | bg --tsv-bg, no border, radius 4, colour tint2, 13px, margin 2px 5px; hover opacity .75; checked option bg contrast-bg | | main.css@7015–7356 |
## 5. Toggle (ts-toggle)
Tokens: main.css --ts-toggle-width 20px; theme root --ts-toggle-height 0px, --ts-toggle-pill-size 16px, --ts-toggle-pill-left 0, --ts-toggle-checked-pill-left 0.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| track (.ts-toggle) | 40×20 px (width 20+16+4; theme height 16+4); radius 14px; background unset (theme); border 1px solid #697A97; flex centre | border 1px solid #445d77 | main.css@164820; main.js@92422@61535 |
| checked track | border 1px solid #17f78d | rgb(1,192,11) | main.js@92422@61665 |
| focus-within | border 2px solid tint | | main.css@165128 |
| inner rail (.ts-toggle-inner) | width 20px, height 0, bg unset (theme) | | main.css@165191; theme@61722 |
| knob (::after) | 16×16, radius 8px; bg #697A97 (theme); unchecked translateX(-8px) from rail left; checked translateX(12px); transitions transform .12s ease-in-out, width/left/bg .1s | bg #445d77 | main.css@165730, @165543; theme@61768 |
| checked knob | bg #17f78d | rgb(1,192,11) | theme@61841 |
| label | font 14px, line-height 18px; secondary lines margin-top 4px; p padding-right 20 | | theme@61933–62213; main.css@164725 |
## 6. Checkbox (ts-checkbox / TSCheckbox)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| size | 20×20 (element-level `--ts-checkbox-size:20px` on .ts-checkbox overrides theme root 22px) | same | main.css@166354, @166688 |
| background | #0c0d0f (--ts-checkbox-bg-color, main.css root) | #bccbeb | main.css@167064 |
| radius | 4px; transition background .1s | | |
| checkmark | SVG path stroke 3.12px, dasharray 29.78334 animated to 0 over .1s cubic-bezier(.4,0,.6,1); theme: size 100%, margin-left -5%, margin-top 5%, colour #17f78d | rgb(1,192,11) | main.css@167571, @167943; main.js@92422@82355 |
| disabled | opacity .6 | | main.css@167333 |
| label | line-height 24px, margin-right 10px, 13px (global label) | | main.css@166508, @658 |
Radio buttons: no `.radio`/ts-radio rule or component found; exclusive choices use segmented controls or exclusive checkboxes (channel groups). → UNRESOLVED/none.
## 7. Slider (ts-slider, render@3190925)
DOM: `div.ts-slider(.ts-slider-compact|.ts-slider-small|.has-marks) > input.ts-slider-hidden, marks div.ts-mark/.ts-bigmark, .ts-slider-track.overlay.ts-slider-track-fill, .ts-slider-track > .ts-slider-segment.ts-slider-segment-placeholder, .ts-slider-track > .ts-slider-segment > .ts-slider-segment-value, .ts-slider-track.ts-slider-track-progress …, knob`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| height | 36px (bar); min-width 40px; small: 20px | | main.css@173300, @176470 |
| track | 10px tall, vertically centred (small 8px) | | main.css@173713, @176549 |
| track fill | bg #131824, radius 4 | #bbbbbb | main.css@173406 |
| segment | margin 2px, radius 4, flex 1; compact: radius 0, margin 2px 0, end segments rounded | | main.css@175876–176101 |
| placeholder segment | bg shaded-bg | | main.css@176591 |
| segment value | radius 4; on: border 2px transparent; off: border 2px #fff, opacity 0, scale(.8,0); transitions transform .3s, border .5s, opacity .2s | | main.css@176658–177170 |
| knob | absolute, top calc(-50%+2px), translate(-50%,-50%), z 10; compact knob 8px, svg translateY(-3px) | | main.css@173965, @173545 |
| value bubble | bg contrast-bg (#0C1326 / #C9D9E5), radius 4, line-height 22, min-width 50, padding 0 5px, opacity 0 → .visible 1 (.1s); above knob; .bottom variant 6px below | | main.css@174113–174701 |
| marks | 2px wide, subtitle colour, opacity .6, inset 8px vertical | | main.css@175702 |
| VAD overlay | #13F78D, radius 4, width transition .1s | #30ee17 | main.css@680609 |
## 8. Segmented control (ts-segmented-control, render@3244964)
DOM: `div.tsv-segmented-control > div.tsv-segmented-button.tsv-action(.active) > ts-icon + span(.tsv-title-with-image)`, optional `.tsv-segment-control-reveal`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| container | bg #2b3346; radius 100px (theme, non-list); height 26px; inline-flex; colour tint | bg #f5f5f5 | main.css@162933; main.js@92422@13740 |
| in .tsv-bar | bg #121A2C (sidebar/secondary: --tsv-bg) | rgb(235,235,235) | main.css@163877, @164403 |
| button | font 10pt (13.33px), colour font-color, padding 0 4px, nowrap; span padding 0 5px; title-with-image padding-left 5 | | main.css@163184, @163775 |
| active | colour tint (#1588FA / #5DA1CB), bg transparent | | main.css@163549 |
| separators | ::after between buttons: 1px wide, height calc(100%-8px), margin 4px 0, bg #0B1124 (strong-bg), right -1px | bg #C9D9E5 | main.js@92422@36427 |
| only-active-highlight | inactive icons subtitle colour | | main.js@92422@67225 |
## 9. Tabs (.tsv-tabs)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| bar | min-height 26px; in .tsv-body no border | | main.css@68457, @93335 |
| tab item | padding 0 5px | | main.css@95284 |
| active tab (.tsv-tab-item-active::before) | bg --tsv-bg, radius 4, inset top/bottom 2px | | main.css@95512 |
| sidebar/secondary active bar-item | bg --tsv-tab-item-active = linear-gradient(to bottom,#0C1326,#222A3C) | linear-gradient(to bottom,#E5EBF9,rgb(235,235,235)) | main.css@91435 |
| .tsv-tabs-slim | transparent; margin-top 5px; ::before bg contrast-bg radius 4 inset left/right 10px (sidebar body: ::before bg --tsv-bg, margin-top 8px); first item margin-left 4px | | main.css@398266–398440; main.js@92422@11093 |
| .tsv-tabs-combined | tab hover highlight bg shaded-item-selection (=--tsv-bg) | | main.css@399159 |
| tab title | .tsv-bar-item-title 13px, margin 0 5px | | main.css@398703 |
| badge in tabs | hidden by default, scale-in .2s | | main.css@95147 |
## 10. Modals / dialogs / lightbox
| Element | Properties (D / L) | Source |
|---|---|---|
| .tsv-modal-overlay | absolute full-size; padding 8px 20px; backdrop-filter blur(2px); box-shadow inset 0 0 15px contrast-bg; ::before contrast-bg opacity .25; z 100 (`.root` z 1000, top 44px, height calc(100%-44px); login overlay full) | main.css@39549–40964, @468275 |
| enter/leave | opacity transition .15s | main.css@41067 |
| .tsv-modal-overlay-inner | flex column centred, 100% | main.css@40250 |
| .tsv-modal-container | theme bg #0C1326 / #C9D9E5; border 1px solid tint2 (#1588FA / #22658f); radius 8; min-width min(300px,100%); max-width min(680px,100%); height calc(100%-16px); .is-flexible-height auto, max calc(100%-16px); .is-loadable fade .1s | main.css@40455; main.js@92422@105718–106032 |
| .tsv-modal-title | width round(100% + 5.5px); h5 margin 16px 0, ellipsis | main.css@40638, @40057 |
| .ts-modal-dialog (scoped) | 480px, radius 8, shadow 0 24px 60px rgba(0,0,0,.55), overflow hidden; header flex padding 18px 18px 0 20px gap 10; title 16px bold 700 letter-spacing -.01em; subtitle 13px subtitle-colour mt 2; body 13px lh 1.5 gap 16 padding 18px 20px 20px scroll; footer padding 14px 20px gap 10 space-between | main.css@424367–425811 |
| .ts-lightbox | content-basis bg contrast-bg, border 1px sep-colour, radius 8, shadow 0 0 80px -10px rgba(0,0,0,.45), 90%×90% max 1920×1080 (fullscreen: no border/radius); close area top-right padding 4px 10px; platter bg shaded-bg radius 8, height calc(100% - 15px - 10px); hover overlay text gradient rgba(6,6,6,.9)→transparent fade .15s; footer 13px padding 2px 10px, spans subtitle colour | main.css@458244–464087 |
## 11. Notifications / toasts (.ts-notification, render@3944097/@3940123)
DOM: `div.ts-notification(.ts-notification-info|warning|error|announcement|plain) > .ts-notification-occurrences-container > span.ts-notification-occurrences; .ts-notification-image > ts-icon; .ts-notification-body > .ts-notification-title, .ts-notification-subtitle, .ts-notification-text; .ts-notification-actions.tsv-action-subtle > ts-icon(close); .ts-notification-progress-container > .ts-notification-progress-bar`.
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| box | flex, align centre, min-height 26px, margin-bottom 4px, backdrop blur(4px), text-shadow 1px 1px 2px contrast-bg; theme: border unset (removes 2px left tint), padding 8px 10px, radius 15px | | main.css@381477; main.js@92422@77507 |
| ::before (fill) | theme gradient linear-gradient(to right,#0B1124 0%,#222A3C 100%) opacity .95, radius 10px | linear-gradient(to right,#C9D9E5,rgb(235,235,235)) | main.js@92422@76764, @77881 |
| ::after (shadow) | box-shadow #000 4px 8px 5px 0, opacity .25, radius 10px | | main.js@92422@77690 |
| info | ::before linear-gradient(to right,#0C1326,#222A3C) opacity .85 | #C9D9E5→rgb(235,235,235) | theme@78281 |
| warning | linear-gradient(to right,#FF8B04,#222A3C) opacity .65 | rgb(247,84,19)→… | theme@78133 |
| error | linear-gradient(to right,#CC3838,#222A3C) opacity .65; text font-colour | rgb(223,15,15)→… | theme@78431, @78595 |
| announcement | linear-gradient(to right,#17f78d,#222A3C) opacity .75 | rgb(1,192,11)→… | theme@77981 |
| title / subtitle / text | 13px font-colour / 13px subtitle-colour (error subtitle error-light) / 13px subtitle-colour full width | | main.css@227077–227411 |
| image | margin-right 5px; icon scale 1.5 (33px) | | main.css@226921; theme@79981 |
| close icon (svg[name=item-close]) | icon base error-color | | theme@78686 |
| occurrences | 13px, margin-right 5px | | main.css@226724 |
| progress | 8px high bar container contrast-bg; bar gradient(to right,tint,#fb16c9) inset 2px; bottom radii 10px | | main.css@227534–227960 |
| widget variant | border 1px tint (theme: unset), radius 4, padding-left 10; title min-height 24px | | main.css@228235–228650; theme@77002 |
| notifications center | theme bg --card-background-inverted, max-height 320px; main.css radius 4, shadow 0 0 0 2px tint, arrow pointer 9px tint / 6px shaded; item separators 1px subtitle opacity .8 inset 10px; group notif bar 4px wide × (33+2)px | | main.css@384674–386828; theme@80028–81193 |
## 12. Tooltips (v-popper / v-better-tooltip)
| Property | DARK | LIGHT | Source |
|---|---|---|---|
| inner | bg #0C1326; radius 4; colour #697A97; 13px; padding 4px 10px | bg #C9D9E5; colour #445d77 | main.css@26597 |
| arrow | 5px CSS triangle in contrast-bg; 5px offset from target per placement | | main.css@26849–28454 |
| show/hide | opacity+visibility .15s; z 1000001 | | main.css@28700, @26419 |
| delay | example: password reveal tooltip show 750ms / hide 0 | | main.js@3207069 |
| item popover (.tsv-item-popover) | inner padding 4px 10px; items 14px min-width 180 | | main.css@223505 |
## 13. Badges
| Element | Properties | Source |
|---|---|---|
| .tsv-item-badge-count (list rows, e.g. "Deselect all Clients") | bg tint; radius 10px; colour contrast-bg (#0C1326 / #C9D9E5); 13px bolder; margin 0 5px; padding 0 5px | main.css@72950 |
| .tsv-badge-count | colour tint; 13px; 700; absolute z 1 | main.css@94956, @185006 |
| .tsv-badge-warning | colour away | main.css@95050 |
| .tsv-icon-badge::after (dot) | 6×6, bg error-color, radius 4, top/right 2px | main.css@95811 |
---------------------------------------------------------------------------------------------------
## UNRESOLVED
1. Exact popup positioning/flip logic of `He.Push` (attachment {x,y}, offset/size/noShrink modifiers) and whether a menu opens left/up near screen edges — not read.
2. Whether matrixRoomButtons throws/returns early for the channel menu (affects whether maxWidth 260px also applies to channel menus) — [INFERENCE] probably applies.
3. Row height: computed 30px assumes the `--tsv-row-heigh-small` typo invalidates min-height; not visually verified.
4. Text input vertical padding 12px within a 26px border-box height (theme) — actual rendered appearance not verified.
5. `1rem` base font-size for .tsv-button (html root font-size not resolved).
6. Slider knob SVG colours/shape and segment-value fill colour (likely inline/SVG) — not found in CSS.
7. `.ts-modal-dialog` background colour — no rule found in extracted CSS.
8. Client-fader (volume slider) component and connection-info component internals inside sub-menus — not extracted.
9. Icon glyphs (NY.* names listed) — SVG sources not mapped to files.
10. Radio control — none found.
11. Default v-better-tooltip delay for menu items (only the 750ms instance verified).
@@ -0,0 +1,381 @@
# TS6 6.0.0.5163 — Settings activity + Screenshare setup dialog (source-backed spec)
Scale: **Medium** (main.css :root defaults). Theme values: DARK = module `main.js@92422`, LIGHT = module `main.js@201685` (both load the same component overrides after main.css; at equal specificity theme-module rules win). `render@N` = render-skeletons.txt offsets. [INFERENCE] marks anything not read directly from source.
Token cheat-sheet used below (themes.txt):
| token | DARK | LIGHT |
|---|---|---|
| --tsv-bg | #2b3346 | #f5f5f5 |
| --tsv-header-bg | #1C2539 | = shaded rgb(235,235,235) |
| --tsv-shaded-bg | #222A3C | rgb(235,235,235) |
| --tsv-contrast-bg | #0C1326 | #C9D9E5 |
| --tsv-tint | #1588FA | #5DA1CB |
| --tsv-tint2 | = tint #1588FA | #22658f |
| --tsv-font-color | #FFFFFF | #1a1a1a |
| --tsv-font-subtitle-color | #697A97 | #445d77 |
| --tsv-separation-border-color | #1D1F20 | rgb(189,189,189) |
| --strong-bg | #0B1124 | = contrast #C9D9E5 |
| --presence-online | #17f78d | = online rgb(1,192,11) |
| --settings-highlight-bg | #282F40 | = deviant #d3d5de |
| --tsv-item-selection | = shaded #222A3C | = shaded rgb(235,235,235) |
| --tsv-slider-track-bg | #131824 | #bbbbbb |
| --tsv-slider-vad-color | #13F78D | #30ee17 |
| --tsv-disabled-color | #595959 | #888888 |
| --tsv-error-color / -light | #CC3838 / rgb(255,130,130) | rgb(223,15,15) / rgb(218,77,77) |
| --tsv-button-filled-bg | linear-gradient(60deg,#0058FF,#1365BB) | linear-gradient(-45deg,rgb(95,135,213) 1%,rgb(142,166,255) 100%) |
| --tsv-preview-bg / -font-color | #1C2539 / #FFFFFF | #bccbeb / #1a1a1a |
| --ts-menu-action-color (main.css root) | #8ac5fc | #8ac5fc |
Scale px: font 15 / content 14 / small 13 / minimal 13 / large 16; line-heights 19 / content 18 / small 15 / large 19; pad-h 40/20/10/5; pad-v 16/8/4/2; bar 36; bar-element 26; control 22; radii xxxl20 xxl15 xl10 large8 4 small2; pill 100px; icons 16/22/33/55/110; scrollbar 8; readability 640.
---
## 1. Presentation / routing
* Router: route `{name:"settings", path:"settings", props:{activityIdentifier:"settings"}}` uses module **6528** (the normal activity window). Module **73038** is the *second* route also named `settings` with `path:"/popup"` (popup window) — `main.js@~2769417`. (The assignment's "module 73038" is the popup variant.)
* Activity class (`main.js@~1846891`): `name = t("universal.settings")`, `type/identifier "settings"`, `image TSIcon.Settings`, `excludeFromHistory`, `showContentHeader false`, `presentWithBackground true`, `shouldDisplayContentModeControl = windowLayout.isSlim`, `customContentModesDropdownComponentData {isMenu:true}` (in slim windows a content-mode dropdown menu lists the categories; picking closes the menu — `isMenu` → `$emit("close")`, `main.js@4198601`).
* `resourcesComponent = showSettingsInSidebar ? <categories component> : null`; `showSettingsInSidebar = windowLayout.windowSize.width < 900` (`main.js@1371244`).
* **Window ≥ 900 px**: the page view `ts-settings-view` renders `.tsv-settings` = flex row: `SettingsCategories (in-sidebar=false, collapsed=false, detailed=true)` **left column inside the content pane** + selected page component `.tsv-settings-subcategory` (flex-grow 1) (`render@2965998`, `main.js@2965752`, `main.css@422392/422458`: `.tsv-settings{display:flex;z-index:1}`).
* **Window < 900 px**: in-page column is hidden (`showSettings = !showSettingsInSidebar`); the categories component is supplied as the sidebar resources component (prop default `inSidebar:true`, `main.js@4201918`) → rendered as sidebar list with a `.tsv-bar.tsv-tabs.tsv-tabs-slim` title + close (×) action [INFERENCE: placed in the sidebar's resources area].
* On mode change the activity pushes a navigation item (title + icon) for About / Chats / Privacy (`main.js@1848015`) [INFERENCE: shown in the window/content header bar, not as an in-page title]. There is **no in-page page-title header**; pages start directly with section cards.
* Sidebar footer gear: `.tsv-bar-item.tsv-action-subtle {active:settingsVisible}` with tooltip `universal.settings`; icon becomes `ItemClose` when settings visible and window compact (`render@2960759`, `main.js@2840524`).
* Settings pages live in the primary activity: `.tsv-activity-primary .tsv-settings-subcategory .ts-widget-wrapper, … .ts-widget:not(.transparent) {background: var(--tsv-header-bg) !important}` and segmented controls inside get `background: var(--tsv-bg)` (`main.js@92422@75451/75684`, same in @201685).
## 2. Category inventory (order is source order)
Lookup `categoriesLookup` (`main.js@4197285–4198151`); groups with no available modes vanish; any unassigned mode goes to an extra group `other` = `universal.others` ("Others"/"Прочие").
| # | Group (i18n key) | EN | RU | Mode key | Page title key | EN | RU | Icon (TSIcon) | Page module |
|---|---|---|---|---|---|---|---|---|---|
| 1 | settings.categories.user | User | Пользователь | SettingsAccount | settings.account.title | Account | Учетная запись | SettingsAccount | 63586 |
| 2 | 〃 | | | SettingsIdentity | settings.identity.title (tc 28 → plural) | Identities | Идентификаторы | SettingsIdentities | 13427 |
| 3 | 〃 | | | SettingsPrivacy | settings.privacy.title | Privacy | Конфиденциальность | SettingsPrivacy | 30484 |
| 4 | universal.application | Application | Приложение | SettingsAppearance | settings.appearance.title | Appearance | Внешний вид | SettingsAppearances | 74462 |
| 5 | 〃 | | | SettingsAudio | settings.audio.title | Audio | Аудио | SettingsAudio | 702 |
| 6 | 〃 | | | SettingsVideo | settings.video.title | Video | Видео | StreamPlaying | 30484 |
| 7 | 〃 | | | SettingsKeybind | settings.hotkey.title | Key Bindings | Привязки клавиш | SettingsKeybindings | 92350 |
| 8 | 〃 | | | SettingsChat | universal.chats (tc 28) | Chats | Чаты | SettingsChat | 30484 |
| 9 | 〃 | | | SettingsWhisper | settings.whisper.title | Whispers | Шепоты | SettingsWhispers | 86324 |
| 10 | 〃 | | | SettingsNotifications | universal.notifications | Notifications | Уведомления | Notifications | 186 |
| 11 | 〃 | | | SettingsFileTransfer | filetransfer.title | File Transfer | Передача файла | FileTransfer | 87209 |
| 12 | 〃 (only `navigator.platform==="win32"`) | | | SettingsOS | settings.os.title | OS Specific | Системные | SettingsBehavior | 64558 |
| 13 | settings.categories.customization | Extensions | Расширения | SettingsRemoteApps | settings.remote_apps.title | Remote Apps | Удаленные приложения | SettingsAddons | 24864 |
| 14 | universal.information | Information | Информация | SettingsAbout | universal.about | About | Информация | ModeInfo | 30484 |
Sources: mode defs `main.js@1335471–1338429` (`contentModes.settings`, all `component:"ts-settings-view", keepAlive, renderKey:"settings"`). Note: definition order differs from display order (display uses lookup order above). RemoteApps is excluded from TeamsPeach scope per parent; listing it only for parity awareness.
## 3. DOM skeletons
### 3.1 Categories column (`render@4202584`, `render@4199411`)
```
div.tsv-settings-categories{.not-in-sidebar when !inSidebar}
div.tsv-settings-title{.tsv-bar.tsv-tabs.tsv-tabs-slim when inSidebar}
div{inSidebar: .tsv-bar-item.tsv-bar-item-title.tsv-bar-item-title-container | else: .tsv-flex.tsv-flex-snd-center.ts-font-muted} (omitted when collapsed)
ts-icon.tsv-icon-subtitle-base.tsv-icon-large [icon Settings] (only when !inSidebar)
span{.tsv-mar-l-small when !inSidebar} "universal.settings"
div.tsv-flex-grow (inSidebar only)
div.tsv-bar-item.tsv-action-subtle > ts-icon[ItemClose] (inSidebar only)
SettingsCategoriesList.tsv-scroll-area
div.tsv-list
div.tsv-settings-category (per group)
TSSidebarTabHeader [headerTitle = group title]
ul.tsv-activity-group-list
ContentItemCell.tsv-icon-subtitle-base (per mode; item=itemForMode, isActive = settings.focused && lastContentModeKey===key)
```
### 3.2 Generic page (all pages share this; e.g. `render@4850979` audio)
```
div.ts-<page>-settings.tsv-view
div.tsv-body.tsv-view.tsv-scroll-area(.tsv-scroll-area-v on Appearance).tsv-clearance
div.tsv-readability.ts-widget-container
div.ts-widget-wrapper (one per section)
div.ts-widget-section-header > div.title "<section key>"
div.ts-card.ts-widget.full
div.ts-card-content (some pages)
div.ts-card-setting-container (one per setting row)
ts-toggle > (span "<label>") + p.tsv-font-subtitle "<enabled|disabled text>"
| label > span + p.tsv-font-subtitle ; control (Multiselect.medium / segmented / slider)
```
Toggle component (`render@3115228`): `div.ts-toggle-wrapper.ts-flex.row{inline} > label.tsv-flex-column (slot: title + description) + div.tsv-flex.tsv-flex-wrap.tsv-flex-snd-center > div.ts-toggle{checked,visible} > div.ts-toggle-inner{checked,visible} > input`. Wrapper `justify-content:space-between` → **label left, switch right** (`main.css@164638`).
## 4. Layout measurements (Medium)
### 4.1 Categories column (not-in-sidebar)
| property | value | source |
|---|---|---|
| layout | flex column; `flex: 0 0 clamp(30ch,20vw,50ch)`; max-width 50ch | main.css@259528, main.js@92422@55972 |
| font-size | 14px (content) | main.js@92422@55972 |
| padding | 8px 10px 8px 20px (v / h-small / v / h) | main.css@259528 |
| ch width [INFERENCE] | Noto Sans "0"≈0.57em → 30ch≈240px, 50ch≈400px at 14px; at 20vw: 1200px window → 240px | — |
| title block | margin 8px; icon 33px tinted subtitle colour; text "Settings" margin-left 10px, colour subtitle (`ts-font-muted`) | main.css@259736, render@4202584, main.css@79093 |
| list ul | margin-top 0 | main.css@259802 |
| group header | `.tsv-sidebar-tab-header` padding 0 10px; container min-height auto; `.tsv-sidebar-header-content` margin-top 4px; title colour subtitle, line-height 19px | main.css@258503/259884/259951/258407 |
| item | `.tsv-item` flex, padding 0 20px; **min-height 44px**; margin-right 20px | main.css@71550, main.js@92422@56120 |
| item text | margin-left 10px (after 22px icon [INFERENCE icon size default]) | main.css@72310 |
| hover | `.tsv-item-highlight` shown: absolute top/bottom 2px, left/right 10px, radius 4px, bg item-selection (DARK #222A3C / LIGHT rgb(235,235,235)) | main.css@74134/74548/88626 |
| selected | icon base/fill/stroke = tint (DARK #1588FA / LIGHT #5DA1CB); highlight bg settings-highlight (DARK #282F40 / LIGHT #d3d5de) | main.js@92422@56262/56446 |
| selected accent bar | `::after` on highlight: absolute top 0, left −10px (→ item left edge), width 4px, height calc(100% − 8px) (=32px on 40px highlight), margin 4px 0, bg tint, radius pill | main.js@92422@56581 |
| in context-menu variant | items padding-h 10px, highlight left/right 0; header padding 0 | main.css@259143/259378/259457 |
| scroll | `.tsv-settings .tsv-scroll-area(-v)` scrollbar-gutter stable | main.js@92422@69125 |
### 4.2 Page container
| element | value | source |
|---|---|---|
| `.tsv-body.tsv-clearance` | padding 8px 20px; inside `.tsv-settings` padding-right = 20−8 = **12px** (+8px stable scrollbar gutter) | main.css@77858, main.js@92422@69241 |
| `.tsv-readability` | align-self center; width 100%; max-width 640px (Medium default). Size-category overrides: h-regular 800, h-large 1000, h-xlarge 1200, h-xxlarge 1600 | main.css@78435–78728 |
| `.ts-widget-container` | inline-flex, wrap, justify center, align-items flex-start, **width 100% !important** (theme overrides main.css calc(100%+20px)) | main.css@28879, main.js@92422@66658 |
| `.ts-widget-wrapper` (section card) | **bg header-bg** (DARK #1C2539 / LIGHT rgb(235,235,235)); radius **15px**; padding **8px 20px**; margin-top **12px** (8+4); width 100% | main.js@92422@57054, main.css@35075 |
| card inside wrapper `.ts-card` | bg unset, margin 0, padding 0, border unset | main.js@92422@57284 |
| nested `.ts-widget-container > .ts-widget:not(.transparent)` (e.g. audio device sub-cards) | same header-bg, radius 15px, padding 8px 20px; margin-top 8px, first-child 0 (visually merges with wrapper [INFERENCE]) | main.js@92422@57054/66013/66089 |
| `.ts-widget` | margin 0 (theme); base min-width 180px | main.js@92422@66799, main.css@29171 |
| wrapper text | `.ts-widget-wrapper .ts-widget` font 14px / line-height 18px | main.js@92422@57369 |
| `.ts-card` (outside wrapper) | bg header-bg, radius 15px | main.js@92422@66817 |
| Legacy `.ts-settings-content-container` max-width 740px, padding 1em — not used by 6.0 skeletons [INFERENCE] | | main.css@21302 |
### 4.3 Section header
| | value | source |
|---|---|---|
| `.ts-widget-section-header` | flex, space-between, margin 4px 0, margin-right 10px, width 100%, z-index 10 | main.css@33892 |
| `:not(:first-child)` | margin-top 20px (16+4) | main.js@92422@41666 |
| `.title` inside wrapper | padding 0; colour font (DARK #FFF / LIGHT #1a1a1a); **15px, weight 600, line-height 19px**; margin 0 0 **16px**; `:before/:after` removed (no chip background) | main.js@92422@57857/58813 |
| compressed view | header padding 0 | main.js@92422@57514 |
| header back button (video codec sub-page) | translateY(−8px) | main.css@267003 |
### 4.4 Setting row
| | value | source |
|---|---|---|
| `.ts-card-setting-container` | margin-bottom **24px** (16+8); `:last-child` 0; `.no-bottom-margin` 0; `.extra-top-margin` margin-top 16px; `.disabled` opacity .5 + no pointer | main.js@92422@62275/62383, main.css@24205–24339 |
| label | 14px / line-height 18px; children after first margin-top 4px; `label p` padding-right 20px | main.js@92422@61933/62113/62213 |
| description `p` (not first) | margin-top 4px; after slider: 0, or −8px when container lacks `.has-marks` | main.js@92422@66369/66509/66596 |
| `.tsv-font-subtitle` description | colour subtitle; 13px | main.css@78820/78894 |
| `.ts-card-subtitle` | colour subtitle; 13px | main.css@23944 |
| `.ts-card-caption` (Appearance theme/tree/chat headings) | 16px, colour font, margin-bottom 8px | main.css@23748/23817 |
| inline label/control row | `.tsv-flex-row.tsv-flex-main-space-btwn.v-center` → label left, control right, vertically centered | render@4820089 |
| segmented row | `.tsv-flex-row.tsv-flex-wrap` > `div.tsv-flex-column-center.tsv-pad-r.tsv-flex-basis-120-grow` (label+subtitle, flex-basis 120px grow) + segmented control | render@4930444, main.css@60547 |
| text input inside row | margin 8px 0 | main.css@24416 |
| separators | none between rows (spacing only); Audio uses `hr`: no border, 20px wide, 8px tall pill in contrast-bg, centred; `.ts-divider-line` margin 8px 0 | main.css@680187/680135 |
### 4.5 Controls
**Toggle** (theme `--ts-toggle-height:0; --ts-toggle-pill-size:16px; pill-left 0`; main.css `--ts-toggle-width:20px`)
| | DARK | LIGHT | source |
|---|---|---|---|
| outer `.ts-toggle` size | 40 × 20px (width 20+16+4; height 16+4), radius 14px, flex center | same | main.css@164820, main.js@92422@61535 |
| outer bg / border | transparent / 1px solid #697A97 | transparent / 1px solid #445d77 | main.js@92422@61535 |
| checked border | 1px solid #17f78d | 1px solid rgb(1,192,11) | main.js@92422@61665 |
| knob | 16px circle; unchecked bg subtitle colour, checked bg presence-online; unchecked x = inner-left −8px, checked +12px (≈2px inset each side) | same rule | main.css@165730/166136, main.js@92422@61768/61841 |
| transition | transform .12s, width/left/bg .1s ease-in-out | | main.css@165543 |
| focus | 2px solid tint | #5DA1CB | main.css@165128 |
**Multiselect (select)** `.multiselect`: bg `--ts-select-bg`=tsv-bg (DARK #2b3346 / LIGHT #f5f5f5), no border, padding 2px 10px, radius 10px, font 15px, line-height 15px, min-height 26px; `.medium` width fit-content; options 2px 2px 2px 8px; open → touching-edge radii 0, chevron rotates 180°; dropdown min-width 100%, width max-content, margin-left −10px; option hover bg shaded-bg; selected option colour tint (`main.js@92422@64432–65569`, main.css@18299–18571, themes main.css root).
**Segmented control**: inline-flex, height 26px, **radius pill**, bg in settings = tsv-bg; buttons font 10pt (13.33px), padding 0 4px, text colour font, active colour tint; inter-button separator 1px × (26−8)=18px, colour strong-bg (DARK #0B1124 / LIGHT #C9D9E5), right −1px (`main.css@162933–163775`, main.js@92422@13740/36427/75684). `.only-active-highlight`: inactive icons subtitle colour (main.js@92422@67225).
**Slider** `.ts-slider`: height 36px, min-width 40px; track 10px high centered; fill bg slider-track (DARK #131824 / LIGHT #bbbbbb) radius 4px; value bubble bg contrast-bg, radius 4px, 22px line, min-width 50px, fade .1s; titled-segment labels 13px/15px, active label tint2 (main.css@173300–175256). Marks: 2px wide subtitle colour opacity .6 inset 8px.
**Device selector** `.ts-device-selection`: flex row center, margin-top 8px; leading icon margin-right 5px; selector `flex:1 0 auto` margin 0 (main.css@681559–681762).
**Number picker** (security level etc.): buttons bg tsv-bg radius 20px height 20px; input pill radius, padding 4px 0, monospace 14px; hover/focus ring 2px tint; +/− tint presence-online / red (main.css@168503–169841, main.js@92422@60889–61137).
## 5. Pages
### 5.1 Audio (`render@4850979`, module 702)
Order:
1. Section **settings.hotkey.microphone** "Microphone"/"Микрофон"
* `label` settings.audio.capture_device "Capture Device"/"Устройство захвата звука" → `.ts-device-selection` (icon + `audio-device-selector#captureDevice`).
* Sub-card: `.ts-vad-header` (flex, space-between, center): talk-status icon stack large (33px) `.client{talking}` + `.ts-audio-talk-status` (mr 10px) + `.ts-vad-label` (pl 10px) "settings.audio.broadcast.desc" "TeamSpeak will broadcast your voice…"/"TeamSpeak будет транслировать твой голос…" + subtitle `<em>` with one of broadcast.vad.desc.{activity|activity_ptt|continuously|ptt}.
* Toggle settings.hotkey.push_to_talk "Push to Talk (PTT)"/"Нажми и говори (PTT)" + push_to_talk.info. If no hotkey access: bar row destructive "Missing access for Key Bindings" + button "Visit Key Bindings". PTT editor `.ts-audio-ptt-editor` (margin 8px 0; inner card bg tsv-bg, padding 2px v; highlight shaded) with active hotkey profile editor; `.ts-ptt-release-delay-container` (flex center): icon, label "Release Delay"/"Задержка отпускания клавиши", grow, `ts-segmented-control#pttDelay`.
* Toggle settings.audio.vad.title "Voice Activity Detection (VAD)" + vad.disabled.info; `.ts-vadmode-container`: icon, label "Mode"/"Режим", `Multiselect.medium.multiselect--small.tsv-mar-l-small.ts-multiselect-vad` (min-width 15ch) options Automatic/Hybrid/Volume Gate (RU Автоматический/Гибридный/Порог громкости) with `.info` descriptions; `ts-slider#vadLevel` with `.ts-vad-bar-overlay` (live level fill: bg slider-vad DARK #13F78D / LIGHT #30ee17, radius 4px, width transition .1s) + subtitle.
* Toggle settings.audio.microphone.mute_automatically (+.enabled/.disabled).
* Toggle settings.audio.microphone.reactivate_previous_target (+.enabled/.disabled).
2. Section settings.audio.speakers_headphones "Speakers/Headphones"/"Динамики/наушники": playback device selector `#playbackDevice`; sub-card: label output_volume "Output Volume" + `audio-master-fader#volumeLevel` + output_volume.desc.
3. Section settings.audio.processing.title "Audio Processing"/"Обработка звука": `ts-settings-audio-test` first, then rows: noise_reduction (toggle + `ts-slider#denoiser-level`), gain (Automatic Gain Control), echo_reduction (Echo Cancellation), label echo_reduction.level.title "Echo Reduction / Ducking" + `ts-slider#duckingSlider`, typing (Typing Attenuation), comfort_noise (toggle + `#comfortNoiseSlider`). Each with `.info` subtitle.
Audio CSS: `.ts-audio-settings>div` width 100%; `.ts-toggle-wrapper` margin-top 8px (main.css@680018/680067). Audio test (`render@4838538`): `.ts-settings-audio-test.tsv-clearance-h` (padding 0 20px, margin-bottom 20px theme); buttons row flex space-between centered; record button `:before` 10×10 dot radius 10px error colour opacity .5, active → opacity 1 + pulse 2s (box-shadow 0→5px); position row: span – non-interactive slider (margin 0 20px, knob hidden) – span; info text pre-line "settings.audio.test.info". Container max-width 420 min 240 (main.css@678945–679795, main.js@92422@66713/66753). Buttons: "Record Test"/"Тестовая запись", "Stop"/"Остановить", "Listen"/"Слушать", "Finish"/"Закончить".
### 5.2 Appearance (`render@4820089`, module 74462; body uses `.tsv-scroll-area-v`)
1. Section universal.general "General"/"Общие":
* `label.ts-card-caption` "Stock Theme"/"Стандартная тема" + subtitle theme.stock.info; **TSThemePicker** (`render@4796835`, `main.js@4796558–4797004`): grid 2 columns, column gap 10px, row gap 8px, margin-top 8px. Items for `availableThemes=["dark","light"]` (`main.js@1303065`) labelled by capitalised name **"Dark", "Light"** (not translated). Item: bg `--preview-bg` = that theme's `--tsv-preview-bg` (Dark tile #1C2539, Light tile #bccbeb), colour that theme's preview-font (#FFFFFF / #1a1a1a) — independent of current theme; padding **28px 10px**; radius **15px**; centred text; transition all .1s; active: border 2px solid tint2; hover (not disabled) scale(1.025) (main.css@682490–683559, main.js@92422@63452).
* Toggle theme.user "User Theme" (+enabled "Use a third party theme"/disabled "Use stock theme") + user-style picker.
* `label` "Display Size"/"Размер дисплея" + info; **scale picker** (`render@4809631`, `main.js@4808105–4808865`): options Small / Medium / Large = keys universal.small "Small"/"Маленький", **universal.quality.medium "Medium"/"Среднее"**, universal.large "Large"/"Большой"; tooltip universal.show_preview_for "Showing preview for: '{name}'". Items `.ts-collection-item.ts-magnify-container.small`: flex-grow 1, margin 8px 10px, min 160 max 290px, bg shaded-bg, radius 10px, selected outline 2px solid tint2, hover scale 1.02 (.15s). Preview area `.preview` height 120px, mask to transparent at 82–100%; `.tsv-settings-window-scale-preview`: bg tsv-bg, no border, radius 4px, height 120px, padding 10px, zoom .8, bottom fade (transparent 80% → tsv-bg). 5 mock rows; per-scale CSS vars (value ×0.7): Small item 16.8 / icon 14 / radius 2.1 / pad-v 5.6 / pad-h 11.2px; Medium 18.2 / 15.4 / 2.8 / 7 / 14; Large 21 / 16.8 / 3.5 / 8.4 / 15.4. Row: circle (icon-size, font colour) + bar (60% of item height, opacity .62, font colour), max-width 350 (main.css@685839–686916, main.js@92422@63628–64379).
* Row (space-between): "Language"/"Язык" + language.info; `Multiselect.medium` with flag icon + title; restart warning `.ts-card-subtitle.ts-warning` "Language will change upon client restart!"; restart popup key `language.warning.restart_required.popup`.
* Row: "Icon View Mode"/"Режим просмотра значков" + info, Multiselect.medium (option e.g. "Large when collapsed").
2. Server tree section (title empty in skeleton – dynamic [UNRESOLVED key]): two columns of `.ts-homebase-navigation-card` (each max-width calc(50% − 20px), min-height 64px); toggles: show.badges, show.flags, show.contact_highlight, show.clients_before_channels | show.channel.banner, show.channel.bg, show.channel.commander. Then `label.ts-card-caption` "Tree Style"/"Стиль дерева" + collection of 2 live `server-tree` previews: "Compact"/"Компактный" and "Detailed"/"Подробнее" (key filetransfer.info.detailed), preview height 220px.
3. Chat section: "Style"/"Стиль" with Compact / Detailed live `chat-view` previews.
### 5.3 Key Bindings (`render@4916202`, editor `render@4179307`, module 92350)
* Page root `.ts-keybinds-settings` flex column, height 100%; body `.ts-keybinds-body` flex 1, overflow-y auto (main.css@677683/677761).
* Order: (optional destructive notice card) → card toggle "Require exact key match when triggering hotkeys"/"Комбинации горячих клавиш работают только при точном совпадении" → section "Profile"/"Профиль": `.tsv-settings-keybinds-profile` flex row (profile cell list `ContentItemCell.ts-keybinds-profile-cell.tsv-selected.tsv-item-badge-right`, rename (reveal-on-hover) + choose buttons, then bar items: "Activate"/"Активировать", delete, add) + subtitle profile.multi.info → (no-global-access card, macOS) → section "Bindings"/"Привязки" with editor (disabled → grayscale + 50% brightness) → Linux portal status cards.
* Hotkey row `.ts-keybinds-hotkeys-entry.tsv-item`: **grid** `minmax(0,1fr) | minmax(8rem,16rem) | 22px | 44px`, min-height 24px; col1 descriptor (icon + name min-width 100px pr 10px, 15px, font colour, truncate; optional small Multiselects); col2 key text right-aligned 13px subtitle colour, ellipsis, word-spacing −.1337em; col3 status 22×22 (error-light; recording/loading tint; keybind subtitle); col4 actions (Done / clear / add / remove). Unset row: "Choose"/"Выбрать" button revealed on hover spanning cols 2–4. Recording row: highlight shown with 2px tint ring; "press any key" text tint 13px. Additional bindings (2nd+) descriptor 13px subtitle. Buttons 13px. (main.css@357923–361395)
* Legacy `--ts-keybinds-bind-action-border-color: rgba(33,33,33,.4)`, `--ts-keybinds-bind-action-background-color: rgba(22,22,22,.2)` (main.css :root) — used only by legacy `.ts-keybinds-binds-*` rules, not in 6.0 skeletons [INFERENCE].
### 5.4 Identities (`render@4901780`, module 13427)
* Section (title dynamic = identities [INFERENCE]): `.tsv-settings-identities-card-inner` flex row wrap, mb 4px; profile list `.tsv-bar-profile-selection` min-width 120px with selected identity cell (+ "Used for your Homebase" badge — cloud-linked), rename/choose buttons, bar buttons "Use as Default"/"Использовать по умолчанию", delete, add; subtitle settings.identity.info (line-breaks); button "Import Identity from File"/"Импорт идентификатора из файла".
* Section "Details"/"Подробнее": phonetic nickname input `.ts-identity-nickname` (mb 8px; label 15px weight 200; placeholder "Use Identity Name"); subtitle nickname.info; security level block (`render@4192152`): header h5 "Security Level"/"Уровень безопасности" (14px font colour, mt 8px), current level pill (bg shaded-bg, pill radius, padding 4px 10px, margin 4px 10px), number input, "Improve"/"Улучшить" ↔ "Stop", slider (track height 19px), "Use Default"; info subtitle; `hr`; "Unique Identifier" header (margin 16px top 8px bottom) + uid text monospace 13px subtitle colour, selectable, break-all.
* Section "Bookmarks"/"Закладки": chips `.ts-identity-bookmark` bg contrast-bg radius 4px 13px subtitle colour, margin 2px 2.5px, padding 0 5px; explicit identity chip tint; empty "No related bookmarks found". (main.css@673762–675418, main.js@92422@60772/61186/61427)
### 5.5 Video (two render variants)
* `render@1842540` (Video settings page): section "Hardware Acceleration"/"Аппаратное ускорение": toggle "Use Cisco OpenH264"/"Использовать Cisco OpenH264" (+enabled/disabled; loading 13px "Loading OpenH264 binary from Cisco..."; error 13px warning colour "Failed to load OpenH264: {reason}"); label+toggle "Use Hardware Acceleration" (+enabled/disabled); expander `.ts-video-settings-expander` (margin-h 0; label font colour, normal weight) "Change specific hardware backends and configure advanced settings"; half-collapsed container (mask fade, max-height 7.5em, no pointer events when collapsed). Per codec sections: title with `.ts-video-codec-type` chip (bg subtitle colour, text header-bg colour, bold, radius 4px, padding 0 10px); rows Encoding/Decoding (label `.ts-video-codec-label` flex 1 1 25ch min 25ch; info "{codec}"); `Multiselect.medium.ts-video-codec-multiselect` (flex 1 0 min(35ch,60vw)); loader "Loading Hardware Acceleration Backends...". (main.css@267095–267918)
* `render@1836091` (codec sub-page): header "Settings" + back button; "Reset to Defaults"/"Сбросить на исходный"; per option row label + subtitle (italic "No Information for this Option available" when empty) + reset button + Multiselect / number / text / toggle; "Unsupported Codec".
### 5.6 Notifications (`render@4930444`, item `render@4925679`, module 186)
* Section "Sound Notifications"/"Звуковые уведомления": "Output Device"/"Устройство вывода звука" selector `#notificationDevice` + desc; "Volume"/"Громкость" master fader `#notificationLevel` + info.
* Section "System Notifications"/"Системные уведомления": row label+subtitle + `ts-segmented-control.only-active-highlight`.
* Repeating groups: header title + `ts-toggle.ts-card-top-button` (relative, top 50%) ; `ul.tsv-list.ts-notifications-item` of ContentItemCells (`.tsv-no-padding` padding-h 10px; `.tsv-inset-right` padding-left 40px, highlight left 30px); disabled note "All sound notifications in this section are disabled.".
* Item: flex row space-between, padding 8px 0; subtitle 13px subtitle colour; "Listen" button tint2 .9em (hover opacity .5); right side segmented (bg tsv-bg, hover → shaded-bg) with tooltips "No Notification" / "Alert with System Notification"; "Show Advanced"/"Hide Advanced". (main.css@675694–677643, main.js@92422@67225/67431)
### 5.7 OS Specific (Windows only) (`render@4938946`, module 64558)
Section "Application"/"Приложение": toggle "Start with Windows"; row "Hide TeamSpeak in Taskbar" + Multiselect.medium (Never / On Minimize / On Close / Both; warning text for Close); toggles "Flash Taskbar for pokes", "Flash Taskbar on messages", "Mute Microphone when Locked" (EN/RU in §7).
### 5.8 About (`render@1827639`)
* Header card `.ts-about-settings-header-container`: flex wrap, padding-bottom 16px. Logo tile `:before` 155px wide, aspect 200/155 (=120px tall), radius 10px, background `radial-gradient(107.11% 107.11% at 50% 33.75%, #054DEA 3.95%, #132FB0 59.04%, #0157FB 85.27%)` (both themes); logo icon centred, DARK tint var font colour; LIGHT override `--tsv-icon-tint: font-color-invert #e5e5e5; --tsv-icon-base: tint` (main.js@201685@116824). Detail column (ml 10px, flex column): `p.ts-style-large.ts-about-version` colour tint2 15px, "Version"/"Версия" prefix in font colour; buttons column "Report Issue"/"Сообщить о проблеме", "Report Content"/"Пожаловаться на контент"; footer 13px mt 8px with rows Build Number / Build Date / Chromium Version (label subtitle colour grow, value right, selectable).
* Update section: "TeamSpeak is up to date" (13px subtitle, centred, line 22px) / loader 34px / "Check for Updates" (visible only when available) / progress slider (no knob) / "Restart".
* Changelog entry; links card: entry rows (height 28px, pl 10px, 15px semibold, gap 8px) "Open Source Licenses", "terms_and_conditions.title"; social grid: auto-fit minmax(130px,1fr), gap 12px 10px, mt 12px; tiles bg header-bg radius 15px height 102px; hover twitter #000, youtube red, facebook #0865fe (main.css@262941–266337, main.js@92422@67612–69026).
### 5.9 Other pages (keys only)
Privacy (`render@4949515`): sections settings.privacy.chat (share_server, typing), external_links (allow_whitelist_malicious, manage_trusted → trusted-hosts page), confirmations (reset), analytics (two TSAnalyticsPrivacyMode cards 116px icon; selected bg tsv-bg + outline 2px tint), and a customization (remote apps) card. Chats (`render@4876834`): contacts sort/show_offline/group_offline; text_edit (rich_text, toolbar_visibility segmented, mermaid_autoload segmented, markdown help); options (direct.auto_open, server.direct.auto_accept, filter.moderation, history, timestamp.format.24, auto_download_images); ignored users. File Transfer `render@4891379`, Whispers `render@4964515` / `render@5024929`, Account `render@4781561`.
## 6. Screenshare START dialog (`render@3752100`, scoped `data-v-bacc622e`)
### 6.1 Flow (`main.js@3772474–3773079`, state `main.js@3727292–3728222`)
Initial `currentTab:"windows"`, `settingsOpen:false`.
* **Step 1 – source picker**: left button "Cancel"/"Отмена"; primary "Next"/"Далее" (disabled until preview publishable).
* **Step 2 – settings** (`settingsOpen`): left "Back"/"Назад"; primary **"Go Live"/"Начать прямой эфир"**.
* Editing a running stream: left "Change Source"/"Изменить источник"; primary "Next" → "Apply"/"Применить"; "Unsaved changes"/"Несохраненные изменения" (13px, tint, mr 10px) shown, primary text tint when unsaved.
* Defaults: `resolutionLevel=3` (1080), `audioBitrateLevel=3` (192), `audioEnabled=true`, app-audio scope INCLUDE_ONLY, `fpsLevel=5` [UNRESOLVED mapping vs 3-entry FPS list].
### 6.2 DOM
```
.tsv-modal-overlay > .tsv-modal-overlay-inner
.tsv-flex-column.tsv-modal-container.tsv-pad-h.ts-setup-stream{loaded}
.setup-stream__preview-wrapper.tsv-mar-t.tsv-mar-b
.setup-stream__preview.video-stream (ts-loader | paused/minimized overlay: icon 110px + texts | "Select Source..." | video)
.tsv-flex-grow.tsv-flex-column.tsv-flex-1-v
.setup-stream__settings.tsv-flex-column.tsv-flex-grow.tsv-scroll-area-v.tsv-scroll-gutter-stable{collapsed-mode|wide-mode}
section Basic: expander title "Basic Settings" (ts-font-large)
row Preset [?] | segmented (360,480,720,1080,1440,Source,Presentation)
row Capture Audio / Application Audio [?] | scope segmented (Selected Apps / All Except Selected / All Apps) + toggle
.ts-card.full app-audio-select-list
row Privacy [?] | segmented icons-white (Public[Globe] / Contacts[Groups] / Private[Lock])
section Advanced (mt 16px): TSExpander "Advanced Settings" (hoverable; tint when open)
Resolution (360…1440, Source) | FPS (5,30,60) | Bitrate (ts-input-number + monospace unit) | Audio Bitrate [Kbps] (64,96,128,192,256,320) | Viewer Limit (number, 0=unlimited) | Connection Mode (P2P[Groups] / Server[ServerGreen])
.tabs.tsv-mar-t.mar-scrollbar{responsive-collapsed,tsv-mar-b}
.tab-item "Applications" | "Screens" | "Cameras" (video.sources.* tc 2)
ts-segmented-control.tsv-mar-b-small.tsv-mar-h (collapsed-tabs replacement)
.tsv-scroll-area-v.tsv-flex-grow.tsv-scroll-gutter-stable.thumbnail-grid-wrapper
.thumbnail-grid > .tsv-flex-column.video-stream{active} > img.thumbnail-img | .thumbnail-img-minimized | .thumbnail-img-loading ; span.thumbnail-title.ts-font-small
empty: "No available source found" ; Wayland: button "Open System Source Picker"
.setup-stream__actions.tsv-flex.tsv-mar-v.tsv-flex-snd-center.mar-scrollbar
ts-button(left) · flex-grow · [unsaved] · ts-button.tsv-button-large.tsv-button-hero-slim(type hero)
```
Preset values (`main.js@1949063–1949467`): 360=640×360 500kbps 30fps audio 64k; 480=852×480 1Mbps 30 96k; 720=1280×720 3Mbps 30 128k; 1080=1920×1080 5Mbps 30 192k; 1440=2560×1440 6.5Mbps 30 256k; Source=native 8Mbps 30 320k; Presentation=native 2Mbps **5fps** 320k. FPS list 5/30/60.
### 6.3 Measurements
| element | DARK | LIGHT | source |
|---|---|---|---|
| overlay | absolute inset 0, padding 8px 20px, backdrop blur 2px, inset shadow 0 0 15px contrast-bg (#0C1326); `:before` contrast-bg opacity .25; z 100; enter/leave .15s | same with #C9D9E5 | main.css@39549–41067 |
| container | bg **contrast-bg #0C1326**; border 1px solid tint2 #1588FA; radius 8px; width 80%, min max(300px…) max 680px; height calc(100% − 16px); padding-h 20px; opacity 0→1 .1s on load | bg #C9D9E5; border #22658f | main.css@179772/40455, main.js@92422@105718 |
| `--tsv-preview-width` | 240px | | main.css@179772 |
| preview wrapper | 16:9, max-height 240px, min-height 60px, max-width max(min(100%,426.7px,35.56vh),106.7px), centred, margin 8px top/bottom | | main.css@181323 |
| `.video-stream` tile | 16:9; bg shaded #222A3C; border 2px solid tsv-bg #2b3346; radius 8px; content-box; width calc(100% − 4px) | bg rgb(235,235,235); border #f5f5f5 | main.css@56083/180486 |
| tile hover / selected | border tint #1588FA (pointer) / border tint2 #1588FA | #5DA1CB / #22658f | main.css@180602/180712 |
| paused text | subtitle colour, padding 2px 5px, backdrop contrast-bg opacity .8 radius 4px; overlay pulse-scale 4s | | main.css@181689–182057 |
| settings section title | expander margin 4px 20px, min-height 16px, padding-right 22px; label 16px/19px | | main.css@47615, main.css@54540 |
| row | flex wrap, padding 4px 0, min-height 26px; label block min-width 120px, mr 10px, mt 4px; control right (`tsv-flex-end`), mt 4px | | main.css@183272/183337 |
| `?` help glyph | 19×19, 13px bold subtitle colour, circle border 2px subtitle colour, mr 5px; hover font colour | | main.css@182292–182751 |
| segmented (wide-mode) | outline 1px solid tsv-bg; active button bg shaded-bg + inset 0 0 4px 1px separation colour (#1D1F20); first/last active pill corners; separator after active hidden | outline #f5f5f5; inset rgb(189,189,189) | main.css@183410–184062 |
| tabs | flex space-around; mt 8px; margin-h 8px; mb 8px when not collapsed | | main.css@85608, main.css@179659 |
| tab item | flex 1 1, min-width fit-content, padding 4px 0, centred; content padding 4px 5px; underline 2px font colour opacity .075; first/last top radius 4px | | main.css@85814–86391 |
| tab active | bg shaded #222A3C, weight 700, underline tint2 opacity 1 (.2s) | rgb(235,235,235); #22658f | main.css@86472/86743 |
| tab hover (inactive) | underline tint opacity 1 | #5DA1CB | main.css@86585 |
| tab disabled | text subtitle colour; underline disabled #595959 | #445d77 / #888888 | main.css@86128/86190 |
| thumbnail grid | grid, gap 8px 10px, columns repeat(auto-fit, minmax(244px,1fr)); wrapper pl 8px, pr 10px, mr −10px | | main.css@181094/182973 |
| thumbnail title chip | absolute top 8px centred; bg contrast-bg; radius 4px; 14px; padding 2px 5px; max-width calc(100% − 20px); nowrap ellipsis | | main.css@180084 |
| loading/minimized placeholder | bg contrast-bg, full size | | main.css@180998 |
| app-audio list | rows height 30px, gap 2px, max 4 rows (126px) scroll; row radius 4px, padding 2px 20px (right 12px), gap 10px; left pill 3px wide (separation colour; captured → online #13F78D / rgb(1,192,11)); hover bg shaded; master row bg shaded, pill highlight colour, border-bottom separation, name bold; icon 26px; gain slider 96px; percent min 4ch | | main.css@177271–179532 |
| actions bar | flex, margin 8px v, margin-h 8px, centred | | render@3752100 |
| primary button | height 27.5px !important (22×1.25), padding 0 20px !important, font 16px; hero: bg button-filled-bg, colour font, pill radius, no border, `animation: pulse 2s infinite`; hover colour #8ac5fc | light gradient | main.css@85031/148346/153860, main.js@92422@46806/47160/47267 |
| other buttons | min-height 26px (theme) | | main.js@92422@47884 |
## 7. String table (visible labels, EN / RU)
| key | EN | RU |
|---|---|---|
| universal.settings | Settings | Настройки |
| settings.hotkey.microphone | Microphone | Микрофон |
| settings.audio.capture_device | Capture Device | Устройство захвата звука |
| settings.audio.playback_device | Playback Device | Устройство воспроизведения |
| settings.audio.speakers_headphones | Speakers/Headphones | Динамики/наушники |
| settings.audio.output_volume | Output Volume | Выходная громкость |
| settings.hotkey.push_to_talk | Push to Talk (PTT) | Нажми и говори (PTT) |
| settings.audio.push_to_talk.release_delay | Release Delay | Задержка отпускания клавиши |
| settings.audio.vad.title | Voice Activity Detection (VAD) | Обнаружение голосовой активности (VAD) |
| settings.audio.vad.mode | Mode | Режим |
| settings.audio.vad.mode.automatic/hybrid/volume_gate | Automatic / Hybrid / Volume Gate | Автоматический / Гибридный / Порог громкости |
| settings.audio.microphone.mute_automatically | Automatically Activate Microphone when switching Servers | Автоматически активировать микрофон при смене серверов |
| settings.audio.microphone.reactivate_previous_target | Automatically reactivate microphone on the previous server or call | Автоматически включать микрофон на предыдущем сервере или в предыдущем звонке |
| settings.audio.processing.title | Audio Processing | Обработка звука |
| …noise_reduction / gain / echo_reduction | Noise Reduction / Automatic Gain Control / Echo Cancellation | Шумоподавление / Автоматическая регулировка усиления / Подавление эха |
| …echo_reduction.level.title | Echo Reduction / Ducking | Подавление эха / фона |
| …typing / comfort_noise | Typing Attenuation / Comfort Noise | Затухание при наборе текста / Комфортный шум |
| settings.audio.test.record | Record Test | Тестовая запись |
| settings.appearance.theme.stock / .user | Stock Theme / User Theme | Стандартная тема / Пользовательская тема |
| settings.appearance.display_size | Display Size | Размер дисплея |
| settings.appearance.language | Language | Язык |
| settings.appearance.sidebar.icon_view_mode | Icon View Mode | Режим просмотра значков |
| settings.appearance.server.tree_style / chat.style | Tree Style / Style | Стиль дерева / Стиль |
| universal.compact / filetransfer.info.detailed | Compact / Detailed | Компактный / Подробнее |
| settings.hotkey.required_exact_match | Require exact key match when triggering hotkeys | Комбинации горячих клавиш работают только при точном совпадении |
| settings.hotkey.profile / .bindings / .activate | Profile / Bindings / Activate | Профиль / Привязки / Активировать |
| settings.hotkey.press_combination | Press key combination | Нажми комбинацию клавиш |
| settings.identity.security_level | Security Level | Уровень безопасности |
| universal.unique_identifier | Unique Identifier | Уникальный идентификатор |
| settings.video.hw_accel.title | Hardware Acceleration | Аппаратное ускорение |
| settings.video.codec.hw_accel.title | Use Hardware Acceleration | Использовать аппаратное ускорение |
| settings.video.encoding / decoding | Encoding / Decoding | Кодирование / Декодирование |
| settings.notifications.sound.title / system.title | Sound Notifications / System Notifications | Звуковые уведомления / Системные уведомления |
| settings.os.windows.auto_start | Start with Windows | Запускать с Windows |
| settings.os.windows.hide_in_taskbar (+.minimize/.close) | Hide TeamSpeak in Taskbar (On Minimize / On Close) | Скрыть TeamSpeak в панели задач (При сворачивании / При закрытии) |
| settings.os.windows.flash.on_poke / on_message | Flash Taskbar for pokes / Flash Taskbar on messages | Мигать панелью задач при толчках / Мигать значком на панели задач при новых сообщениях |
| settings.os.windows.locked.mute_microphone | Mute Microphone when Locked | Заглушать микрофон при блокировке |
| settings.about.version / check_for_updates / up_to_date | Version / Check for Updates / TeamSpeak is up to date | Версия / Проверить наличие обновлений / TeamSpeak обновлен |
| settings.about.build.number/date/chromium | Build Number / Build Date / Chromium Version | Номер сборки / Дата сборки / Версия Chromium |
| video.setup.section.basic / advanced | Basic Settings / Advanced Settings | Основные настройки / Расширенные настройки |
| video.preset / resolution / fps / bitrate | Preset / Resolution / FPS / Bitrate | Готовая конфигурация / Разрешение / Частота кадров / Битрейт |
| video.audio / video.audio.apps.title | Capture Audio / Application Audio | Захват звука / Звук приложений |
| video.audio.bitrate | Audio Bitrate [Kbps] | Битрейт аудио [Kbps] |
| video.privacy (+public/contacts/private) | Privacy (Public / Contacts / Private) | Конфиденциальность (Публичный / Контакты / Закрытая) |
| video.viewer_limit / video.mode.title | Viewer Limit / Connection Mode | Лимит зрителей / Режим подключения |
| video.mode.p2p / universal.servers(1) | P2P / Server | P2P / Сервер |
| video.sources.apps/screens/cameras (plural) | Applications / Screens / Cameras | Приложения / Экраны / Камеры |
| video.stream.select | Select Source... | Выбери источник... |
| video.action.go_live / universal.next / universal.back / universal.cancel / universal.apply / video.action.change_source | Go Live / Next / Back / Cancel / Apply / Change Source | Начать прямой эфир / Далее / Назад / Отмена / Применить / Изменить источник |
| video.error.no_available_source | No available source found | Не найдены доступные источники сигнала |
## 8. Account / cloud (myTeamSpeak) dependence — for the "strictly account-free" decision
| Item | Dependence | Evidence |
|---|---|---|
| **SettingsAccount page (entire)** | myTS account: logout, email, password change, recovery key, 2FA + devices, Homebase card / sign-in card, mobile QR pairing ("my_ts_required"), badges (redeem, drag active/available; "login_required") | render@4781561, render@4730085–4736420, render@4205829 |
| Identities: "Used for your Homebase" badge | Homebase (cloud) | render@4901780 |
| Privacy → chat: share_server, typing | myTS chat features | render@4949515 [INFERENCE] |
| Privacy → analytics (Limited/Extended) | telemetry to TeamSpeak services (not account) | render@4949515 |
| Chats page: contacts sort/show/group offline, direct chats auto-open, ignored users | myTS contacts/chat | render@4876834 [INFERENCE: server-direct auto_accept and timestamp/markdown options are local] |
| Notifications → "Global Group Chat", "Global Private Chat" | myTS chat | en.json settings.notifications.system.* |
| Appearance → "Show User Badges", "Highlight Contacts in the server tree" | badges/contacts from myTS [INFERENCE] | render@4820089 |
| Screenshare privacy "Contacts" option | myTS contacts list | main.js@3727292 |
| Remote Apps page + hotkey "remote_app" badge | excluded by parent | render@4957240 |
| About: Check for Updates / Report Issue / Report Content / changelog | TeamSpeak network services, not account | render@1827639 |
| Video: OpenH264 download "from Cisco" | network download, not account | render@1842540 |
| Everything else (Audio, Key Bindings, Identities core, Appearance core, Video HW accel, Whispers, File Transfer, OS, screenshare dialog) | local/server-only | — |
## 9. UNRESOLVED
1. Exact pixel width of 30ch/50ch for the category column (font metrics) — computed only by inference.
2. ContentItemCell internals for settings items (icon size, text weight/line-height, `detailed` mode styles) — not read (sidebar region spec owns `.tsv-item-*`).
3. Section-header title keys rendered dynamically (Appearance server-tree & chat sections; Identities first section; Chats first section).
4. Where the navigation item title (pushed on mode change) is visually shown; `showContentHeader=false`.
5. Size-category thresholds that switch `--tsv-readability-width` 640→800/1000/1200/1600.
6. Slider knob SVG geometry/colours; `audio-master-fader` and VAD level meter internal render; PTT delay and VAD option values.
7. Exact Ke.A sidebar placement when window <900px (assumed resources area).
8. Screenshare: whether tabs/grid and settings are mutually exclusive (v-if) — inferred from `settingsOpen`; `fpsLevel=5` default mapping; bitrate unit text; default `collapsedMode`/`tabsCollapsed` breakpoints (ResizeObserver logic not read); `.ts-expander` chevron icon; where the dialog is launched from (`video.action.start_stream` appears in render@4392276 menu).
9. Default `ts-button` (non-hero) background/border colours — owned by buttons region.
10. Icon artwork for TSIcon names (SettingsAccount, SettingsAppearances, SettingsBehavior, …).
@@ -0,0 +1,409 @@
# TS6 6.0.0.5163 — Window shell spec (sidebar, panes, headers, toolbar, footer, resize, base)
Scale: **Medium** (main.css `:root` defaults; `windowLayout.reloadWindowScale()` loads no override for Medium, main.js@~1274356). Theme modules: DARK = main.js@92422, LIGHT = main.js@201685. The light module repeats every dark component rule at identical offsets, then adds a light `:root` block (@201685@109157) and a few light-only rules (@201685@115487…117006). So **component rules are identical in both themes; only tokens differ** unless noted. Theme-module rules load after main.css, so they win at equal specificity.
Abbreviations: `D` = dark value, `L` = light value. `css@N` = main.css@N, `js@M@N` = theme module string.
---
## 0. Token values used below (resolved)
| token | D | L |
|---|---|---|
| --tsv-bg | #2b3346 | #f5f5f5 |
| --tsv-shaded-bg | #222A3C | rgb(235,235,235) |
| --tsv-header-bg | #1C2539 | = shaded-bg rgb(235,235,235) |
| --ts-new-header-bg | #121A2C | = shaded-bg rgb(235,235,235) |
| --tsv-side-bar-bg-gradient-bottom | #1D2537 | = bg #f5f5f5 |
| --tsv-deviant-bg | #1E2538 | #d3d5de |
| --presence-separator-presence | #171C2A | = deviant #d3d5de |
| --strong-bg | #0B1124 | = contrast-bg #C9D9E5 |
| --tsv-contrast-bg | #0C1326 | #C9D9E5 |
| --tsv-font-color | #FFFFFF (final merged value; first block says #E0E0E0, later block js@92422@7412 sets #FFFFFF) | #1a1a1a |
| --tsv-item-title-color | #E0E0E0 | #202020 |
| --tsv-font-subtitle-color | #697A97 | #445d77 |
| --tsv-tint / tint2 | #1588FA / #1588FA | #5DA1CB / #22658f |
| --tsv-error-color | #CC3838 | rgb(223,15,15) |
| --tsv-error-light-color | rgb(255,130,130) | rgb(218,77,77) |
| --tsv-scrollbar-bg | #0B111D | #b3b3b3 |
| --tsv-separation-border-color | #1D1F20 | rgb(189,189,189) |
| --tsv-contrast-color | #F5F6F6 | #474747 |
| --tsv-item-selection | = shaded-bg | = shaded-bg |
| --tsv-shaded-item-selection | = bg (but = deviant inside `.tsv-activities`) | same rule |
| --tsv-icon-base | = font-color | #494949 |
Scale tokens (Medium): font 15/lh19, content 14/18, small 13/15, minimal 13/14, large 16/19, title-small 24/28; weights normal 450, semibold 600, bold 700; row xlarge 52, large 44, row 24 (**sidebar overrides to 28**, see §2), small 20, minimal 16; padding-h large40/20/small10/minimal5; padding-v large16/8/small4/minimal2; bar 36; bar-element 26; control 22; radii xxxl20/xxl15/xl10/large8/4/small2; icons 22 (small16, large33, xlarge55); pill radius 100px; scrollbar 8px. Header window-bar height = row-height-large **44px**; content-header height = 16+55 = **71px**; `.tsv-has-content-header` header height = 44+71 = **115px** (css@65439, themes.txt).
---
## 1. Frame / 3-pane layout
### DOM (render@3035185, main.js@~3035625)
```
#app
div.tsv-window [windowClasses] {is-fullscreen-presented}
v-tour
SidebarArea.sidebar-pane-layout {tsv-flex-grow: !showActivity} props: showWindowControls=showSidebarOnly, collapsed
div.tsv-view.tsv-activity (inline style contain: layout size paint style)
ContentView#main-content-slot.tsv-activity-main.tsv-activity-primary.main-pane-layout {tsv-flex-grow: no detail, tsv-activity-overlaid}
props: showWindowControls = !showDetailContent, showCentralTools = true, masterContent = !showSidebar
ResizeHandle (left anchor; resizes SIDEBAR slot; info button = collapse sidebar)
ContentView.tsv-activity-detail.tsv-flex-grow {tsv-activity-secondary: showMainContent, tsv-activity-primary: !showMainContent}
props: showWindowControls = true, showCentralTools = !showMainContent || !windowLayout.showLeftSlot, detailContent
ResizeHandle (left anchor; resizes MAIN slot; no info button)
transition > div.ts-activity-slideover-container.tsv-view > ContentView.tsv-activity-slideover (+ResizeHandle shouldDisplayGrabber)
.ts-activity-slideover-edges-container …
portal-target.screenshare-fullscreen-host
div.tsv-modal-overlay.root / ts-first-launch / TSFullscreenOverlay
```
Consequence for a connected SERVER with channel chat: **toolbar pill lives in the main (server-tree) pane window bar; caption buttons live in the detail (chat) pane window bar, right end.** (main.js@3036095, @3037081)
### Pane sizes (windowSlots main.js@1273206; injected stylesheet main.js@1277886–1278839)
| slot | default | min | max | notes |
|---|---|---|---|---|
| sidebar (`.sidebar-pane-layout`) | 270px flex-basis | 62px (Small 52, Large 72) | 420 | `collapseAt:200` → collapses to min (62px rail) |
| main (`.main-pane-layout`) | 500px flex-basis | 220 | — | |
| detail | grows (size 0) | 295 | — | `.tsv-flex-grow` |
Injected: `.sidebar-pane-layout{flex-basis:Npx;min-width:62px}`, `.main-pane-layout{flex-basis:Npx;min-width:220px}`, `body{--tsv-window-sidebar-width:Npx (0 if popup/hidden); --tsv-window-main-width:Npx}`.
At 1280×900: sidebar 270 | main 500 | detail 510 (=1280−770) [INFERENCE: arithmetic, assumes no persisted user sizes].
ContentView size categories by pane width (main.js@2966672): <440 `tsv-view-size-category-h-compressed`, ≥440 minimal, ≥800 small, ≥1000 regular, ≥1200 large, ≥1400 xlarge, ≥1800 xxlarge. At default: main 500 → minimal, detail 510 → minimal. Class applied on `.tsv-view` via `viewClasses` (+ `tsv-has-content-header` when content's `showContentHeader` ≠ false).
### Frame CSS
| element | property | D | L | src |
|---|---|---|---|---|
| html,body | font-size 15px; height 100%; overflow hidden | | | css@1044 |
| body | background var(--tsv-bg); color font-color; user-select none | #2b3346 / #FFF | #f5f5f5 / #1a1a1a | css@59544 |
| .tsv-window | position fixed inset 0; display flex; background --tsv-bg; zoom 1; -webkit-app-region no-drag | #2b3346 | #f5f5f5 | css@60153 |
| .tsv-window:after | absolute inset 0, pointer-events none, z 1000000 (overlay layer, no paint) | | | css@60288 |
| .tsv-sidebar | flex 0 0 (basis 240 overridden by injected 270); z-index 1; contain layout style paint size; backface hidden | | | css@65094 |
| .tsv-view | flex column; max-height 100%; min-width 0; position relative | | | css@65247 |
| .tsv-activity | flex-direction row !important; flex-grow 1 | | | css@60433 |
| .tsv-activity-main | flex-basis 320 (overridden by injected 500); grow 0 | | | css@60493 |
| .tsv-activity-primary | border-left: main.css 1px separation → **theme: none** | none | none | css@93369 → js@13407 |
| .tsv-activity-primary/.secondary | contain layout size paint style; backface hidden | | | css@93456 |
| .tsv-body | flex-grow 1; min 0 | | | css@66658 |
| .tsv-body-background (generic/main pane) | background --tsv-bg; --body-bg bg; --body-bg-contrast shaded | #2b3346 | #f5f5f5 | css@90047 |
| .tsv-activity-secondary .tsv-body-background (detail pane when main shown) | background --tsv-shaded-bg | #222A3C | rgb(235,235,235) | css@90507 |
| .tsv-activity:not(.secondary) | --tsv-subtle-highlight-bg-color: shaded-bg | | | css@490439 |
### Rounded top-left corner of main content (js@92422@12406)
`.tsv-activity-main .tsv-header>.tsv-window-bar::after`: `--radius: var(--main-content-top-corner-radius, 10px)`, `--smoothing:.5px`; absolute; bottom .5px; left −.5px; 10×10px; background --ts-new-header-bg (D #121A2C, L rgb(235,235,235)); transform translateY(100%) (hangs below the window bar at the pane's left edge); z 1; `mask: radial-gradient(circle at 100% 100%, transparent 0, transparent calc(10px − .5px), white 10px)`. Effect: an inverse 10px fillet in header colour, so the main pane's content area (below the 44px window bar) appears to have a 10px rounded top-left corner cut into the dark header/sidebar colour. `.tsv-activity-main .tsv-header{z-index:3}`, `>.tsv-window-bar{z-index:2}` (js@12285, @12342). `--main-content-top-corner-radius` is never set in the extracted CSS [see UNRESOLVED].
### Loading overlay (index.html)
`#ts-app-loading-overlay`: absolute 100vw×100vh, background **#1c2537**, flex centered, `transition: opacity .2s ease`, font stack `-apple-system, BlinkMacSystemFont, 'Segoe UI Variable Fixed', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, emoji`; antialiased. Content: `.ts-loading-view-content svg.tsv-icon-teamspeak-logo` 200×200px. Same in both themes (static HTML).
---
## 2. Sidebar (SidebarArea, render@2960759, main.js@2960769)
### DOM
```
div.tsv-sidebar.tsv-view {tsv-sidebar-collapsed, tsv-sidebar-detailed}
CentralHeader.tsv-sidebar-header (= div.tsv-header.tsv-highlight, render@2842645)
div.tsv-bar.tsv-title-bar (row 1)
div.tsv-bar (ref searchRow) (row 2: search/location bar)
div.tsv-body.tsv-body-background.tsv-flex-vertical.tsv-sidebar-content {hasOverlay, tsv-scroll-area-v: !activitiesFixedSize, tsv-has-scrollbar}
ResourcesGroup {ts-resources-group-fixed-size} (stack[0]: activities list, render@2861562/2808254)
div.tsv-mar-t.ts-join-community.tsv-pad-h-small > p.tsv-font-subtitle.ts-join-community__text "dashboard.create_community.info" + TSButton "dashboard.create_community.action"
div.resources-section-container.tsv-flex-grow > transition > Resources.resources-section
div.tsv-footer
div.tsv-bar
TSPresenceV.tsv-flex-grow.tsv-no-padding (collapsed, detailed; render@2881714)
ts-connection-selector (ONLY when debugMode)
div.tsv-bar-item.tsv-action-subtle {active: settingsVisible} ts-icon Settings (hidden when collapsed; tooltip "universal.settings", placement bottom, delay show 1000)
```
Sidebar-scoped var: `.tsv-sidebar, .tsv-activity-secondary, .ts-stream-viewers { --tsv-row-height: calc(26px + 2px) = 28px }` (js@11250). `.tsv-sidebar-header{z-index:110}` (css@418456).
### Sidebar backgrounds
| area | D | L | src |
|---|---|---|---|
| header (.tsv-highlight.tsv-header) background | #121A2C (ts-new-header-bg); ::before display none; border-bottom none | rgb(235,235,235) | js@10803, @10891 (overrides honeycomb/hex mask css@93792/93877) |
| body (.tsv-sidebar .tsv-body-background) | linear-gradient(to bottom, #121A2C, #1D2537) | linear-gradient(to bottom, rgb(235,235,235), #f5f5f5) | js@10938 |
| footer (.tsv-sidebar .tsv-footer:not(.transparent)) background-color | #1D2537; border-top none | #f5f5f5 | js@11881 |
| footer separator ::before | absolute top 0, left 20px, right 20px, border-top **3px solid #171C2A** | 3px solid #d3d5de | js@12066 (beats generic `.tsv-footer::before{left:0;right:0;border-top-color:shaded}` js@11530 by specificity) |
| item highlight in sidebar | --tsv-shaded-item-selection (= bg #2b3346) ; inside .tsv-bar: item-selection (#222A3C) | #f5f5f5 / rgb(235) | css@92118, @92308 |
| cards in sidebar | contrast-bg | | css@25075 |
### 2a. Sidebar header (CentralHeader, main.js@2842459–2846691)
Header `.tsv-header`: flex column, flex-basis var(--tsv-header-height)=44, shrink 0, justify space-evenly, `-webkit-app-region: drag` (actions no-drag) (css@65555, @65870). Header colour = --tsv-header-font-color (= font-color).
Row 1 `.tsv-bar.tsv-title-bar`: min-height **71px** (css@67265); `.tsv-bar` = flex, align stretch, justify space-between, padding 0 10px (css@67029). Children in order (Windows, not compact):
1. `.tsv-bar-item.tsv-action` (data-v-step 3) > `.tsv-magnify` > [ts-pulsing-badge if unseen notifications] + ts-icon **Notifications** (22px) — opens notification center.
2. if `!showWindowControls && appearance.show_header_logo`: `.tsv-bar-item.tsv-action.tsv-no-padding.ts-title-logo` > ts-icon **TeamSpeakLabel 125×32**; click toggles dashboard. `.ts-title-logo{--tsv-icon-tint:#0353F4}` (js@12229). Light only: `.tsv-highlight .tsv-title-bar{--tsv-icon-base: rgb(18,77,119); --tsv-icon-tint: same}` (js@201685@116137).
3. `.tsv-bar-item > .tsv-icon` empty 22px spacer.
4. if showWindowControls (sidebar-only layout): `.tsv-flex-grow` + CentralWindowItem (caption buttons, §5).
macOS (`window.os==="macos"`) swaps: spacer first, bell later; never shows CentralWindowItem. Compact layout inserts `CentralToolbarItem.ts-match-collapsed-sidebar-spacing` (margin-left 20+1px, css@390852).
Collapsed (62px rail): title-bar contains only the Notifications action (or spacer on mac).
Row 2 `.tsv-bar` (min-height 36, padding 0 10) > `.tsv-bar-item.tsv-no-padding.tsv-flex-grow` >
- normal: `div.tsv-search-bar {tsv-active}` > [collapsed only: `.tsv-search-bar-item.tsv-action-subtle.left` ts-icon MainMenu, tooltip "Main Menu"] + (not collapsed) `input.tsv-search-input` placeholder `sidebar.search.placeholder`.
- when showing current item: `div.tsv-location-bar` > ContentItemCell.tsv-flex-grow + `.tsv-search-bar-item.tsv-action-subtle.right` ts-icon MainMenu {active: settingsVisible}.
- `.tsv-location-navigator.tsv-scroll-area-v` (dropdown of ResourcesActivities) when location bar active; `.tsv-location-response` toast.
| search bar prop | value | src |
|---|---|---|
| background (sidebar) | --tsv-deviant-bg: D #1E2538, L #d3d5de | js@11477 (base css@388684 contrast-bg) |
| border-radius | 100px pill | js@13740 |
| input | transparent, font 13px (small), height 26−2·2 = **22px**, padding 0 10px, no outline, color font-color, border none | css@389157, @389020 |
| placeholder | text-align left; color subtitle (D #697A97, L #445d77) | js@13815 |
| search-bar-item icon margins | 10px both; `.left` icon margin-right 5; `.right` icon margin-left 5 | css@388749–388943 |
### 2b. Activities list (module 6528, render@2808254) and resources groups (render@2861562)
```
div.tsv-activities {is-empty}
div.tsv-list
p.ts-style-caption (search results caption) + ul > ContentItemCell {highlighted, muted}
div.tsv-list (per opened activity group)
div.tsv-activity-group
TSSidebarTabHeader (render@3051719)
ul.tsv-activity-group-list {is-drop-zone, is-drop-zone-active}
li > ul.tsv-item-group {has-children: >1}
ContentItemCell.tsv-item-accessory-clearance {muted} (+ TSButton.tsv-action-subtle accessories)
div.tsv-clearance-h.tsv-subtitle.ts-activities-placeholder "sidebar.activities.placeholder" (theme: display:none, js@13348)
p.ts-style-caption "sidebar.activities.recent" + ul > ContentItemCell
p.ts-style-caption "sidebar.activities.spotlight" + ul > ContentItemCell
```
ContentItemCell inner (render@3071385): `div.tsv-item-container {tsv-editor, tsv-item-multiline, tsv-item-detailed, tsv-item-no-image}` > `.tsv-item-ambient-background` > `.tsv-item-content.tsv-item-content-primary` > `ts-icon-stack.tsv-icon-primary {tsv-icon-large: detailed}` + `.tsv-item-text.tsv-flex-grow > .tsv-text-truncate` + `span.tsv-item-badge-count` + `.tsv-item-text-detail.tsv-text-truncate` + `.tsv-item-accessory`.
TSSidebarTabHeader: `VTooltip.tsv-sidebar-tab-header > .tsv-item > .tsv-item-container > .tsv-item-content > .tsv-item-text.tsv-flex-grow > span.tsv-sidebar-tab-header-title.tsv-text-truncate` + `.tsv-item-accessory.tsv-sidebar-header-accessories` (+ compact variant `.tsv-item-container.ts-font-small > .tsv-item-content.tsv-sidebar-header-content > .tsv-sidebar-tab-header-symbol {tsv-action}`).
Activities CSS (selector prefix `.tsv-activities:not(.tsv-location-navigator .tsv-activities)` unless noted):
| element | property | value (D / L) | src |
|---|---|---|---|
| .tsv-activities, .tsv-item-group, .tsv-resize-area-container | redefine --tsv-bg and --tsv-shaded-item-selection = deviant | #1E2538 / #d3d5de | js@13483 |
| .tsv-item (generic) | display flex; padding-left/right **20px**; position relative; contain layout style | | css@71550 |
| .tsv-item (activities) | min-height **44px** | | js@14046 |
| .tsv-item:not(:last-child) | margin-bottom 4px | | js@14323 |
| .tsv-item .tsv-item-highlight | **display block (always)**, radius 8px; inset top/bottom 2px, left/right 10px (css@74134); background --tsv-shaded-item-selection = deviant | #1E2538 / #d3d5de | js@14176, css@92118 |
| group: .tsv-item-group.has-children | padding-bottom 4px | | js@14454 |
| group items' own highlight | display none | | js@14593 |
| group background ::before | deviant bg, border none, radius 8, left 10px (css@362260), right 10px, top/bottom 2px, width unset, z unset | #1E2538 / #d3d5de | js@14691 |
| group child rows (not first) | min-height 28px (sidebar row-height) | | js@15347 |
| group child separator ::before (not first-of-type) | 1px line, top −5px, left 8+44 = **52px**, right 2+44 = **46px**, color ts-new-header-bg | #121A2C / rgb(235) | js@14955 |
| .tsv-item-active-indicator | display none | | js@15468 |
| accessory tool-buttons | padding 0 5px; ::before pill 22px tall, centered (top 50%, translateY −50%), left/right 0, background --tsv-bg (= deviant here), radius pill, opacity 1 | | js@15580, @15772 |
| accessory local-mute active | --tsv-icon-tint: error | | js@16081 |
| accessory icons when row not hovered | --tsv-icon-base: subtitle (D #697A97, L #445d77) | | css@361527 |
| group item tool-buttons | margin-right 5px | | css@361628 |
| .tsv-activity-group:first-child | margin 4px 0 0 0 | | css@361909 |
| .tsv-activity-group .tsv-sidebar-tab-header .tsv-item-container | margin 4px 0; min-height 16px | | css@362013 |
| .tsv-activity-group-list | margin 0 !important | | css@362135 |
| .tsv-sidebar-tab-header | padding 0 10px | | css@258503 |
| .tsv-sidebar-tab-header-title | color subtitle; line-height 19px | | css@258407 |
| .tsv-sidebar-header-accessories | --tsv-icon-base tint2; gap 5px; margin-right 10px; `.background`: bg tsv-bg, radius 20, padding-left 4; disabled accessory opacity .5 | | css@258630–258867 |
| .tsv-sidebar-tab-header-symbol | --tsv-icon-base subtitle | | css@258982 |
| .ts-style-caption | color subtitle; 13px / 15px | | css@55645 |
| .tsv-list .ts-style-caption | margin 4px 10px | | css@70770 |
| .tsv-list ul | margin-top 4px | | css@70539 |
| .tsv-sidebar-content hr | margin 8px 20px | | css@419074 |
| .tsv-sidebar .tsv-resize-area-container | margin 8px 0 | | js@13908 |
| .tsv-sidebar .tsv-body-background .tsv-tabs | margin-top 8px; ::before bg tsv-bg | | js@11162, @11093 |
| .highlighted (search hit) | background tsv-bg | | css@361683 |
Generic item text: `.tsv-item-container` flex column, grow, min-height row-height (28 in sidebar) (css@76275); `.tsv-item-content` flex, align center, z 1 (css@76438); `.tsv-item-text` margin-left 10px, flex row (css@72310); `.tsv-item-text-detail` 13px, margin-left 5, colour subtitle, shrink 1e6 (css@72422, @88711); `.tsv-text-truncate` ellipsis nowrap (css@73400); primary icon 22×22 (`--tsv-icon-size × --tsv-icon-scale`, css@111475); detailed → `.tsv-icon-large` 33×33. Font: inherits #app 15px weight 450 (see §8).
Badge `.tsv-item-badge-count`: bg tint, radius 10, colour contrast-bg, 13px, bolder, margin 0 5, padding 0 5 (css@72950). Muted rows: text subtitle colour; images `grayscale(100%) brightness(50%)` (css@71140, @71501). Disabled `.tsv-item.disabled` opacity .4 (css@71932). Hover reveal: `.tsv-reveal-on-hover` opacity 0→1, `transition visibility .1s linear, opacity .1s ease-out` (css@76761–76928). Hover on `.tsv-action` scales `.tsv-item-content>.tsv-icon` 1.15, `transition: transform .1s ease-out` (css@102206, @102623).
Resources group tabs (render@2861562): `.tsv-bar.tsv-tabs.tsv-tabs-slim` (bg transparent, margin 5px 0 0 0, css@398266) with `.tsv-tab-item.tsv-bar-item` icons (`.tsv-icon-base-third-color`) + `.tsv-bar-item-title-container` (colour --ts-third-font-color, css@398102; title 13px margin 0 5, css@398703); active tab in sidebar background --tsv-tab-item-active (css@91435). [Detailed resources rendering is outside this region.]
### 2c. Collapsed rail (`.tsv-sidebar-collapsed`, width 62px)
- Title row: only Notifications action; search row: only MainMenu icon (`.left`), no input (main.js@2845191–2845691).
- Footer settings button not rendered; presence cell gets `collapsed:true`.
- `.ts-join-community` hidden (css@422348); `.ts-expander .label` hidden, expander centred margin 0 5px (css@48318, @421568); call cell actions/duration hidden (css@185653).
- Badges: `.tsv-item-badge-count` transparent bg, colour tint, margin/padding 0, translateX(−50%) (css@420203).
- `.tsv-tabs-slim .tsv-bar-item:first-of-type` margin-left 0, padding 0 10 (css@420360).
- Scroll: `.tsv-scroll-area-v` overflow-x hidden / y auto; thumbs hidden unless `.tsv-sidebar-collapsed:hover` (css@420453, @421899, @422061).
- With scrollbar: active-indicator mirrored to left; activity text absolutely positioned at left −(10+4)=−14px; highlights right 0; bars/tab headers padding-right 10−8 = 2px (css@420574–421464).
### 2d. Footer self bar (TSPresenceV, render@2881714, main.js@2881424–2884928)
- `.tsv-footer`: flex column, flex-basis --tsv-bar-height, shrink 0, justify space-evenly, position relative, z 10 (css@66707). **Theme sets `.tsv-footer{--tsv-bar-height: 55px}`** (icon-size-xlarge; js@13578) → footer and its `.tsv-bar` min-height **55px**.
- `.tsv-footer .tsv-action-subtle{--tsv-icon-base: subtitle}` (js@11660) → settings gear D #697A97 / L #445d77; hover `--tsv-icon-base: icon-tint2` (D #1588FA / L #22658f) (css@102771); `.active` (settings open) → icon base tint (css@108016–108288).
- TSPresenceV root `div.tsv-bar-item.tsv-loading-no-delay` (+ `.tsv-flex-grow.tsv-no-padding`). Always `useDetailedItem = true` (main.js@2877435) → primary icon `.tsv-icon-large` **33px** with `.tsv-sidebar-detailed …tsv-item-detailed .tsv-icon-primary{margin-left: −5.5px}` (css@422158) [applies only when sidebar has `tsv-sidebar-detailed`].
- State machine (first match wins):
1. uninitialized → TSListSimpleCell.tsv-item-subtle "universal.loading" (Loading icon)
2. requiresSetup → TSListSimpleCell **.tsv-is-constructive** "setup_chat.title" icon GetStarted (colour accept #13F78D / rgb(5,177,71), css@79222) — click setupChat
3. centralHomebaseUnavailable → .tsv-item-subtle "contactlist.status.chat_unavailable" (ItemEmpty) + tooltip
4. disconnected → .tsv-item-subtle displayName = own user name or "universal.disconnected", icon ChatContact, + TSButton ConnectionLost/ConnectionReconnecting {tsv-icon-flashing}
5. connecting / no user → .tsv-item-subtle "universal.connecting" (Loading)
6. normal → ContentItemCell.tsv-flex-grow (item = chat own user; editor placeholder = status message or "presence.custom_status"; max 100 chars; click = presence menu, right-click = edit status) + TSButton.tsv-action-subtle.tsv-reveal-on-hover ChangeNickname + [ConnectionReconnecting] + [Loading .ts-server-presence-loading | ServerGlobal .ts-has-server-presence].
`.tsv-item-subtle .tsv-item-text`: subtitle colour, 13px (css@89237). Presence dots: `.has-presence` 10px dot (14px large, 8px small), border 1px (2px large) in outline = tsv-bg; colours online #17f78d (L rgb(1,192,11)), away #FF8B04 (L rgb(247,84,19)), dnd error (js@7170, @106674–108079).
- Account note: states 2–6 are all myTS-chat driven. [For an account-free client the only states that do not imply cloud chat are 1/2; which to emulate is a product decision — see UNRESOLVED.]
---
## 3. ContentView header (render@2975910, main.js@2975982–2978408)
### DOM
```
div.tsv-view [viewClasses: tsv-has-content-header?, size category]
(masterContent ? CentralHeader : )
div.tsv-header {unrelated, tsv-header-floating, tsv-floating-background}
[shouldShowWindowBar = showCentralTools || showWindowControls || showBackButton]
div.tsv-bar.tsv-window-bar (style transform: translateZ(0))
showBackButton && !contentHeader ? div.tsv-bar-item.tsv-action > ts-icon NavigationBack
: div.tsv-bar-item > div.tsv-icon (22px spacer → 42px wide)
showCentralTools ? CentralToolbarItem.tsv-no-padding (data-v-step 1)
div.tsv-flex-grow
showWindowControls && !mac ? CentralWindowItem
[shouldShowContentHeader]
div.tsv-bar.tsv-content-header-bar.tsv-header-bar-below-tools
[back] div.tsv-bar-item.tsv-action > NavigationBack
div.tsv-bar-item.tsv-flex-grow.left.tsv-no-padding > ul.tsv-flex-grow > ContentItemCell.tsv-no-padding.tsv-content-header-item.tsv-show-animated-icon {muted}
div.tsv-bar-item.tsv-flex-fixed > ToolButtons(display-bar, headerTools)
[modes>1] div.tsv-bar-item.tsv-flex-fixed > SegmentedControl (preset limited, tooltips)
div.ts-horizontal-separator
[showNavigationBar] div.tsv-bar.tsv-bar-navigation (back | SegmentedControl | ToolButtons)
div.tsv-body.tsv-flex.tsv-body-background {tsv-needs-safe-area}
div.tsv-header-backdrop, NotificationsOverlay.tsv-clearance-small, TSBackgroundHexes (hidden by theme js@13348), TSEvictableKeepAlive > .tsv-item-view.tsv-view-transparent
```
| element | property | D | L | src |
|---|---|---|---|---|
| .tsv-header | border-bottom: main.css 1px separation → **theme none** | | | css@88147 → js@12844 |
| .tsv-header::before | absolute inset 0; default bg header-bg | | | css@65742, @88244 |
| main pane header ::before (.tsv-activity-primary) | background-color --tsv-bg | #2b3346 | #f5f5f5 | js@35090 |
| detail pane header ::before (.tsv-activity-detail) | background-color --tsv-shaded-bg | #222A3C | rgb(235,235,235) [light: main.css `.tsv-activity-secondary .tsv-header:before{background: shaded-header-bg}` is a gradient `linear-gradient(to bottom, rgb(243,243,243), rgb(220,220,220))`; theme only sets background-color so the gradient image stays on top — INFERENCE from cascade] | js@35204, css@90823 |
| .tsv-window-bar | background-color --ts-new-header-bg; min-height **44px**; padding 0 10 | #121A2C | rgb(235,235,235) | js@35522, css@67352 |
| .tsv-content-header-bar | min-height **71px** | | | css@67443 |
| .tsv-header-bar-below-tools:before | display none (theme) | | | js@13277 |
| .tsv-content-header-item | font **24px/28px bold (700)**; primary icon size round(1.15×33)=**38px**, portrait round(1.15×57)=**66px** | | | js@35588, @35761 |
| content-header item highlight | bg shaded-item-selection, top/bottom/left 0 | | | css@422982 |
| .ts-horizontal-separator | height 4px; bg --horizontal-separator-color = header-bg; theme margin 0 20px; width calc(100% − 40px); z 1 | #1C2539 | rgb(235,235,235) | css@253716, js@35446 |
| .tsv-header.unrelated | flex-basis 71; ::before bg tsv-bg; separator bg shaded, absolute bottom 0 | | | css@65919, js@35272, @35344 |
| .tsv-header.tsv-floating-background | backdrop-filter none; ::before opacity 1 | | | js@13167, @13232 |
| .tsv-header-floating | absolute top/left/right 0, z 1000 | | | css@66539 |
| .tsv-header-backdrop | absolute top 0, height header-height, pointer-events none; in secondary/sidebar bg tsv-bg; primary bg tsv-bg; detail shaded | | | css@65991, js@35090, @35204 |
| .tsv-bar-navigation | bg contrast-bg; items 30/40/30% | | | css@89732–89986 |
Window-bar total heights: main pane with no content header = 44px window bar only [whether the SERVER activity sets `showContentHeader:false` — see UNRESOLVED; the server tree renders its own TSServerHeader banner below].
### 3a. Central toolbar (CentralToolbarItem, render@2824431, main.js@2817536–2824452)
```
div.tsv-bar-item.tsv-no-padding.tsv-central-toolbar
tool-buttons {tsv-bar-compact} buttons=[awayButton] ← NOT in pill
tool-buttons.tsv-central-toolbar-buttons {tsv-bar-compact} buttons=[captureButton, playbackButton, (+screenshareButton if outbound streams)]
```
tool-buttons root: `div.tsv-tool-buttons.tsv-bar-item.tsv-no-padding.tsv-flex-fixed` > per button `div.tsv-tool-button.tsv-bar-item.tsv-item-action[classForButton]` > `.tsv-tool-button-icon-container.tsv-magnify {tsv-icon-badge}` > ts-icon.tsv-icon-no-animation (22px; small/large only if button flags) + optional `.tsv-tool-button-title.tsv-item-text` + optional `.tsv-tool-button-context-menu-toggle` (16px wide, height 22+4=26; icon small expander) + `span.tsv-badge-count` (render@3101891, main.js@3101941–3103238).
Buttons, order left→right:
| # | button | icon (normal / muted) | classes | title key → EN / RU | src |
|---|---|---|---|---|---|
| 1 | Away (separate group) | `Away` | active: awayState; `tsv-small-padding-left` | away.toggle.menu.title → "Toggle Online Status" / "Изменить онлайн-статус"; opens away menu (render@2814465) | main.js@2818764 |
| 2 | Microphone (pill) | `microphone` / `microphone-slash` | active: inputMuted && !hardware; `hardware-muted`; `tsv-small-padding-right` | toolbar.toggle.microphone → "Toggle Microphone" / "Включить/выключить микрофон" | main.js@2821383 |
| 3 | Speakers (pill) | `speaker` / `speaker-slash` (slash when muted for current) | active: outputMuted && !hardware; `hardware-muted` | toolbar.toggle.speakers → "Toggle Speakers/Headphones" / "Переключить динамики/наушники" | main.js@2822431 |
| 4 | Screenshare pause-all (pill, only while streaming) | — | — | — | main.js@2817536 |
Tooltip on 1–3: `toolbar.toggle.quick.tooltip` = "Click: all\n{alt}+Click: current\nSHIFT+Click: other except current" / "Клик: все\n{alt}+клик: текущий\nSHIFT+клик: все, кроме текущего"; delay show 500ms; popperClass `ts-tooltip ts-center`. Click/Alt/Shift = all / current / all-except-current.
Padding per button (classForButton main.js@3099299–3099800; allowPadding true here): every tool-button gets `tsv-no-padding-left` (0 !important) unless overridden; base `.tsv-bar-item` padding 0 10px. Away: `tsv-small-padding-left` (10 !important, declared later at css@69894 so wins over no-padding-left css@69769) → 10 | 10. Mic: left 0, `tsv-small-padding-right` 10 → 0 | 10. Speaker: 0 | 10. Icon 22px → each pill button ≈ 32px wide [INFERENCE: if no context-menu toggle is visible; `hasContextMenu` flags for mic/speaker not confirmed].
| pill CSS | value | src |
|---|---|---|
| .tsv-central-toolbar-buttons | height **26px**; position relative | css@378658 |
| .tsv-header .tsv-central-toolbar-buttons | padding-left 10px, padding-right 20px | js@12904 |
| ::before (pill) | absolute inset 0; background **--tsv-bg** (D #2b3346, L #f5f5f5); radius 100px; opacity 1; mask none (overrides main.css contrast-bg, radius 4, opacity .6, gradient mask) | js@13028, css@378749 |
| tool-button (in pill) | position relative | js@36026 |
| separators `.tsv-tool-button:not(:last-child)::after` | content ""; absolute; width 1px; height calc(100% − 4px); margin 2px 0; right calc(.5·10 − 1) = **4px**; background --strong-bg (D #0B1124, L #C9D9E5) | js@36427 + @36775 |
| icon states | normal icon-base = font-color (D #FFF, L #494949); `.active` → base = icon-tint (D #1588FA, L #5DA1CB); `.hardware-muted .tsv-icon-audio-*-muted` base error, error-glyph font-color | css@108016–108528, @411128 |
| hover | `.tsv-magnify` children scale 1.15, transition all .1s ease-out (only if `.tsv-action`, i.e. hasAction) | css@101725, @101862 |
| disabled | `.tsv-is-disabled`/`.tsv-action.disabled` opacity .5 | css@101574 |
| context toggle | icon base contrast-color, hover tint, open tint2 | css@184626–184923 |
| badge dot `.tsv-icon-badge:after` | 6×6, radius 4, bg error, top 2 right 2 | css@95811 |
| `.tsv-tool-button` | app-region no-drag; pointer-events none unless `.tsv-action`/`.has-tooltip` | css@184092, @184196 |
---
## 4. ResizeHandle (render@3049567, main.js@3049594–3050615; CSS scope data-v-5811607b)
- `div.tsv-resize-handle {tsv-active, tsv-resize-handle-<anchor>}` default anchor **left**. Children: grabber (only with `shouldDisplayGrabber`, used by slideover), `.resize-handle-vertical` (top/bottom anchors only), `.tsv-resize-handle-info.tsv-flex-center.tsv-action.tsv-action-subtle` > ts-icon.tsv-icon-small (16px) `NavigationForward` when collapsed else `NavigationBack` — shown only on the main pane handle when `!showSidebarOnly && (!collapsed || canExpandSidebar)`; click = collapse/expand sidebar.
| prop | value | src |
|---|---|---|
| hit area | position absolute, z 100, top/bottom 0, **width 9px, left −5.5px** (straddles pane edge), cursor col-resize | css@390964, @391436, @391701 |
| ::before | block, 100%×100%, transparent | css@391251 |
| active (dragging) ::before | background --active-color-1 = icon-tint (D #1588FA, L #5DA1CB), opacity .5 | css@392731 |
| info pill | absolute, left 50%, bottom 50%, width 13px, height 36px, bg contrast-bg (D #0C1326, L #C9D9E5), radius 4, colour tint2, 13px, opacity 0, `transition: all .2s` | css@392816 |
| info on handle hover/active | margin-left 5px, opacity 1 | css@393323 |
| destructive variant | active colours error-light / error | css@391122 |
| grabber (slideover only) | 2×60px, bg active-color-1, radius 4, top calc(50% − 30 − 36), arrows 12px at ±10px | css@391993–392666 |
No visible divider line at rest between panes (border-left removed, js@13407) — panes are separated only by background colour difference.
---
## 5. Window caption buttons (CentralWindowItem, module 60193, main.js@2798916–2800060, scope 11a6f863)
```
div.tsv-bar-item.tsv-no-padding (css .tsv-window-controls{align-self:flex-start} exists, css@380074)
div.tsv-bar-item.tsv-action-subtle @click window.minimize() ts-icon WindowMinimize
div.tsv-bar-item.tsv-action-subtle @click window.maximize() ts-icon WindowMaximize
div.tsv-bar-item.tsv-action-subtle @click window.close() ts-icon WindowClose
```
Rendered inside the window bar (44px tall) of: detail pane (always when present), main pane (when no detail), sidebar header title row (sidebar-only layout). Not rendered on macOS. Each: bar-item padding 0 10px + 22px icon = **42px**; total 126px; icon base font-color (D #FFF, L #494949), hover icon-base tint2 (css@102771). No hover background, no red close hover in source [INFERENCE: none found in extracted CSS].
---
## 6. Generic primitives
| class | properties | src |
|---|---|---|
| .tsv-bar | flex, align-items stretch, justify space-between, min-height 36, min-width 0, padding 0 10 | css@67029 |
| .tsv-bar-item | flex, align center, justify center, min-width 0, padding 0 10, relative; `.left` flex-start, `.right` flex-end; `-compact` 0 5 | css@68572, @68609–69050 |
| .tsv-bar-compact items | first pr 5; middle 0 5; last pl 5 | css@67627–67863 |
| .tsv-bar-large | padding 0 20, min-height 44 | css@67920 |
| .tsv-no-padding | padding-left/right 0; inner .tsv-item padding 0 10; highlight left/right 0 | css@69480–69654 |
| .tsv-item-highlight / -extra | absolute, display none, top/bottom 2, left/right 10, radius 4, z −1, pointer-events none; bg item-selection (shaded) | css@74134, @88626 |
| shown when | `.tsv-item:hover`, `.tsv-selected`, `.tsv-item-selected`, `.tsv-item-blocked` (.5 opacity, z 10); hidden for `:hover.disabled` | css@74548–74719 |
| .tsv-item-active-indicator | 0×0 triangle, border 10px transparent, border-right-color tint, right 0, top 50% translateY(−50%); :after 9px border-right-color tsv-bg offset (−10−1px, −10.6−1px); secondary variant: 6×6 dot tint radius 4 right 4 | css@74760, @74901, @94060–94384 |
| .tsv-action | cursor pointer; `.tinted` icon tint2; `.disabled` opacity .5 no events; icon-frame groups scale 1.2 staggered 0/.04/.08/.12s | css@101486–101574, @100882–101415 |
| .tsv-action-subtle | cursor default; hover icon-base → icon-tint2; `.disabled` opacity .5; `.active:hover` primary-active tint2 | css@102664–102837, @108627 |
| .tsv-action-highlight:hover | radius 4, box-shadow 0 0 0 1px tint | css@103822 |
| .tsv-is-constructive / -destructive | colour & icon = accept / error-light | css@79222, @79424 |
| .tsv-subtitle | subtitle colour, 13px, margin 0, padding 8px 20px 0, centered | css@361722 |
| .tsv-font-subtitle | subtitle colour 13px; .tsv-font-highlight tint; .ts-font-muted subtitle | css@78779–79093 |
| headings | h5 16/19, h6 15/19, both weight 450; strong / .ts-font-bold 700 (css@1115 sets 600 earlier, overridden) | css@53921–54050, @54384 |
| .ts-font-* | large 16/19, content 14/18, small 13/15, minimal 13/14, title-small 24/28 bold | css@54540–55195 |
| a | colour tint2, hover tint (later than `a{color:inherit}`) | css@88082, @88113 |
| hr | border-bottom 1px --ts-divider-bg-color hsla(216,4%,74%,.3), margin 16 0 | css@60036 |
---
## 7. Scrollbars
| prop | D | L | src |
|---|---|---|---|
| ::-webkit-scrollbar | width 8px (var), height 8px, bg transparent, radius 0 | width 8px, bg transparent (height 8px from earlier same-module rule) | js@92422@6928; js@201685@6928 & @116554 |
| track | transparent, radius 0 | same | js@6859 |
| thumb | **#0B111D**, radius 8px | **#b3b3b3**, radius 8px | js@7047 |
| corner | transparent | same | js@7133 |
(main.css legacy rules css@1350–1517 are overridden.) `.tsv-scroll-area, -v`: overflow-x hidden / y auto (css@77756). Safe-area headers push track margin-top by header height (css@66482). `.scroller` uses `overflow-y: overlay !important` (css@629699).
---
## 8. Base typography / rendering
- Font stack: `"Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Fixed", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, emoji` (themes.txt). `@font-face "Segoe UI Variable Fixed"` = local Segoe UI Variable Static Display / Display / Static Text, plus `src: local("Segoe UI"); unicode-range: U+60` (backtick) (css@59295, @59462).
- `#app`: font-size 15px, **font-weight 450**, `-webkit-font-smoothing: antialiased` (css@59619).
- Module 97870 (string at main.js@91945): `html,body{font-weight:500; -webkit-font-smoothing:subpixel-antialiased; -webkit-text-stroke:.1px}` and `#app{-webkit-font-smoothing:subpixel-antialiased; -webkit-text-stroke:.1px}`. It is a style-loader module with `.use()` (lazy, main.js@1166291) — when it is activated is UNRESOLVED. When active: #app keeps weight 450 (its own rule), html/body 500 only affects elements outside #app; text-stroke .1px and subpixel AA apply to #app.
- `* {text-rendering: optimizeLegibility}`, `*,:before,:after {box-sizing:border-box}` (css@203, @254). `label` 13px (css@658).
- Focus: **no global focus/focus-visible ring** in source; individual controls use `outline: 2px solid tint2; outline-offset 2px` (e.g. css@689549, @691024) or `box-shadow 0 0 0 1px tint` (css@359647). Inputs: `.tsv-search-input{outline:none}`.
---
## 9. Visible i18n strings (EN / RU)
| key | EN | RU |
|---|---|---|
| sidebar.search.placeholder | Search / Connect | Найти / Подключиться |
| universal.settings | Settings | Настройки |
| setup_chat.title | Setup Chat | Настройка чата |
| presence.custom_status | Custom Status | Пользовательский статус |
| universal.loading / connecting / disconnected | Loading / Connecting / Disconnected | Загрузка / Подключение / Отключен(-а) |
| sidebar.activities.recent | Recent | Недавние |
| sidebar.activities.spotlight | Spotlight | Интересное |
| sidebar.activities.placeholder (hidden by theme) | Use the universal search bar to find just what you need or to join a TeamSpeak Server. | Используй универсальную панель поиска… |
| universal.auto_resize | Auto Resize | Автонастройка размера |
| away.toggle.menu.title | Toggle Online Status | Изменить онлайн-статус |
| toolbar.toggle.microphone | Toggle Microphone | Включить/выключить микрофон |
| toolbar.toggle.speakers | Toggle Speakers/Headphones | Переключить динамики/наушники |
| "Main Menu" tooltip | hard-coded English literal, not i18n (main.js@2845191) | — |
---
## 10. Pixel recipe at 1280×900, server connected, Medium (summary)
- x 0–270 sidebar: header row1 71px (#121A2C D) [bell 42px | logo? | spacer], row2 36px search pill (#1E2538 D, text 13px), body gradient #121A2C→#1D2537, activity rows 44px with 8px-radius #1E2538 pills inset 10px, 4px gaps, footer 55px #1D2537 with 3px #171C2A line inset 20px at top, self cell (33px avatar) + 42px gear. Total header height ≈107px [INFERENCE: 71+36; header flex-basis 44 but min-height of content wins].
- x 270–770 main pane: window bar 44px #121A2C: [42px spacer][away 42px][pill: 10px pad | mic 32 | sep | speaker 32 | 20px pad, 26px tall, bg #2b3346][grow]; 10px inverse-corner fillet below its left end; body #2b3346 (server tree has its own gradient, see tree spec). Resize hit zone 9px centred on x=270.
- x 770–1280 detail pane: window bar 44px #121A2C with spacer left and 3×42px caption buttons right; header/body shaded #222A3C (D). Resize zone 9px centred on x=770.
Light: substitute L column values.
---
## UNRESOLVED
1. Whether the SERVER activity sets `showContentHeader:false` (i.e. whether the 71px `.tsv-content-header-bar` + 4px separator appear above the server tree) — getter reads `content.showContentHeader` (main.js@2970774); the TSServerActivity class was not inspected.
2. `--main-content-top-corner-radius` never assigned in extracted CSS → 10px fallback assumed.
3. Whether mic/speaker buttons have `hasContextMenu`/`contextMenuButtonVisible` (adds 16px expander and changes padding).
4. Activation condition of font-weight-500/text-stroke module 97870 (`.use()` caller not found).
5. Exact `.tsv-sidebar-tab-header-title` font-size (inherits; container may be `.ts-font-small` 13px in compact variant).
6. Caption-button icon glyph geometry/colours (SVG assets WindowMinimize/Maximize/Close not read); no hover background found in CSS.
7. Real sidebar header height (flex-basis 44 vs 71+36 content) — computed, not measured.
8. Footer presence state for an account-free client (official states assume myTS chat); "Setup Chat" constructive cell is the official no-chat state.
9. `tsv-sidebar-detailed` toggle condition (affects −5.5px avatar shift).
@@ -0,0 +1,77 @@
# TeamSpeak 6 client JSON server snapshots
## Source evidence
Read-only source: installed `C:/Users/Admin/AppData/Local/Programs/TeamSpeak/html/client_ui/main.js`, TeamSpeak 6.0.0.5163. Offsets are JavaScript string character offsets, not byte offsets.
- Snapshot service export `zS` (re-exported `zS3`): starts around 2425000; `createSnapshot` around 2426171. The view calls `applySnapshot` near 1787334; the actual service implementation follows `createSnapshot`.
- Schema version `0.0.1`, document type `teamspeak.server.snapshot`.
- Creation options: `catalogId="default"`, `catalogDescription="Server snapshot"`, `snapshotDescription`, `createdBy="Unknown"`; `includeServerSettings`, `includeChannels`, `includeServerGroups`, `includeServerGroupMembers`, `includeChannelGroups`, `includeIcons` all default false; optional string map `vars`.
- Document: `{type,schemaVersion,meta:{description,createdAt,createdBy,source:{serverVersion,platform}},vars,catalog:[{id,description,server?,channels?,serverGroups?,channelGroups?,icons?}]}`.
- Channels: recursive permanent-only tree with `name,topic,description,default,maxUsers,maxFamilyUsers,bannerGfxUrl,bannerMode,codec,quality,permissions,channels`. Permission records use symbolic `id`, integer `value`, optional `grant,skip,negate`; icon IDs are unsigned 32-bit JSON numbers.
- Server/channel groups: normal groups (`type=1`) sorted by sort ID then ID, `{name,permissions,default?,defaultChannelAdmin?,members?}`. Server group members are `{nickname,uid}`; the default server group does not enumerate members.
- Variables export replaces longest literal values first with `${key}`; import substitutes known keys and preserves unresolved placeholders.
- Icon JSON: `{id:string,data:base64-or-data-URL,mimeType:string}`. `collectIcons` calls the icon manager; `uploadIcons` maps old IDs to returned IDs before applying server/channel/group icon permissions. Built-in icons 0–1000 need no upload. Unmapped custom references must not silently become a target server's unrelated icon.
- Official apply order: icons, server settings, recursive channels, server groups, channel groups, default groups, member assignments. Name conflict modes: `skip`, `rename_new` (numbered suffix), `rename_existing` (`OLD name`, numbered suffix).
- `i_group_auto_update_max_value` is intentionally omitted on import. Official importer does not apply serialized `grant` separately.
- Official member assignment uses `requestServerGroupAssignByIds` with `{version:1,add:[{client_uid,vs_group_id}]}` for UID length >32, otherwise `{migration,vs_group_id}`. AstraCore recovered the native `vsgroupassignbyids json=...` constructor in installed TeamSpeak.dll at VA1814b8e7d (JSON key RIP VA182770354), and implements the typed `server_group_member_add_uid` bridge primitive. Snapshot import uses UID assignment directly; target servers that reject this modern command produce per-member partial failures, never false success.
- Icon manager module 66727 at 2316653 reads `/icons`, then resolves each icon through `GetIcon`. Classic storage real paths are `/icon_<id>`; HTTP/S3 real paths are `/icons/icon_<id>`.
- Official `uploadIconFile` at 2456817 uploads `/icons/icon_<randomString>` and reloads the list, selecting its last icon. TeamsPeach does not reproduce that race-prone last-item heuristic: it uses a content CRC32 filename, compares existing bytes on collision, awaits transfer completion, and maps the old JSON ID to that exact target ID.
## Implementation and integration contract
Files:
- `app/main/server-snapshot-codec.js`: JSON validation, source field mapping, variable substitution, ordinary server reads/mutations, hierarchical channel/group recreation and per-item results.
- `app/main/server-snapshots.js`: trusted-sender IPC, user-chosen paths, import tokens, connection pinning, icon temporary files/transfers, progress/cancellation.
- `app/renderer/js/server-snapshots.js`: `openServerSnapshots(connectionId)` entry; accessible dialog using existing `client-dialog` classes. The caller captures the viewed connection once.
Main registration:
```js
registerServerSnapshotsIpc({
ipcMain, trustedSender, dialog, getWindow, request, validConnectionId,
getConnection, subscribeCore, testOffscreen, tr,
});
```
`request(connectionId,command,args)` returns the raw bridge response `{ok,result|error}`. `getConnection(id)` returns the connection-manager entry. `subscribeCore(callback)` supplies `(connectionId,event)` and returns an unsubscribe function. Native operations are pinned to the exact entry, its session counter and its core object; mutations carry the `admin_context.generation`. Import tokens are additionally pinned to server UID/generation. Reconnecting never silently resumes on a new session.
Preload/IPC:
| Preload method | IPC | Arguments |
| --- | --- | --- |
| `snapshotExport` | `snapshots:export` | `(connectionId, creationOptions)` |
| `snapshotOpen` | `snapshots:open` | `(connectionId)` |
| `snapshotApply` | `snapshots:apply` | `(connectionId,{token,catalogId,conflictMode,vars,confirmation})` |
| `snapshotCancel` | `snapshots:cancel` | `(connectionId)` |
| `onSnapshotProgress` | `snapshots:progress` event | callback receives `{connectionId,mode,phase,identifier,current,total,errors}`; returns unsubscribe |
Open returns an opaque token, basename, metadata, variables, catalog summaries and the exact target server UID confirmation text, **not a path or arbitrary native command**. Apply requires the typed UID. Import documents remain in main; tokens expire after 30 minutes and are replaced when another file is opened for the same connection. No native dialog runs in offscreen mode. JSON files are bounded at 32 MiB, icons at 128 KiB, nesting/counts are bounded. SVG bytes remain opaque main-process file bytes and never become renderer DOM.
Native primitive contracts (owned by AstraCore):
- `admin_context {}` → `{generation,server_uid,permissions_catalog:[{id,name,description}]}`.
- `server_info`, `channel_list`, `server_group_list`, `channel_group_list` → `{rows:[wire fields]}`.
- `channel_info {channel_id}` → `{rows:[wire fields]}`, refreshing description.
- `server_group_perm_list {group_id}`, `channel_group_perm_list {group_id}`, `channel_perm_list {channel_id}`, `server_group_client_list {group_id}` → `{rows}`.
- `server_edit {generation,confirm:server_uid,properties:{wire_key:value}}` → server ack.
- `channel_create {generation,parent_id,properties}` → `{channel_id}`; `channel_edit {generation,channel_id,properties}` → ack.
- `group_add {generation,kind:'server'|'channel',name,type:1}` → `{group_id}`; `group_rename {generation,kind,group_id,name}` → ack.
- `group_set_permissions {generation,kind,group_id,permissions:[{id,value,negate,skip}]}`; `channel_set_permissions {generation,channel_id,permissions:[{id,value}]}` → ack.
- `server_group_member_add_uid {generation,group_id,uid}` → ack; native JSON chooses `migration` versus `client_uid` from UID length, with `vs_group_id` string.
- Main-only file primitives (AstraFiles): `file_list {channel_id:0,path:'/icons/'}` → `{entries:[{name,type,size,...}]}`. `file_download {channel_id:0,path:'/icons/icon_<u32>',dest_dir,subdirs:[],overwrite:false}` and `file_upload {channel_id:0,path:'/icons/icon_<u32>',source,overwrite:false}` return a queued `transfer_id`, not completion. Await flat `file_transfer` terminal `done|failed|cancelled` event. `file_cancel {transfer_id}` requests cancellation. The core handles classic storage path normalization; renderer generic file commands remain channel_id>0.
## Truthful outcomes and evidence boundaries
`ok` means IPC completed; it is **not** full operation success. `success` is true only with no omissions/failures. Partial results include `{partial,errors:[{type,identifier,message,code?}],created:{channels,serverGroups,channelGroups,icons,members,renamed}}`. Cancellation never claims rollback: completed server changes remain and the dialog says so. A failed create does not attach descendants to the wrong parent. A failed icon import does not apply its custom references. Name-conflict skips are explicit warnings and make the result partial.
Modern fields extend the older pinned declarations using installed TS6 source: server `sfuEndpoint` string (main.js@2372626, apply@2436342), `storageQuota` number (main.js@2372558, apply@2437810, UI unlimited −1/0xffffffff); channel `bannerGfxUrl` string and `bannerMode` enum 0/1/2 (apply@2440904/@2440961, UI@4087890). Native property table maps channel IDs 0x20/0x21 to `channel_banner_gfx_url`/`channel_banner_mode` (VA180cd22f0/180cd2330), server IDs 0x58/0x61 to `virtualserver_storage_quota`/`virtualserver_sfu_endpoint` (VA180cd623d/180cd650c). Generic flush constructors build `channeledit` (VA1814c687e) and `serveredit` (VA1814c7399), then append the serialized property payload through VA1822476c0. These fields are allowed and typed in native and IPC validators; this is static source/disassembly support, not live mutation proof. HTTP/S3 file transfer remains explicitly unsupported by the native transfer implementation, rather than silently using classic storage.
There is no `serversnapshotcreate`/`serversnapshotdeploy` native query and no modification of `core/src/snapshot.rs`. This is account-free connected-server administration only.
No build, tests, lint, live server mutation, native dialogs, audio, or UI launches were run for this slice. Integration verification remains with the main agent: codec round-trips, every partial-failure/cancellation boundary, stale-session dialogs, file transfer event correlation, source field mapping and imported icon remapping, followed by permitted end-to-end checks.
Deterministic test sources: `test/server-snapshot-codec.test.js` and `test/server-snapshots-main.test.js`. They use controlled core replies and temporary files with fake dialog callbacks; no real Electron window or server is opened. Coverage includes official JSON roundtrip, variables, hierarchy, icon/group/default/member mapping, partial errors, cancellation after an acknowledged mutation, stale generation/session refusal, early transfer-completion events, trusted-sender and offscreen refusal. These tests have not been executed in this slice.
Translations delivered as `local://snapshots-i18n.json` for AstraQA. AstraConnections owns registration/preload; AstraAdminUI owns the server-admin entry; AstraVisual owns `.server-snapshots`, `.snapshot-controls`, `.snapshot-section`, `.snapshot-errors` styling. Shared integration files were not edited by this slice.
@@ -0,0 +1,381 @@
# TS6 6.0.0.5163 — Server tree pane + video overlay spec (source-extracted)
Scale: Medium (main.css defaults). Theme modules: DARK = main.js@92422, LIGHT = main.js@201685. Both modules carry the same component rules (identical offsets inside each module) and load after main.css. Where a theme rule and a main.css rule have equal specificity, the theme rule wins. Refs: `css@N` = main.css offset; `D@N` / `L@N` = offset inside the dark/light module; `js@N` = raw main.js column; `render@N` = render-skeletons.txt.
Token values used below (from themes.txt): padding-h 20 / h-small 10 / h-minimal 5; padding-v 8 / v-small 4 / v-minimal 2 / v-large 16; row-height 24, large 44, small 20, xlarge 52; icon 22 / small 16 / large 33 / xlarge 55; font 15 / content 14 / small 13 / minimal 13 / large 16; radius 4 / large 8 / xlarge 10 / pill 100px; bar-element 26; control 22; scrollbar 8; video-border 2; video-radius 8.
---
## 1. DOM skeleton
```
.ts-server-tree-wrapper[.preview] render@1590114
ts-loader.ts-server-tree-loader (100×100, margin auto)
.ts-server-tree-item-root
ts-virtual-list.scroller.ts-server-tree-scroller.tsv-scrollbar-safe-area
(component ServerTreeItem, height-key treeHeight, static-height, sticky-slots)
slot top: div(ref serverHeader)
.ts-server-tree-content-spacer-top[.has-notifications]
ts-audio-device-recovery
TSServerHeader render@1565648
.ts-server-header (click → server info, contextmenu → server menu)
.tsv-view.tsv-view-banner[.tsv-active]
.tsv-view-background > img.tsv-view-background__img (host banner, optional)
.tsv-view-image > ts-icon-stack.tsv-detail-info-topic-image.tsv-icon-xlarge
.tsv-view-content.tsv-flex-grow.tsv-item-text > .tsv-text-truncate (server displayName)
.tsv-view-accessory > ts-tool-buttons (activity.headerBarItems, if any)
.tsv-view-accessory-corner.clearance
rows: ServerTreeItem → ChannelItem | ClientItem, style padding-left = indent (js@4158612)
slot bottom: .ts-server-tree-content-spacer-bottom
.server-tree-overlay (only if showOverlay; style height = floor(effectiveOverlayHeight)px)
ResizeHandle.overlay-resize-handle[.is-destructive] (anchor top, should-display-bar)
ts-button.video-overlay-action.inline.tsv-icon-subtitle-base (icon Expand)
.video-overlay.tsv-flex
.video-overlay__streaming.tsv-pad-l-small.tsv-pad-r-minimal.tsv-pad-v-small.tsv-flex-no-shrink.tsv-flex-column (style width)
.ts-notification.ts-notification-info > .ts-notification-body.join-requests-info.tsv-flex.pointer
span.join-requests-info__text.tsv-text-truncate, .tsv-flex-grow, ts-button.join-requests-info__enlarge.tsv-icon-tint-base (Expand)
.video-overlay__streaming__others > .tsv-flex.video-overlay__streaming__others__list
TSScreenshareStream.overlay-stream.video-overlay__streaming__others__list__stream ×≤3
TSScreenshareStream.overlay-stream.video-overlay__streaming__hero[--has-others]
.video-overlay__viewing.tsv-flex-column.tsv-pad-r-small.tsv-pad-l-minimal.tsv-pad-v-small
.video-overlay__viewing__hero.tsv-flex (style max-height) > TSScreenshareStream.overlay-stream
.video-overlay__viewing__others.tsv-flex (style max-height) > TSScreenshareStream.overlay-stream.showRecordingLamp ×n
(when minimized instead) .video-overlay-minimized.tsv-flex.tsv-pad-minimal.ts-font-minimal
ts-icon.inline.tsv-icon-error-base (VideoScreen), span.ts-style-error.stream-text-limit (outbound text),
ts-icon.inline.subtitle-to-base-fill (StreamPlaying), span.stream-text-limit (inbound text),
ts-button.inline.tsv-icon-subtitle-base (Expand)
.tsv-modal-overlay > .tsv-modal-overlay-inner.tsv-server-password-modal (wrong-password)
```
Channel row (render@4119970, js@4120154–4124274):
```
.ts-server-tree-item-leaf.channel{spacer,tsv-selected,tsv-active,ts-server-tree-item-has-banner,
tsv-highlight-whisper-preview,tsv-highlight-whisper,has-password,is-full} [draggable]
.ts-server-tree-item-node
.ts-server-tree-item-node-content.channel{ts-server-tree-item-node-with-childs,
ts-server-tree-item-key-without-chevron, ts-dnd-treeitem-border-top|bottom, ts-dnd-drag-into}
ts-icon-stack.tsv-server-tree-icon.channel (not for spacers; icons, mask ChannelMask, maskedIcon = channel icon_url)
span.ts-server-tree-channel-info.tsv-tree-preserve-spaces.<displayClasses> > span(ref textSpan) name
(no-text spacer: bare span.<displayClasses>)
.channel__user-preview.tsv-mar-l (only when !spacer && collapsed)
.channel__user-preview__avatar ×N (tooltip, --avatar-bg url) [+ overflow avatar "+N" ≤99, --avatar-font-size .75em]
.tsv-flex-grow
.tsv-item-accessory (only if tags or children)
span.ts-server-tree-item-tag ×n ("M" = moderated; tooltip delay 350ms)
ts-expander.ts-collapse-control (if children) | span.ts-tag-spacing (no children, has tags)
.ts-server-tree-item-background-image-full (banner && animated) > img
.ts-server-tree-item-background-image (banner; style --margin-left=indent) > img.__img (--margin-left = -indent) + .ts-server-tree-item-background-image-blur.<displayClasses>
.ts-server-tree-item-background-no-image (no banner && setting show_servertree_channel_background; margin-left=indent)
.tsv-item-highlight (no banner; margin-left=indent) | .tsv-item-highlight-extra (banner; margin-left=indent); .translucent if banner URL
```
Client row (render@4141049, js@4141223–4144975):
```
.ts-server-tree-item-leaf.client.tsv-animated-icon-on-hover{compact,self,tsv-selected,tsv-active,contact,
tsv-highlight-whisper-preview,tsv-highlight-whisper,is-streaming} [draggable]
.ts-server-tree-item-key.ts-server-tree-item-key-without-chevron.ts-server-tree-item-node-content.client
compact: ts-icon-stack.tsv-server-tree-icon.client{talking,whispering,channel-commander,normal,away,
output-muted,input-muted,hardware-muted,muted-avatar,<imageClasses>} (icons = status icon + PlayerOn)
default: ts-icon-stack.tsv-server-tree-icon.tsv-icon-large.client.detailed{talking,whispering,channel-commander,muted(=away)}
(icons clientDetailedIcons, mask ClientDetailedMask, maskedIcon avatar)
+ mute-indicator (span.mute-indicator > ts-icon) render@3168789
.ts-server-tree-client-info.compact
.ts-server-tree-client-info__name-row
.tsv-flex-column.ts-server-tree-client-info__name
span.ts-server-tree-item-text.ts-client-nick.tsv-text-truncate{talking,away}
.ts-server-tree-item-text-wrapper.tsv-text-truncate
span.ts-server-tree-item-groups > span.before ×n (group names shown before nick)
span.tsv-tree-preserve-spaces nickname
span.ts-away-message-inner (if away && awayMessage)
span.ts-server-tree-item-groups > span.after ×n
span.ts-server-tree-item-groups.recording (if recording; tooltip server.recording.title (self) / client.info.recording)
> span.after > ts-icon.tsv-icon-small(StatusRecording) + span.ts-server-tree-recording-label.tsv-hide-on-h-compressed "client.info.recording.short"
.tsv-flex.ts-server-tree-client-status-wrapper
ts-server-tree-client-active-status → .ts-server-tree-active-status > __item…
ts-server-tree-client-inactive-status → .ts-server-tree-inactive-status{hasExtra} > __item…
.tsv-item-highlight (style margin-left = indent)
```
Badge content order (render@4119970 tail): ACTIVE: voice-granted (.ts-client-voice-granted) | voice-requested (.ts-client-voice-requested{animate}) | voice-needed (.ts-client-voice-needed) | streaming icon (.tsv-icon-subtitle-accept, tooltip client.info.streaming) | channel commander (.channel-commander, tooltip client.info.channel_commander.title) | priority speaker (tooltip client.info.priority_speaker.title). INACTIVE: client icon (.client-icon.floaty, tooltip client.info.icon) | server-group icons (.server-group-icon.floaty) | channel-group icon (.channel-group-icon.floaty) | `.server-group-icon.extra` (+N) | second item: more server-group / client icons. Talk-power tooltips: client.talk_power, client.talk_power.request(.with_reason), client.talk_power.insufficient.
---
## 2. Measurements
### 2.1 Row heights (theme `:root` overrides main.css `:root`@615700)
| var | theme value (D & L) | px | main.css value (overridden) |
|---|---|---|---|
| --channel-height | 30px | 30 | – |
| --channel-spacing | `2 * (var(--tsv-padding-v) - 1px)` (no calc; used inside calc) | 14 | – |
| --ts-tree-channel-height-default | calc(30 + 14) | **44** | row-height-large 44 |
| --ts-tree-spacer-height-default | calc(30 + 14) | **44** | row-height-xlarge 52 |
| --ts-tree-client-height-default | calc(44 − 4) | **40** | 44 |
| --ts-tree-client-height-compact | calc(24 + 4) | **28** | 44 |
| --ts-tree-badges-height-default/compact | calc(24 − 1) | **23** | 20 |
JS reads these four vars via variableCache and passes them as virtual-list item heights (js@1585341, js@1578806). Rows: `.channel{height}` css@620674, `.spacer` css@620900, `.client` css@623635, `.client.compact` css@623877. Query clients are skipped (js@1577626).
### 2.2 Indentation (js@4152551, js@1577626)
depth: root channels 0; sub-channel = parent+1; clients get their channel's depth (not +1).
`indent(d) = min(d,4)·10px + max(d−4,0)·5px` → 0, 10, 20, 30, 40, 45, 50, …
Applied as `padding-left` on the row root, and as `margin-left` on `.tsv-item-highlight`, `-extra`, `background-no-image`, `background-image` (bannerIndent js@4111601, clientIndent js@4134667) so the pill moves with depth. Banner `<img>` gets the negative indent so the image stays anchored.
### 2.3 Wrapper / scroller
| prop | value | ref |
|---|---|---|
| .ts-server-tree-wrapper | display flex; height 100%; min-height 50%; position relative; contain layout size style paint | css@628081 |
| root background | `--tsv-servertree-bg-gradient` = linear-gradient(25deg, start 0%, end 60%): D #252F44→#2E374C; L #e1e3ed→#f5f5f5 | D/L@38084 |
| .scroller padding-left | 20−1−10 = **9px** | D/L@37278 |
| .scroller padding-right | 20−1−8−10 = **1px**; scrollbar-gutter stable (8px scrollbar) | D/L@37278 |
| h-compressed view | padding-left/right 10px | D/L@37612 |
| spacer-top | height 0 (theme) — main.css had 5px | D/L@106243, css@628790 |
| spacer-top.has-notifications | padding-top 26+8 = 34px, transition padding .2s ease | css@628598/628493 |
| spacer-bottom | 4+1 = 5px | css@628790 |
| safe-area | spacer-top margin-top = header height | css@628916 |
| `span` inside wrapper | overflow hidden; text-overflow ellipsis | css@628395 |
| overlay-info not inline | tree leafs pointer-events none | css@629084 |
### 2.4 Server header (TSServerHeader)
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| banner --top-spacing | 16+2 = 18px | same | D/L@38491 |
| --total-banner-height / min-height | 18+55+16+3 = **92px** | same | D/L@38491 |
| banner margin | 0 10px 8px 10px | same | D/L@38491 |
| banner padding-left/right | 20px | | css@43842 |
| banner background | --tsv-contrast-bg #0C1326 | #C9D9E5 | css@43842 |
| banner radius | 4px; overflow hidden; flex row; align center | | css@43842 |
| .tsv-view-background | abs inset 0, **margin-top 18px** (so visible card is 74px tall [INFERENCE: abs box with top+bottom → height shrinks]), radius 10px, overflow hidden, bg cover | | css@45107, D/L@38383, @39771 |
| background ::before | display none | | D/L@40163 |
| background ::after | background --tsv-view-header-bg = linear-gradient(to bottom, #0B1124, #222C41); radius 10px; border none; opacity .9 | gradient #C9D9E5 → #d3d5de | D/L@39921 |
| selected (.tsv-active) ::after | border 1px solid subtitle #697A97 | #445d77 | D/L@40332 |
| banner img | radius 10px, object-fit unset, object-position 0 0, no mask; hostBannerMode 1 → width 100%, max-height 300px; mode 2 → width 100% | | D/L@40406, js@1562899 |
| .tsv-view-image | margin-right 20px; margin-top (92−55)/2 = 18.5px; svg drop-shadow(0 0 2px rgba(29,31,32,.4)) | | css@44179/44268, D/L@38949 |
| server icon | ts-icon-stack .tsv-icon-xlarge = 55px | | render@1565648 |
| .tsv-view-content | color --tsv-font-color #FFFFFF / #1a1a1a; 16px; line-height 28px; weight 700; margin-top 18.5px; margin-bottom 4px; --tsv-icon-base subtitle; text truncated | | D/L@39499, @39259, css@44355 |
| .tsv-view-accessory | margin-left 20px; margin-top 18.5px; icon base subtitle | | css@44520, D/L@39259 |
| accessory-corner.clearance | abs bottom 8px right 20px | | css@44704 |
### 2.5 Channel row
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| row | height 44px; display flex; align stretch; white-space nowrap; user-select none; contain layout | | css@615085/616154 |
| node-content | flex, align center, height 100%, padding-left 20px, padding-right 10px | | css@615203 |
| channel icon | ts-icon-stack `.tsv-icon` = 22×22 [INFERENCE root class .tsv-icon.tsv-icon-stack per render@3165368]; margin-right 5px | | css@111475, css@624409 |
| name span | margin 2px 0 2px 5px; white-space pre; font-size 13px; colour inherits font colour #FFFFFF / #1a1a1a | | css@624508, @626810, @623431 |
| name over banner (.banner) | text-shadow 0 0 10px contrast-bg, 0 0 5px contrast-bg | | css@623527 |
| **pill highlight** (.tsv-item-highlight) geometry | top/bottom 4+2+1 = **7px**, left/right **10px** → pill 30px tall; radius 8+1 = **9px** | same | D/L@17369, @20654, @23240 |
| pill background (default) | --tsv-item-selection = shaded-bg **#222A3C** | rgb(235,235,235) | css@88626 |
| pill background when channel-background setting on | linear-gradient(to right, **#192031 50%, #1D263A 100%**) | #a9bee1 50% → #8391b3 100% | D/L@22727 |
| background-no-image (setting show_servertree_channel_background, no banner) | same gradient; top/bottom 7px; left/right 10px; radius 9px; width unset; z-index −1; always visible | same | D/L@29470, @27666, @23240, css@611093 |
| pill border | 1.5px solid --highlight-outline-color | | D/L@17369, css@618991 |
| outline colour normal/hover/active | subtitle **#697A97** | #445d77 | css@618991 |
| outline colour selected | --tsv-tint2 **#1588FA** | **#22658f** | D/L@19949 |
| box-shadows from main.css (selected/active 1px) | disabled: `box-shadow: unset !important` | | D/L@17003 |
| visibility | opacity 0; opacity 1 on :hover, .tsv-active, .tsv-selected, whisper, whisper-preview | | D/L@17369, @19800 |
| hover / active grow | top/bottom 7−3 = **4px**, left/right 10−3 = **7px** (pill 36px tall) | | D/L@26918 |
| transitions | left/right/top/bottom/border-radius(/opacity on hover) ease-out, duration 150ms; 32ms while :hover/.tsv-active | | D/L@22590, @26129, @27666, @28375 |
| has-password indicator | pill opacity 1, border transparent; ::after inset −1px (round to-zero of −1.5), border **2px** solid away **#FF8B04**, radius 9px, mask fade black 5px → transparent 25px (left-edge accent only) | rgb(247,84,19) | D/L@23412, @23764, @24181, @25890 |
| is-full indicator | same, colour error **#CC3838** | rgb(223,15,15) | D/L@25994 |
| has-password/is-full hover/active/selected | pill border becomes 1.5px outline colour (see above) | | D/L@25756 |
| whisper highlight | --highlight-outline-color = rgb(248,41,41) (whisper-talking gradient-stop, both themes) | | css@620565 |
| whisper preview (not hover, not selected) | outline = commander-talking outline **#FFB700** | **#fb842e** | css@620164 |
| whisper preview selected | outline = --tsv-tint #1588FA / #5DA1CB | | css@620412 |
| whisper (main.css) | background transparent, box-shadow ring (killed by !important unset), mask fade black 5px→transparent 120px | | css@619739 |
| focus | outline none | | css@614764 |
| banner bg (.background-image) | abs, top/bottom 7px, l/r 10px, radius 9px, shaded-bg, overflow hidden; img left −10px, max-width 500px (large scale 583, small 458), mask black until (100%−80px) → transparent; hover img margin-left +3px | | css@611093/613068, D/L@27263 |
| banner blur overlay | width 150px, gradient transparent → contrast-bg (at 20px/60%) → transparent; .centered full width; .right to-left | | css@611966–612848 |
| background-image-full | display none (theme) | | D/L@29416 |
| loading banner | shimmer gradient shaded→contrast→shaded→transparent 300px | | css@611564 |
| has-banner accessory backplate | ::before contrast-bg, height 16px, opacity .6, radius 4px | | css@614171 |
Channel icons (js@4112920): password → ChannelYellow + ChannelStatusRestricted; full → ChannelRed + ChannelStatusFull; default channel → ChannelDefault; otherwise ChannelGreen. Server-set channel icon goes into the mask (ChannelMask).
Accessory (right end of row):
| element | value | ref |
|---|---|---|
| tag (.ts-server-tree-item-tag) | only "M" (moderated, tooltip channel.flags.moderated); 13px; colour font; min 16×16; margin-left 5px; flex centre; text-shadow 0 0 10px/5px contrast-bg | js@4110217, css@610222 |
| expander (.ts-expander in node) | margin 0 5px 0 0 (base vertical margin 4px replaced by `margin-left:0;margin-right:5px` only → top/bottom 4px kept [INFERENCE: longhands override only l/r]); min-width 22px; padding-right 22px; min-height 16px | css@47615, css@610635 |
| chevron | ts-icon ItemExpand (22px), abs right 0; rotates 90° when `.collapsed`, transition transform .1s ease | js@3056905, css@47936, css@129305/129396 |
| chevron colour expanded, not hover | --tsv-font-color #FFFFFF / #1a1a1a | css@614669 |
| chevron hover | --tsv-icon-tint2 #1588FA / #22658f; cursor pointer | css@48141 |
| chevron collapsed | --tsv-icon-tint #1588FA / #5DA1CB | css@48238 |
| spacing span w/o children (tags) | .ts-tag-spacing margin-right 5px min-width 5px | css@610764 |
Collapsed-channel user preview (.channel__user-preview, css@609161–610002): --avatar-size 22px; overlap 22·0.33 = 7.26px; padding-left 3.63px; padding-right 5+3.63 = 8.63px; inline-flex. Each avatar slot width 22−7.26 = 14.74px, height 22px; circle 22×22, border 1px solid var(--tsv-bg) (D #2b3346, L #f5f5f5), radius 100%, shifted −3.63px; image cover via --avatar-bg. Overflow chip "+N" (N ≤ 99), font .75em of 13px, subtitle colour. Hidden for spacers and expanded channels (js@4121835, js@4122553).
### 2.6 Spacer rows
Name parse: `^\[([^\]]*)spacer[^\]]*\](.*)` (js@4112183). Prefix c → .centered, r → .right, l → .left, * → .repeat (text repeated to fill width, text-overflow clip). Body `---` dash-line, `...` dot-line, `-.-` dash-dot-line, `___` solid-line, `-..` dash-dot-dot-line, empty → none; these add `.line`. No-text spacers render only an empty span.
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| height | 44px | | §2.1 |
| node-content (no children) padding-right | 20px | | css@621054 |
| text | font-style normal; size 14px; colour --tsv-font-color #FFFFFF / #1a1a1a; **weight 600** (0,6,0 semibold rule beats the 0,4,0 450 rule) | | D/L@29677, @21990 |
| .line | height 1.35em, width 100%, bg subtitle colour masked by SVG pattern (mask-size contain) | | css@621417–622850 |
| hover/selected pill | radius pill 100px; top/bottom 7px; l/r 10px; background linear-gradient(−115deg, **#1E2538, #374263**) | #d3d5de → #C9D9E5 | D/L@20654, @21829, @22161 |
| spacer icon | none | | js@4121400 |
### 2.7 Client rows
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| height | default 40px; compact 28px; white-space normal | | §2.1 |
| node-content padding-left | 20+5 = **25px** (+ indent) | | D/L@31141 |
| text colour | --ts-third-font-color **#bbd6f3** (main.css :root) | **#445d77** | css@623635 |
| own client (.self) | colour --tsv-highlight-color = tint **#1588FA**; weight 500 | --tsv-icon-tint = **#5DA1CB** | css@624151 |
| contact (.contact) | --tsv-online-color #13F78D | rgb(1,192,11) | css@624241 |
| nick font size | default (not compact) **14px**; compact **15px** | | css@623994, @623790 |
| nick row | flex align baseline; name col min-width 0; text truncate | | css@407755 |
| avatar default | `.tsv-icon-large` → **33×33** (masked avatar, ClientDetailedMask) | | js@4142264, css@116335 |
| avatar compact | **22×22** status icon stack | | css@111475 |
| avatar margin-right | 5px | | css@624409 |
| client-info margins | top/bottom 2px, left 5px, right 10px | | css@624508, D/L@29832 |
| highlight pill | top/bottom **1px**, left/right 10px, radius pill, background transparent, border 1.5px; mask fade black 5px → transparent 160px | | D/L@22403, @21686 |
| highlight outline | subtitle #697A97 (hover/active); selected tint2 #1588FA | #445d77; #22658f | D/L@22292, @19949 |
| whisper / preview | as channel (§2.5) | | css@620164–620565 |
| focus | outline none | | css@411513 |
Group-name tags (.ts-server-tree-item-groups span): background --tsv-header-bg **#1C2539** / rgb(235,235,235); colour subtitle; 13px; weight 400; padding 0 5px; line-height 13+4 = 17px; radius 8−2 = 6px; no shrink. `.before` margin-right 4px (last child: 5px); `.after` margin-left 4px (last child: 5px). Refs D/L@29011–29333, css@409246–409719.
Away message (.ts-away-message-inner): colour away #FF8B04 / rgb(247,84,19); width 50px, max 100px, ellipsis; wrapped in " [" … "]" (css@409016–409201). Shown only when away and message is not empty.
Recording chip: inline-flex baseline, normal line-height; icon StatusRecording 16px; label colour error #CC3838 / rgb(223,15,15), no background, margin-left 2px; label hidden in h-compressed (css@409803–410066).
Status badges (.ts-server-tree-active-status / inactive):
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| height | 23px; padding 0 5px; flex align centre | | css@407337 |
| background | --ts-tree-badges-bg **#222A3B** | **#C9D9E5** | D/L@28936 |
| radius | 8−1 = 7px | | D/L@31043 |
| empty | display none | | css@407603 |
| --element-spacing | 5+2−1 = 6px | | css@406091 |
| separator between items | ::before 1px wide, colour subtitle, margin 0 6px | | css@406540 |
| icon size | 23−6 = **17×17** (also min) | | D/L@30041 |
| inactive z-index | 1 | | css@406019 |
| 2nd badge group | margin-left 5px | | css@407234 |
| `.expanded` variant | height 20−5 = 15px; icons 15px; spacing 3px; separator height 10px, vertically centred | | D/L@30434–30780 |
| icon colours | voice-granted online; voice-requested/needed away (requested flashes when window focused: voice-request-flashing 1s infinite alternate ease-out); commander #daa520 | | css@410230–410538 |
| group icon `.extra` (+N) | subtitle colour, 13px, height 14px, padding 0 3px 0 2px, margin-left 1px | | css@408563 |
Mute indicator (default mode only; render@3168789, css@615519): absolute; margin-left 1.15em; margin-top .7em; padding 3px; radius 50%; z-index 1; background D shaded-bg **#222A3C**, L contrast-bg **#C9D9E5** (L@115647). Icon order (js@2890909): local mute → InputMutedLocal; away → Away; speakers off / no output (not talking) → OutputMuted; mic off / no input → InputMuted; else none. `.ts-server-tree-icon.client.away` opacity .5 (legacy); detailed icon gets `.muted` when away → grayscale(100%) brightness(50%) (css@71501).
Talking / whisper / commander (css@125498–128744):
- silent icon tint/base = --tsv-client-silent--outline (= --tsv-icon-tint = #1588FA dark / #5DA1CB light); gradient silent start→stop: D rgb(3,90,246)→rgba(17,99,197); L rgb(54,82,105)→rgb(32,45,55).
- talking: tint = talking outline; gradient D rgb(3,90,246)→rgba(17,99,197); L rgb(34,178,231)→rgb(23,122,158); talking icons opacity 1, scale 1.
- whisper: outline error (#CC3838 / rgb(223,15,15)); silent #c42121→#b45c5c; talking rgb(255,130,130)→rgb(248,41,41).
- commander (when showCommanderAsLamp): D outline #FFB700, gradients #FFB700→#BD8700 (silent and talking); L outline #fb842e, silent #624b2f→#3a2c1e, talking #fb842e→#b05b24; voiceless #5e492e→#3a2e20.
- away / input-muted / output-muted (not talking): tint & base = font colour; talking glyph opacity 0.
- transitions: 0.15s (+0.15s delay on colour vars); while talking 5ms.
### 2.8 Drag & drop
- border-top drop: ::before 2px solid --ts-drag-border #16bcfb at top −1.4px (css@82852).
- border-bottom drop: ::after 2px solid #16bcfb at bottom −3.4px (css@83060).
- drag-into: ::after background rgba(60,34,204,.1), border 1px rgba(41,194,255,.5), radius 2px, inset 0 (css@83669).
- rows draggable; dragstart only from row root (js@4120154).
---
## 3. Video overlay (.server-tree-overlay)
Constants (js@1586484, js@1567799): DEFAULT_OVERLAY_HEIGHT_PCT .2; initial effectiveOverlayHeight 175; OVERLAY_HEADER_EXTRA_PADDING 32; minimize breakpoint 90; short-text breakpoint 260 (tree width); STREAMING_OTHERS_MAX 3; MIN_HERO_HEIGHT 135; MIN_OTHERS_PCT .66; OTHERS_PADDING_X 4; ratio 16/9; own-stream column width = clamp(0.33·treeWidth, 132, 260) (js@1583276).
Behaviour:
- Shown when there are visible outbound (if "show own streams" is on) or inbound streams, the grid is not in a popup, and the own channel's chat is not already open in the detail pane (js@1581878).
- Height = min(pct·treeHeight, treeHeight − header height − 32); drag updates the pct (js@1582041). Height below 90px → handle `.is-destructive`; on drag end below 90 → minimized (js@1582802). Minimized click → height = max(pct·treeHeight, 91) (js@1583934).
- Expand button (`.video-overlay-action`, icon Expand) shown when height ≥ 90; disabled if the channel chat is already open; opens the screenshare view.
- Streaming hero = chosen outbound session or first; "others" = remaining outbound (up to 3). Viewing hero = inbound[0]. Viewing others only if height ≥ 1.66·135 = 224.1px; count = floor((W − sw − 4)/(89.1·16/9 + 4)); others height = min(((W−sw−4)/n − 4)/(16/9), H/(1+1/0.66)); hero max-height = calc(100% − othersHeight) (js@1580836–1581489).
- Minimized texts: tree width < 260 → only counts; otherwise outbound = stream name if one, else "video.streams"; inbound = "video.streams" plural.
| element | value | ref |
|---|---|---|
| .server-tree-overlay | abs bottom 0, width 100% | css@629830 |
| resize handle | top 0, z 0 | css@629912 |
| .video-overlay | height 100% | css@631832 |
| streaming column | padding-left 10, right 5, v 4 (tsv-pad-* [INFERENCE class → token]); justify flex-end; width style | css@629954 |
| others strip | height (26+8)/2 = 17px; list abs bottom 0, height 34px, left 5px, translateY(100%), z1; tiles square (aspect 1), translateY(−50%), video object-fit cover; hover outline 2px tint2 offset 0 | css@630013–630776 |
| viewing column | flex-grow 1, min-width 0, justify flex-end; padding r10 l5 v4 | css@630852/630930 |
| .overlay-stream | margin 2px 5px; first child / streaming hero margin-left 0; last margin-right 0; box-sizing border-box; max-height 100% | css@630971–631860 |
| join-request on hero with others | left 2px, top 16px, no pointer events | css@631240 |
| .video-overlay-action | abs top 4px right 10px z 10 | css@632339 |
| .video-overlay-minimized | abs bottom 4px right 10px z 5; line-height 22px; cursor pointer; ::before contrast-bg (#0C1326 / #C9D9E5) opacity .9 radius 4px; text max 10ch | css@631923–632302 |
### 3.1 TSScreenshareStream tile (render@4070151, js@4070161–4076563)
Root `.video-stream.tsv-flex-center{show-outline,is-fullscreen}`; events: hover tracking, context menu, click → focus mode after delay, double-click → fullscreen.
| prop | DARK | LIGHT | ref |
|---|---|---|---|
| tile | aspect 16/9; background shaded-bg #222A3C / rgb(235,235,235); border 2px solid --tsv-bg (#2b3346 / #f5f5f5); radius 8px; box-sizing content-box; overflow hidden | | css@56083 |
| talking outline | default transparent 2px offset −2px; .show-outline: 2px solid tint2 (#1588FA / #22658f) offset 1px; transition .12s | | css@368542/368914 |
| --bar-inset / --bar-height | 10px / 24+2 = 26px | | css@368542 |
| bottom bar | abs left/right/bottom 10px; height 26px; bg color-mix(contrast-bg 70%, transparent); blur 2px; radius 8px; hidden: opacity 0, translateY(100%+10px); shown on hover when the mouse is not idle (opacity .12s, transform .08s); z1 | | css@370281, @366651 |
| bottom bar fullscreen | height 24+8+8 = 40px | | css@370719 |
| idle hover | cursor none | | css@366878 |
| video-border overlay | inset −2px, opacity 0 → 1 on hover | | css@370924, @366768 |
| always-visible name chip | abs bottom 10px, left 15px, height 26px, max-width calc(100% − 80px); chip padding 2px 5px, ::before contrast-bg .85 radius 4px; badge ::before contrast-bg .7 radius 8px blur 2px, inset 0 −5px; fades out (.08s, .04s delay) on hover | | css@367818–368303, @374246/374483 |
| viewers button | icon StatusRecording 16px, base subtitle; count 13px subtitle; hover (pointer) tint | | css@374699–375108, @366352 |
| volume group | max-width 80+22 = 102px; slider scales in on hover/active (appear-scale-x .09s), out by reverse animation | | css@371363–372099 |
| hero-actions (top) | padding-top 8px; fullscreen: top-fade bg + close button | | css@371221 |
| preview (not connected / paused / minimized) | static bg image; avatar 33.75% width; join icon 33.75% (scale .2 → .75 on hover); paused bg blur 2px opacity .7; status/error text chip at top −4px centred | | css@372431–374246 |
Control inventory, left → right (js@4074370–4076563):
1. [outbound] viewers button (StatusRecording + viewer count) → manage viewers
2. [inbound with audio] volume: mute toggle (Output / OutputMuted) + slider shown on hover
3. flex spacer
4. [outbound] pause/resume (Pause / Play; disabled when pauseDisabled)
5. [outbound] stream settings (StreamSettings)
6. [not joining] fullscreen toggle (enlargeImage; video.action.fullscreen.open/close)
7. [supportsPopout] popout (Expand, tooltip video.action.popout)
8. leave/stop: tooltip universal.abort (joining) / video.action.leave (inbound) / video.action.stop_stream (outbound)
Top (fullscreen only): close (WindowClose, large). Every button becomes `large` in fullscreen.
In-tile join request: `.screen-overlay.join-request` notification with avatar, name, accept (video.join.request.accept_full / universal.accept, viewer-limit tooltip), deny (settings.remote_apps.app.deny), block (video.join.request.block). Box: left 5px, top 4px, width calc(100% − 10px); fullscreen: centred, top 8px, min-width 33vw, height 24+8 = 32px (css@366936–367450).
Overlay usage: others tiles are `small-mode`, no overlay, no recording lamp; hero is `small-mode`; viewing others carry `.showRecordingLamp` (js@1595420–1596700).
### 3.2 Fullscreen (.screenshare-fullscreen-host)
- Portal target in the root window (render@3035185) and in the popup (render@3045191): abs inset 0, z 800, display none; `.is-active` → block, background --tsv-bg (#2b3346 / #f5f5f5) (css@469353/469443).
- Window `.is-fullscreen-presented`: `.tsv-activity` fixed inset 0; sidebar-pane hidden; root modal overlay full height (css@469532–469685).
- Fullscreen tile: aspect auto, no border or radius, 100%×100%; video object-fit contain; border overlay off (css@369157–369426).
- Grid fullscreen callbar `.screen-fullscreen-callbar`: fixed, bottom 24+32 = 56px, centred, opacity 0 / translateY(8px) → 1 / 0 when `.callbar-active` (.28s) (css@560020–560426). Host indicators shifted left by 24+10 (css@558658).
- screenshare-bar (data-v-0041b501): bg --ts-new-header-bg D #121A2C / L rgb(235,235,235); border 1px var(--ts-header-bg); radius 8px; gap 5px; height 44−4−2 = 38px; padding 0 10px; opacity 0 → 1 `.is-visible`. Large: gap 10, height 52, padding 0 20. Slim: icons 16, gap 2.5, height 28, padding 0 2. Separator: 2px border --strong-bg (#0B1124 / #C9D9E5), 50% height. Status: max 16em, opacity .85 (css@544415–546067).
### 3.3 Stream manager menu (render@3868692, css@375244–378596)
- max-height 100vh − 36px; max-width min(420px, 100vw − 20px); padding-right 10−8 = 2px.
- --control-width 22+8 = 30px; --stream-enlarged-width 30·1.77778·2.5 − 20 = **113.33px**.
- Row grid: columns min(113.33px, 25vw) | 30px+1ch | 1fr | 30px | 30px; rows 30px 30px. Areas: "video room_icon room actions actions" / "video viewers name actions actions"; inbound: "… show leave".
- Row hover: ::before --tsv-bg, radius 4px, extends 10px right.
- Room icon/room margin-top 8px; name/viewers margin-bottom 8px; viewers padding-right 4px, hover tint icon / tint2 text; actions gap 5px.
- Video cell padding 2px 10px; playback 16/9; hover pause overlay; pause button 22×22 pill, rgba(0,0,0,.4) (hover .55), icon colour font. Popup chip ::before --tsv-bg .8 radius 4.
- Strings: video.unknown_room, video.stream.show_stream(.disabled).
---
## 4. i18n (EN / RU)
| key | EN | RU |
|---|---|---|
| channel.flags.moderated | Moderated | Модерируемый |
| client.info.channel_commander.title | Channel Commander | Командир канала |
| client.info.priority_speaker.title | Priority Speaker | Приоритетный спикер |
| client.info.streaming | Streaming | Ведет трансляцию |
| client.info.recording | Recording | Запись |
| server.recording.title | Local Recording | Локальная запись |
| client.talk_power | Talk Power | Право говорить |
| client.talk_power.insufficient | Insufficient Talk Power | Недостаточный уровень права говорить |
| client.talk_power.request | Talk Power Request | Запрос права говорить |
| video.streams | No Stream \| 1 Stream \| {count} Streams | Нет трансляции \| 1 трансляция \| Трансляции: {count} |
| video.join.request.notification.small | {n} join request \| {n} join requests | {n} запрос на подключение \| запросы на подключение: {n} |
| video.stream.paused | Paused | Приостановлена |
| video.stream.minimized | Minimized | Свернута |
| video.action.leave | Leave | Выйти |
| video.action.stop_stream | Stop Stream | Остановить трансляцию |
| video.action.fullscreen.open | Switch to Fullscreen | Полноэкранный режим |
| video.action.fullscreen.close | Exit Fullscreen | Выйти из полноэкранного режима |
| video.action.manage_viewers | Manage Viewers | Управление зрителями |
| video.stream.hide_stream | Hide this stream | Скрыть эту трансляцию |
| video.stream.show_stream | Show this stream again | Показать эту трансляцию снова |
| video.unknown_room | Unknown Room | Неизвестная комната |
| universal.abort | Abort | Прервать |
(en.json/ru.json lines 130–2994 / 130–2896.)
---
## 5. UNRESOLVED
- `client.info.recording.short` and `video.action.popout` strings (the grep hit its result cap; look them up in en/ru.json).
- Server header `headerBarItems` (set by the activity, possibly native): which buttons and their order.
- Channel and client name font-weight: no tree rule sets it; inherited body weight not traced.
- `tsv-mar-l`, `tsv-pad-minimal`, `tsv-pad-l-small` utility values assumed to equal the matching tokens [INFERENCE]; not verified.
- `.ts-expander` vertical margin inside the tree (4px assumed kept from the base rule).
- Whether the banner's `contrast-bg` fill is visible in the 18px top spacing (the CSS says yes; not visually confirmed).
- SVG artwork for ChannelGreen/Yellow/Red/Default, status overlays, ItemExpand rest orientation, client talking glyphs, and the spacer mask SVGs (/62d145bb…svg etc.): file names known, contents not extracted.
- ResizeHandle `.overlay-resize-handle` bar visuals (render@3049567 exists; CSS not pulled). Minimized-bar condition for hiding the outbound/inbound halves when one side is empty.
- `--ts-header-bg` used by screenshare-bar border is not defined in themes.txt (may resolve to nothing).
- Light-theme `--tsv-highlight-color` = var(--tsv-icon-tint) → #5DA1CB; dark = tint #1588FA (resolved). The dark `--ts-third-font-color` comes only from main.css :root (#bbd6f3); the dark module was not seen overriding it.
- Context-menu contents for channel/client/server rows; stream context menu items.
@@ -0,0 +1,77 @@
# TeamsPeach selector → official TeamSpeak 6 source map (visual cutover, 2026-11-01)
Source: installed TeamSpeak 6.0.0.5163, `html/client_ui/main.css` (sha256 `bc700401d04954d0…`) and
`main.js` (sha256 `9d6bea2ee5333086…`), read-only. `css@N` = main.css character offset; `D@N` / `L@N` =
offset inside the dark (main.js @92422) / light (main.js @201685) theme module string; `js@N` = main.js
offset; `render@N` = Vue render function offset. Full extractions: `ts6spec-*.md` in this folder.
User captures of the official client (session-local, not copied) confirmed placement and colours:
1553×998 server view with channel stream, 857×924 / 827×913 stream + chat, 1553×925 screenshare dialog,
262×461 client menu. Implementation: `app/renderer/styles/app.css`, `index.html`, `js/sidebar-layout.js`,
`styles/titlebar.css`, `app/main/titlebar.js`.
| TeamsPeach | Official component | Values used | Source |
|---|---|---|---|
| `:root` tokens | theme `:root,::after,::before` blocks | all `--tsv-*` dark/light colours | D/L merged roots, main.css `:root` scale |
| `@font-face "Noto Sans"` | `@font-face` Noto Sans (official bundles 2.013) | upstream Noto Sans 2.015 VF from google/fonts, OFL (official bundle file not reused) | main.css font-face |
| `html, body` | `#app` | 15px, weight 450, antialiased | css@59619 |
| `.shell` | `.tsv-window` | flex, `--tsv-bg` | css@60153 |
| `#app-sidebar` | `SidebarArea .tsv-sidebar` | 270 default / 420 max / 62 rail; gradient #121A2C→#1D2537 | js@1273206, D@10938 |
| `.connection-item`, `.server-item` | `.tsv-activities .tsv-item` | 44px, 4px gap, pill inset 2/10 radius 8 deviant bg | D@14046–14691 |
| `.connections-title`, `.servers-title` | `TSSidebarTabHeader` | 13px subtitle, padding 0 10px | css@258407/258503 |
| `.self` | `.tsv-sidebar .tsv-footer` | 55px, 3px #171C2A separator inset 20px | D@11881/12066/13578 |
| `#server-panel` | `ContentView.tsv-activity-main.main-pane-layout` | 500px, min 220 | js@1273206 |
| `.pane-bar` | `.tsv-window-bar` | 44px, #121A2C, padding 0 10px | D@35522, css@67352 |
| `.toolbar-pill`, `.tool-btn` | `.tsv-central-toolbar-buttons` | 26px pill on `--tsv-bg`, pad 10/20, 1px strong-bg separators right 4px | css@378658, D@12904/13028/36427 |
| `.room-side` radius | `.tsv-window-bar::after` fillet | 10px inverse corner | D@12406 |
| `.room-side` background | `--tsv-servertree-bg-gradient` | 25deg #252F44→#2E374C | D@38084 |
| `.server-head`, `.server-card` | `TSServerHeader .tsv-view-banner` | 92px slot, card 74px at 18px, radius 10, gradient @ .9, 55px icon, name 16/28 bold | D@38491–40406, css@43842–46115 |
| `.tree` | `.ts-server-tree-scroller` | padding 9/1, stable 8px gutter | D@37278 |
| `.tree-row --indent` | tree indent | min(d,4)·10 + max(d−4,0)·5 | js@4152551 |
| `.channel-row` | `.ts-server-tree-item-leaf.channel` | 44px; pill inset 7/10 radius 9, 1.5px outline; hover 4/7; selected tint2; channel bg gradient #192031→#1D263A | D@17369–29470, css@618991 |
| `.channel-collapse` | `.ts-expander` | 22px chevron, rotates when collapsed, hover tint2 | css@47615–48238 |
| `.channel-preview` | `.channel__user-preview` | 22px avatars, 7.26px overlap | css@609161 |
| `.spacer-row` | spacer leaf | 44px, 14px semibold | D@29677 |
| `.member-row` | `.ts-server-tree-item-leaf.client` | 40px, padding-left 25, 33px avatar, nick 14px #bbd6f3, self tint | css@623635–624409, D@31141 |
| `.group-label` | `.ts-server-tree-item-groups span` | header-bg chip, 13px subtitle, radius 6, line 17 | D@29011–29333 |
| `.member-flags`, `.member-badges` | `.ts-server-tree-active-status` | 23px plate, radius 7, 17px icons, gap 6 | css@407337, D@28936–31043 |
| `.server-status-bar` | `.ts-server-status-bar` | padding 0 40px | D (ts-server-status-bar) |
| `.broadcast-controls button` | constructive tool buttons (`video.action.start_stream`) | attention green #25dd85 | js@4397696, css `.tsv-font-attention` |
| `.workspace` | `ContentView.tsv-activity-detail` | min 295, shaded body | js@1273206, css@90507 |
| `.session-head` | `.tsv-content-header-bar` | 71px, 38px icon, 24/28 bold | css@67443, D@35588 |
| `.content-separator` | `.ts-horizontal-separator` | 4px header-bg, margin 0 20px | css@253716, D@35446 |
| `.chat-tabs` | `SegmentedControl` | 26px pill on `--tsv-bg`, 13.33px, active tint | css@162933–163775 |
| `.stream-view` | `TSScreenshareStream .video-stream` | 2px `--tsv-bg` border, radius 8, shaded bg | css@56083 |
| `.stream-controls` | tile bottom bar | 26px, radius 8, contrast-bg 70%, hover reveal .12s | css@370281 |
| `.msg`, `.msg-body` | `.ts-chat-room-event-detailed` | inset 15, bubble 8px 12.5px radius 8, tail 12×14, 16/19 text | D@31422–32434, css@499619–500639 |
| `.msg-head` | `.ts-chat-message-header` | 22px, sender 16 bold, time 13 light uppercase | css@497113, D@31811/34262 |
| `.msg-system` | `.ts-chat-message-system-body.compact` | 23px, radius 10, #131824→transparent 80%, 13/15 subtitle, bold names #acacac | css@477464, D@33354 |
| `.composer` | `.ts-chat-input-container` | margin 10, `--tsv-bg`, 1px #697a97 → tint, radius 8 | css@206847, D@34684 |
| `.composer-toolbar`, `.composer-tool` | `.ts-chat-input-edit-toolbar` | shaded, 2px 10px, gap 2.5, buttons 24px radius 2 | css@213134–215372 |
| `.composer textarea` | `.ts-chat-input` | 14/18, padding 8px 10px, letter-spacing −.025rem | css@212377 |
| `.settings-nav`, `.nav-item` | `.tsv-settings-categories` | clamp(30ch,20vw,50ch), 44px rows, highlight #282F40 + 4px tint bar | css@259528, D@55972–56581 |
| `.card` | `.ts-widget-wrapper` | header-bg, radius 15, padding 8px 20px, 12px gaps | D@57054, css@35075 |
| `.card-title` | `.ts-widget-section-header .title` | 15/19 semibold, 16px below | D@57857 |
| `.theme-picker` | `TSThemePicker` | 2 columns gap 10/8, tiles 28px 10px radius 15, active 2px tint2 | css@682490–683559 |
| `input.toggle` | `.ts-toggle` | 40×20, 16px knob, online when checked | css@164820, D@61535–61841 |
| `input[type=checkbox]` | `.ts-checkbox` | 20px, #0c0d0f, green check | css@166354–167943 |
| `select` | `.multiselect` | `--tsv-bg`, radius 10, padding 2px 10px, 15px | D@64432 |
| `.client-menu`, `.device-menu` | `.ts-context-menu` | gradient #0B1124→#222C41 @ .8, blur 4, radius 8, 14px, rows 30px padding 4px 5px, min 170 max 260 | css@156402, D@55021–60284 |
| `.client-dialog`, `.broadcast-dialog` | `.tsv-modal-container` | contrast-bg, 1px tint2, radius 8, max 680 | css@40455, D@105718 |
| `.broadcast-source-tabs` | `.tabs .tab-item` | underline 2px, active shaded + bold + tint2 | css@85608–86743 |
| `.broadcast-sources`, `.broadcast-source` | `.thumbnail-grid` | minmax(244px,1fr), gap 8/10, centred title chip | css@181094–182973, css@180084 |
| `.toast` | `.ts-notification` | radius 15, gradient #0B1124→#222A3C @ .95, 13px | css@381477, D@76764–78595 |
| `::-webkit-scrollbar` | theme scrollbar | 8px, thumb #0B111D / #b3b3b3 radius 8 | D@6928–7133 |
| `app/main/titlebar.js` | `CentralWindowItem` in window bar | overlay 44px #121a2c / #ebebeb, symbols #fff / #494949 | css@67352, D@35522 |
| `html[data-display-size]` | scale modules Small 53225 / Large 68865 | token overrides; rail52/62/72, no browser zoom | js@320262 / js@318848 |
| `#sidebar-search` | sidebar search row | 36px row; 26px deviant-bg pill; 13px text | css@388684–389157, D@13740 |
| `.toolbar-away` | Away separate toolbar group | 22px glyph, 10px horizontal padding, outside capture/playback pill | js@2818764, css@69894 |
| `.detail-modes` | Info/Chat/Files segmented mode switch | persistent header, 26px pill, actual inline views | css@162933–163775; user capture 78da9978270be0d3 |
| `.client-menu-page` | ToolMenu nested pages | one popup replaces contents, Back restores root/focus; groups, volume, connection info | ts6spec-controls §1.1/§1.4 |
| `#settings-nav` narrow placement | sidebar resources settings | same node moves into sidebar below900, returns above | js@1371244 |
| `.stream-grid`, `.server-tree-overlay` | screen grid / tree overlay | relative grid with computed absolute children, bottom overlay | css@556730 / css@629830 |
These rows record source-to-implementation correspondence, not a completed pixel comparison. New
administration/identity/snapshot/whisper/recording/transfer controls reuse the extracted control tokens;
their behavior evidence and native prerequisites are recorded separately by QA.
Deviations and missing official surfaces are listed in DESIGN.md ("Documented deviations").
+118
View File
@@ -0,0 +1,118 @@
# Picture-first player refinement — 2026-10-24
## Artifact and scope
Unpublished Windows x64 directory build, unchanged version **0.1.4**:
`C:/Users/Admin/tmp/teamspeach-player-refine-20261024/build/win-unpacked/TeamsPeach.exe`
SHA-256: `b69f501716ed80ac2251aac475eebbcb3daaf36ebbb3e3d7e5f2c6e2463ada64`
Evidence root: `C:/Users/Admin/tmp/teamspeach-player-refine-20261024/`.
`build-provenance.json` records byte-for-byte agreement for all **50 application files** in the ASAR and
matching SHA-256 hashes for the packaged core, staged core and existing optimized release core. No Rust
source/build change, version bump or publication. The previous UI9 build path was not written or launched.
This report supersedes the old geometry acceptance in `ui10-20261024.md` item 8, not its unrelated feature
status. Whisper and macOS application-audio blockers remain unchanged; SFU remains unsupported.
## Root cause and cutover
The old 42% stage allocation, permanent 34px heading and approximately 70px footer consumed the picture's
height. A 220px minimum grid row did not ensure a width-filling 16:9 image. Prior checks accepted video
around 149–154px high because they checked overflow rather than reference proportions.
The player now uses an absolute overlay inside the picture: a small idle name, controls revealed on hover
or keyboard focus, and a real EN/RU details disclosure for statistics. The media uses `object-fit: contain`;
no crop or stretch. New profiles/reset use a 55% stage; existing saved ratios remain valid. The lower
collapse rail stays compact and the divider resizes the actual picture. Narrow multi-view now uses two
columns at the exercised 614px content width; narrower content falls back to aspect-aware stacked rows.
The broadcaster retains its separate local-preview toolbar; no new broadcaster runtime claim is made.
## Bounded visual review
One initial eight-case batch (`dev-stage/`), one correction batch in the packaged app (`final-stage/`).
Cases: one/two viewers at 1280×900 EN dark, 1100×900 RU dark, 1100×900 EN light, and 880×560 RU light.
The sidebar is explicitly resized through its own keyboard control to 260px, producing approximately
834px of workspace at the 1100px reference window. Real application styles are loaded unchanged.
Initial narrow two-view rendering still had only approximately 284px-wide contained pictures in 604px
rows. The single correction changed the responsive column breakpoint and removed a collapse-button
hitbox overflow that caused an unnecessary vertical scrollbar. No unrelated visual polish followed.
Final measured geometry (CSS pixels; dimensions are not decoder resolution):
| Case | Video element | Actual contained picture | Chat height |
|---|---:|---:|---:|
| One, 1280×900 | 1014×476 | 846×476 | 334.6 |
| One, 1100×900 | 834×476 | 834×469 | 334.6 |
| One, 880×560 | 614×289 | 514×289 | 181.6 |
| Two, 1280×900, each | 504×476 | 504×283.5 | 334.6 |
| Two, 1100×900, each | 414×476 | 414×232.9 | 334.6 |
| Two, 880×560, each | 304×289 | 304×171 | 181.6 |
Contained images preserve their source ratio, so some letterboxing remains, especially in two-view tall
stages. Narrow two-view images fill 100% of their tile width and 59.2% of the element area; this replaces
the former 46.8% width occupancy. The divider allows the user to choose the video/chat balance.
Single desktop stage scrollHeight and clientHeight both equal 495: no unnecessary scrollbar.
Useful captures under `final-stage/`:
- `1-player-ru-dark-1100x900-idle.png` — reference-width minimal idle presentation.
- `1-player-en-dark-1280x900-hover.png` — over-picture controls.
- `1-player-en-light-1100x900-idle.png` — light shell, unchanged media presentation.
- `2-player-ru-light-880x560-hover.png` — corrected compact two-view layout.
- `two-player-keyboard-focus.png`, `two-player-details.png` — real focus and disclosure states.
- `two-player-narrow-scrolled-controls.png` — second-player hit testing.
- `one-player-resized-1100x900.png` — larger video with usable chat and an available-share offer.
## Exercised checks
- Targeted Node: **42 passed**, zero failed/skipped (preferences, session/directory, splitters, i18n).
- Full Node: **187 total, 186 passed, one opt-in live-update test skipped, zero failures**.
Combined transcript: `artifact://1108`.
- Isolated `electron-builder --win --x64 --dir --publish never`: passed, `artifact://1110`.
- Packaged offscreen harness: **120/120 assertions passed**, zero renderer errors,
`final-stage/result.json`. Initial `dev-stage/result.json` remains preserved with its original failed
drag assertion: CDP movement initially omitted the held-button mask. The fixture, not production,
was corrected to send `buttons: 1` during the drag; final event evidence records down/move/up/capture loss.
- Final pointer drag: element height **399.3→494.3**, actual contained image **710×399→834×469**,
chat **334.6→239.6**. Keyboard shrinking/reset, collapse/restore and applying saved collapsed preferences
passed without resubscribing. Preference unit tests also preserve a stored 0.42 ratio across reload.
- Idle controls hidden, hover/focus reveal, Tab traversal, slider keyboard/input dispatch, mute and stop
pointer hit testing passed. Long titles ellipsize; stats are closed by default, actual summary opens them,
Escape closes them. PiP was deliberately unavailable and correctly named/disabled. Status overlays are
pointer-transparent. All player controls have accessible names.
- Both viewers retained their exact video elements and MediaStreams across locale/theme/window changes,
with advancing decoded frames and inbound silent-audio packets. Exactly two joins; stopping the second
left the first live with the original element/media. Final surviving sample: VP8 **480×270**, 30 fps,
308 decoded frames, 523 inbound Opus packets. Canvas source is 1280×720, but the negotiated/decoded
resolution was 480×270; this is a layout/lifecycle test, not a quality or performance benchmark.
- Detector ran once: three warnings, the existing audio-meter width transition (reported for CSS and
HTML) and the existing dynamically populated hidden banner image. No player-specific warning; no
unrelated meter/banner redesign. The initial context launcher failed due to shell path quoting;
existing PRODUCT/DESIGN context was read directly, and the separately quoted detector invocation worked.
Reproduce from the repository with the reusable focused harness:
```text
node scripts/smoke-stream-stage-offscreen.mjs --exe C:/Users/Admin/tmp/teamspeach-player-refine-20261024/build/win-unpacked/TeamsPeach.exe --out C:/Users/Admin/tmp/teamspeach-player-refine-20261024/final-stage
```
## Safety and evidence limits
All launches used `scripts/lib/electron-app.mjs`, with its packaged-main byte-equality safeguard and a
separate disposable profile. Runtime verified `visible:false`, `focusable:false`, `offscreen:true`,
`audioMuted:true`. Hover, click, drag and Tab were CDP events inside that hidden webContents, never global
input or native window focus. The generated oscillator is zero-gain, connects only to a MediaStream
sink, and webContents is additionally muted. Zero `getUserMedia`/`getDisplayMedia` and zero native
fullscreen/PiP requests. No physical display capture, clipboard, account/profile modification, active
user stream, server connection or audible playback was used.
Generated local WebRTC is not new TeamSpeak-server interoperability evidence. Silent audio packet
advancement does not establish audible fidelity. The fixture disables native PiP explicitly; it does not
claim the platform lacks PiP. Native fullscreen/PiP behavior, topmost windows, OS input and physical touch
were not tested. The earlier native Windows proof remains historical in the feature matrix and was not
repeated. Runtime preference reapplication plus Node disk persistence was tested, not a restarted
receiver session. Extreme pane widths below the exercised 614px content width are implementation-only
coverage here, not a new screenshot claim.
@@ -0,0 +1,104 @@
# Stream pipeline and lifecycle audit — 2026-10-24
## Outcome
The user's **20 fps** observation remains valid and unexplained for that live TS6 sender/session. No application-imposed 20 fps clamp was found or reproduced. The corrected, **visible** generated AV1 loopback decoded approximately **59 fps before and 56 fps after** at actual **2568×1402**, with no interval RTP decode drops or HTML video playback drops in those two samples. This is **not an FPS improvement claim**, a guaranteed 1440p60 capability, or official TS6 interoperability evidence. The generated sender itself did not consistently capture/send 60 fps.
Four concrete lifecycle/correctness defects were fixed without changing codec choice, production bitrate, hardware-decode preferences, background throttling, rendering policy, or the existing stream/fullscreen UX. They do not establish the cause of the user's 20 fps.
## Changes and severity
| Severity | File / section | Proven defect and change |
| --- | --- | --- |
| Medium | `app/renderer/js/stream/directory.js`, `_remove` | A duplicate/unknown **explicit stream ID** stop fell through to client-wide deletion and removed sibling shares. An explicit ID is now always scoped to that ID; client-wide removal requires no ID. Reproduced by a failing focused regression. |
| Low | `app/renderer/js/stream/session.js`, `_applyOffer`, `_flushRemoteCandidates`, `_addCandidate` | Cancellation while awaiting buffered ICE still attempted the next candidate and could continue answer creation. Cancellation during rollback could apply the replacement offer. Continuations now stop after closure; completed/rejected candidate work cannot update terminal-session counters. Reproduced using gated promises; all existing signaling behavior tests still pass. |
| Low | `app/renderer/js/stream/session.js`, `_finish` | An ended session retained its already-closed peer connection while the terminal UI stayed open. Release the peer field, detach callbacks, and close the captured local peer. Runtime WeakRef count at the terminal screen changed **one closed receiver wrapper → zero**. This was bounded retention, not an accumulating live-peer leak. |
| Low | `app/renderer/js/watch.js`, `startWatching` and first-frame overlay clearing | An empty dynamic text callback could retain a stopped session's lexical context, especially when stopping before the first stats poll. Replacing just the empty stats callback with the identical literal changed retained sessions **1 → 0** under the same test-only GC probe. Empty stats/overlay labels now use literal strings, not translation callbacks. Final runtime regression ends with **zero** retained sessions. No visible text or translation behavior changes. |
Focused coverage is in `test/stream-directory.test.mjs` and `test/stream-session.test.mjs`. Reproducible generated-media/runtime coverage is in `scripts/audit-stream-pipeline.mjs`. No unrelated source, version, release, or publication changes were made by this workstream.
## Corrected visible measurement
Raw artifacts are under `C:/Users/Admin/tmp/teamspeach-fps-diagnosis/`:
- `visible-before/result.json`: original local packaged build; UTC **10:41:51.836–10:42:23.114**.
- `visible-after/result.json`: source with stream fixes; UTC **10:42:37.864–10:43:09.421**.
- `visible-before/visible-2568.png` and `visible-after/visible-2568.png`: generated-only screenshots of the visible player.
- `stream-regressions.json`: unit reproduction/fix results.
- `label-probe-before/result.json`: bounded empty-label counterfactual.
- `measurement-scope.json`: explicit interpretation/counter corrections for every experiment.
- `stream-ui-after/result.json` and its generated-only screenshots: existing stream/fullscreen UI smoke.
The unchanged baseline package is `C:/Users/Admin/tmp/teamspeach-stream-qa-20261024/build/win-unpacked/TeamsPeach.exe`; its prior verified `app.asar` SHA256 is `3ffb5d2baedca40dc5f995a0cf81fb72cee6b39e759f1511a2366d6e4938757c`. Source/package identity before editing is documented in the adjacent `source-evidence.txt`. Both audit runtimes report Electron **44.9.3**, Chromium **152.0.7977.167**. The source run can include the separate memory workstream's changes: global heap/RSS differences are not attributed solely to stream changes.
The test sends a moving canvas and generated oscillator audio through real local RTCPeerConnections and the production `watch.js` session/player. Test sender parameters explicitly retain **6,000,000 bps maximum**, **60 fps maximum**, and `maintain-resolution`. Only the 2568×1402 test sender selects AV1 to exercise the reported codec; the other negotiated VP8. These settings are confined to the test sender. ICE uses local host candidates, no external STUN. The snapshot is synthetic and delivered through the normal main-to-renderer `core:event` path; the native core remains disconnected.
The benchmark windows were coordinated with the other worker to avoid its heavy runtime workloads. User/system background workload was not controlled, so differences between short samples are not treated as regressions or improvements.
### Actual 2568×1402 AV1, roughly five-second intervals
| Measurement | Original package | Source after fixes |
| --- | ---: | ---: |
| Interval seconds | 5.0126 | 5.0107 |
| Actual capture FPS (`media-source.frames` delta) | 58.65 | 56.48 |
| Encoded / sent FPS | 58.65 / 58.65 | 56.48 / 56.48 |
| Complete received / decoded FPS | 58.65 / 58.65 | 56.48 / 56.28 |
| rVFC callback / compositor-submitted FPS | 58.45 / 58.45 | 56.48 / 56.48 |
| RTP `framesDropped` delta | 0 | 0 |
| HTML video total / dropped frames delta | 294 / 0 | 282 / 0 |
| Lost packets delta | 0 | 0 |
| Mean decode ms per decoded frame | 0.481 | 0.539 |
| Mean encode ms per encoded frame | 4.391 | 5.198 |
| Received video kbit/s | 51.62 | 50.84 |
| Sender `qualityLimitationReason` at sample end | `none` | `none` |
These are **interval deltas**, not cumulative counters mislabeled as rates. Slight differences of one frame between stages are normal for sequential snapshot boundaries. Paint callbacks (~62/s) are not capture FPS. `getSettings().frameRate=60` is a setting, not the measured rate. The simple generated rectangle compresses to roughly 51 kbit/s; the 6 Mbit/s maximum was not raised, and this is not a full-complexity 6 Mbit/s screen-share stress test.
The 1280×720 VP8 control also retained its actual resolution: decoded **55.83 → 57.70 fps**, HTML playback drops **0 → 0**. Again, this is not a speedup conclusion.
The actual player and ancestors were visible, `sessionHidden=false`, document visible/focused, nonzero video rectangle fully inside the viewport (approximately 879×375 CSS pixels). This tests decoded 2568×1402 scaled into the inline production player, not native-resolution display scanout. Candidate pairs were host/UDP → host with reported RTT zero at the sample boundary. Addresses, private SDP, tokens, and real stream names were not exported. Generated SDP summaries contain only codec/framerate/bandwidth policy lines.
`decoderImplementation`, `encoderImplementation`, and `powerEfficientDecoder` were absent from these isolated raw RTC reports; they are **unknown**, not false/software. GPU feature policy reported video decoding enabled. The earlier live-client log naming `ExternalDecoder (D3D11VideoDecoder)` is separate timestamped evidence and must not be substituted for the isolated runtime's missing fields.
### Presentation measurement correction
The earlier `pipeline-before/after` and `fullres-before/after` experiments directly assigned `S.snap`, which left the **parent `#session-view` hidden**. Checking only `#stream-view.hidden` was insufficient. Those runs are retained as raw **decode-only** experiments and are not evidence of visible presentation. Their high `getVideoPlaybackQuality().droppedVideoFrames` counts were not RTP decode drops.
The corrected runs use the ordinary snapshot/render lifecycle, assert full ancestor visibility and a nonzero in-viewport rectangle, and record three distinct signals:
1. `inbound-rtp.framesDropped`: receive/decode-path drops.
2. `getVideoPlaybackQuality().droppedVideoFrames`: media playback drops.
3. `requestVideoFrameCallback` invocation count and `metadata.presentedFrames`: callbacks / frames submitted to the compositor, **not proof of every physical display scanout**.
The corrected visible sample has zero playback drops as well as zero decode drops. The hidden-parent/corrected-visible contrast explains the harness counter mismatch; it is not evidence that the user's real player was hidden. No production visibility policy was changed.
## Lifecycle evidence and behavior checks
- Before the fixes, three focused regressions failed: sibling deletion on duplicate stop, retained closed peer field, continued candidate processing after stop. After the fixes, **21/21** stream tests passed, including rollback cancellation.
- Each runtime exercised **12 stop/end/disconnect cycles**, **six switches while live**, and renegotiation in both codec/resolution cases. Generated audio packet counts and decoded frames advanced across renegotiation.
- On terminal transitions, both receive tracks were `ended`, the video `srcObject` was cleared, and no nonclosed receiver connection survived. Original terminal screens retained one closed JS receiver wrapper; fixed screens retained zero. The small session object can intentionally remain while an ended explanation is shown.
- After final Close, corrected source runtime retained **zero sessions, zero receiver wrappers, zero nonclosed receivers**. The original package retained one stopped session. The counterfactual changed only the empty-label binding and also produced zero, isolating that retention from unrelated memory changes.
- WeakRefs and explicit `HeapProfiler.collectGarbage` checkpoints are **test-only** and identical between compared lifecycle checks. They measure reachability of instrumented wrappers, not exact native/GPU memory reclaimed. No forced GC shipped in the application. No unbounded stream-object growth was observed in these bounded cycles; this is not a proof against every possible long-duration leak.
- Transient DOM growth during end toasts disappeared after their normal expiry. Final DOM nodes were **482 in both visible runs**; initial 487 includes transient startup UI. Whole-process heap/RSS trends are not a stream-only metric.
- The existing stream-view smoke passed all **21 recorded steps** with zero page errors and zero capture requests: selection does not join, multiple shares, disconnected-core join error, native fullscreen and Escape, keyboard toggle, generated-media continuity, promise rejection display, end/stop/decline/disconnect cleanup, and language/theme/layout fixtures. It ran after session/directory fixes; the final visible runtime additionally validates the later empty-label change and its ownership regression.
## No-defect findings and residual unknowns
- The receiver passes SDP through `setRemoteDescription` / `createAnswer` without rewriting frame-rate limits or forcing codecs. No 20 fps clamp was found. The 1500 ms stats polling interval refreshes the label, not frame delivery.
- The displayed FPS is rounded receiver `inbound-rtp.framesPerSecond` (decoded frames), not the sender's configured 60 fps or the monitor refresh rate. Source definitions: [W3C inbound FPS](https://w3c.github.io/webrtc-stats/#dom-rtcinboundrtpstreamstats-framespersecond), [rVFC API](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback).
- Existing stats continuations reject stale sessions after switching. One media element/MediaStream is used; fullscreen is presentation-only and the existing smoke preserved stream identity and advancing audio/video.
- `backgroundThrottling=true` remained unchanged. Corrected samples were visible/focused; they neither demonstrate nor rule out a hidden/occluded-window issue in another runtime condition. No speculative throttling or GPU switch was applied.
- The original live client exposed no remote-debug listener or accessible raw stats transport during the read-only diagnosis. Its sender capture/encode rate, interval loss/decode timing, actual selected ICE route, and visible presentation deltas remain missing. A LAN/P2P label and 60 fps setting do not supply these measurements.
- Earlier global GPU 96% utilization and a D3D11 decoder log are not bottleneck proof. No conclusion about native TS6 encoder adaptation, static-window behavior, GPU contention, or real sender codec constraints follows from the generated fixture.
## Reproduction and safety
From the repository:
```text
node --test test/stream-directory.test.mjs test/stream-session.test.mjs
node scripts/audit-stream-pipeline.mjs --out C:/Users/Admin/tmp/stream-audit --maintain-resolution --expect-fixed
node scripts/smoke-stream-view.mjs --out C:/Users/Admin/tmp/stream-ui-audit
```
For an unchanged packaged baseline, pass `--exe <existing TeamsPeach.exe>` and omit `--expect-fixed`. `--lifecycle-only` skips throughput samples. The harness's temporary profile is deleted after its disposable application closes. `getUserMedia` and `getDisplayMedia` are denied/counted before injecting fixture state; final counts were **zero**. Generated tone is muted at playback. No real microphone/private stream capture, normal-profile restart, server operation, preference migration, build, install, tag, version bump, or publication was performed.
@@ -0,0 +1,82 @@
# Second independent lifecycle audit — 2026-10-24
## Scope and conclusion
This pass adversarially tested interleavings introduced or left uncovered by the [first stream audit](stream-pipeline-audit-20261024.md) and [non-stream memory audit](nonstream-memory-audit-20261024.md), rather than repeating their throughput benchmarks. Current source was authoritative. Existing uncommitted work was preserved.
Five renderer defects were reproduced in the latest isolated packaged baseline before their corresponding source corrections. The baseline was `C:/Users/Admin/tmp/teamspeach-memory-audit-20261024/build/win-unpacked/TeamsPeach.exe`, with previously recorded `resources/app.asar` SHA-256 `96ea250138ae0a83e09f333550760060bf3bdf953a76cae78eccae4750fac59c`.
The user's live **20 fps** observation remains unexplained. No FPS cap, decoder policy, codec, bitrate, background throttling or rendering-policy change was made. The previous approximately 56–59 fps visible AV1 loopback was a simple approximately 51 kbit/s canvas at actual 2568×1402, not complex 6 Mbit/s/live TS6 proof. This pass's visible 320×180 generated WebRTC fixture validates callback ownership only; it is not a performance measurement or live-server interoperability result.
## Proven renderer corrections
| Severity | Defect and consumer-visible reproduction | Correction |
|---|---|---|
| Medium | **Pending image A→B→A after cache pruning:** resolve the latest A, then the original A. The baseline appends a second, broken avatar and channel icon, replaces the channel background with a revoked URL, and breaks the loaded host banner. | `media.js` checks that the exact pending promise still owns its cache entry before allocating an object URL. Obsolete successes resolve `null`; no stale URL reaches any widget. Already-resolved obsolete URLs are still revoked. Current requests survive unrelated snapshots. No per-widget generation framework was added. |
| Medium | **Reused numeric client ID, different UID, same avatar hash:** the baseline requests no replacement avatar and retains the old image in the reused row. | `tree.js` includes UID in the avatar signature, matching the identity already used by the cache. |
| Medium | **Late discovery failure overwrites newer truth:** an older `stream_list` negative reply removes an already-announced `new-live` stream, replacing its visible Watch offer with an error. Old replies also contaminate a replacement UID, moved channel, or stopped/restarted streaming lifetime. | `watch.js` associates each requested target with its pending probe object. Only still-current targets accept completion/error outcomes. Stream announcements and client identity/channel/streaming-state transitions invalidate superseded probes; genuine new lifetimes schedule fresh discovery. UID replacement removes old-owner stream entries; a channel move alone does not end an otherwise valid stream. Disconnect generation protection remains. |
| Low | **Late sink rejection after terminal end:** the baseline displays a stale `NotFoundError` output-device toast and writes `sinkError` after the player has ended. | Successful/failed sink completions require the same nonclosed session. |
| Low | **Late fullscreen rejection after stream switch:** the baseline shows an old fullscreen failure toast over the replacement live player. | Fullscreen request errors are displayed only for the same nonclosed requesting session. Current-request failures remain visible. |
The image ABA failure is a concrete regression edge of the first pass's cache-pruning fix: scalar widget signatures alone did not distinguish two lifetimes of the same cache key. Rejecting the invalidated cache promise centrally fixes avatars, channel icons/banners and the host banner without changing `app.js`.
## Deterministic runtime evidence
Raw artifacts are under `C:/Users/Admin/tmp/teamspeach-audit2-20261024/stream/`.
- `before/result.json`, `before/image-aba.png`: initial baseline reproduction of image ABA, client-ID reuse and stale discovery; hidden-settings chat control passes.
- `before-expanded/result.json`: baseline old discovery errors affect unchanged, UID-replaced, channel-moved and stop/restart cases; disconnect already rejects the stale reply. Detached member rows do not corrupt the replacement member, while reused channel/host image elements show the ABA defect.
- `after-complete/result.json`: corrected source preserves one loaded avatar/icon and both current banners; UID reuse fetches a replacement avatar; the announced stream remains watchable. The unchanged client's real failure still appears. UID/channel/stop-restart/disconnect replacements ignore the old error, issue a current request and accept its successful completion as `unavailable`, rather than remaining indefinitely `checking`.
- `after-expanded/result.json` preserves an intentionally failing intermediate regression: merely ignoring a stop/restart's old reply left `checking` without a new request. The final correction schedules discovery for that new streaming lifetime; `after-complete` passes it.
- `callbacks-before-visible/result.json` and `callbacks-after/result.json`: matched packaged baseline/source callback fixture. Both have an actually visible 320×180 player and real local generated WebRTC. Delayed old-session stats, play rejection, sink rejection and old-track `ended` dispatch preserve the replacement stream, one current track, `live` state and empty current `sinkError`. The separately injected sink rejection after terminal end and fullscreen rejection after switching produce visible stale errors only before correction.
The callback fixture uses actual RTCPeerConnections and a generated canvas, host-only ICE and no public STUN. Stats are real reports whose completion is deliberately delayed. Sink/fullscreen errors and track-ended timing are injected; they are not claims that those exact failures occurred on a live TS6 server. Native fullscreen success/Escape remains covered by the existing packaged UI smoke, not the injected rejection fixture.
## Regression coverage and unchanged areas
Reusable workloads are `scripts/audit-stream-interleavings.mjs` and `scripts/audit-stream-callbacks.mjs`; both accept `--exe` and `--out`, with `--verify` asserting corrected observable outcomes. They use fresh disposable profiles and route synthetic snapshots through the ordinary main-to-renderer event path. Discovery requests are gated at the test-only IPC boundary; no actual server is contacted.
`test/media.test.mjs` additionally checks obsolete pending completions, A→B→A ownership, `clearMedia`/server-reset reuse, preservation of a current pending request through an unrelated snapshot, and a stale failure not replacing a newer cache entry. `test/stream-session.test.mjs` adds cancellation with two queued reconnect offers: no extra peer, answer or signaling follows leave.
The hidden-settings control buffers 505 messages, returns to chat, then receives another message: exactly 500 rows remain, first `hidden-6`, last `visible-505`, with the first author's header intact. No chat/settings source change was justified. Session negotiation and directory source did not need another correction; existing scoped stop/update and cancellation rules remain. The extended interleaving script also exercises six language-switch/reconnect cycles with test-only WeakRefs and GC after pending fixture downloads finish; this is a bounded snapshot-retention check, not an exact native-memory/RSS claim.
## Safety and limits
All runs use disposable application profiles; capture APIs are denied/counted. The recorded source/baseline runs have zero capture requests and zero page errors. No normal client/profile restart, physical microphone, private stream, real server join, server configuration change, release publication, tag or version bump was performed. Generated media is muted. Raw evidence is retained; the two scripts are intentionally reusable audit tools, not product instrumentation.
Arbitrarily reordered unsolicited server notifications cannot be distinguished without protocol ordering/identity metadata. This correction scopes renderer-owned request completions and observed snapshot transitions; it does not invent connection IDs in TS6 notifications. No background/occlusion performance claim is made. Live sender capture/encoding, complex-content bitrate behavior, selected real ICE route and the reported 20 fps remain outside this isolated test's evidence.
## Audio/core integration
The independent worker's complete findings and paired evidence are in [audio-second-audit-20261024.md](audio-second-audit-20261024.md). Five bounded failure-ownership corrections were integrated: failed diagnostic-log destinations no longer crash main/stall stderr; exit rejects new core requests while existing replies/events drain until close; capture-processor failure ends the microphone; rejected context closure retains ownership until explicit recovery; explicit playback recovery restores usable playback, settles terminal diagnostic waiters and preserves applied gain/output.
The final coordinator-run packaged audio smoke passed at UTC **11:41:39.735–11:41:41.706** (`audio/packaged/result.json`). It used Chromium fake microphone capture, generated silence and injected processor/close/diagnostic failure timing. Its native core also encountered a genuine `EISDIR` log-write failure in the disposable profile: main survived, `profile_get` succeeded, and shutdown left `running=false`, `pending=0`. Capture failure ended the track; the suspended capture processor's fallback closed its context after 1003.5 ms without replacing/rerouting the healthy playback context. Playback recovery restored gain approximately 0.17 and the default sink. Nondefault selection is separately behavior-tested by the audio worker, not claimed as physical-device evidence from this runtime.
## Final verification and isolated artifact
After both source slices were frozen, the coordinator ran `npm test` once: **119 tests, 118 passed, one explicitly opt-in live-update test skipped, zero failures** (3537.3362 ms). The suite includes the new media ownership and queued-renegotiation regressions plus the audio/core/voice-consumer regressions.
Then built, without publication:
```text
node node_modules/electron-builder/cli.js --win --x64 --dir --publish never --config.directories.output=C:/Users/Admin/tmp/teamspeach-audit2-20261024/build
```
Build tooling: Node 24.13.0, npm 11.6.2, electron-builder 26.15.3; runtime Electron 44.9.3 / Chromium 152.0.7977.167. Local package version remains 0.1.4. The original build was not overwritten, and its baseline ASAR hash was independently rechecked unchanged after this build.
All four affected packaged smokes explicitly used the new `--exe` and disposable profiles:
1. `audit-stream-interleavings.mjs --verify` → `stream/packaged-interleavings/result.json`: every image/discovery outcome passed; duplicate stop plus late update leaves the sibling stream visible; **actual Settings navigation** hides chat for 505 messages and restores the correct 500-message DOM on return; six alternating language/reconnect cycles retain zero old snapshots after test-only GC. Zero capture requests/page errors.
2. `audit-stream-callbacks.mjs --verify` → `stream/packaged-callbacks/result.json`: visible real local WebRTC remains intact across delayed old callbacks; neither corrected stale-error toast appears. Zero capture requests/page errors.
3. `audit-audio-failures.mjs --core --verify` → `audio/packaged/result.json`: audio/core failure-path assertions passed as bounded above; zero page errors.
4. `smoke-stream-view.mjs` → `stream/packaged-ui/result.json`: all 21 recorded UI steps passed, including genuine native fullscreen/Escape, click/keyboard toggles, current-request/exit rejection reporting, live generated audio/video continuity, same-client multiple streams, explicit join rules, end/stop/decline/disconnect teardown and translated labels. Zero capture requests/page errors.
Artifact: `C:/Users/Admin/tmp/teamspeach-audit2-20261024/build/win-unpacked/TeamsPeach.exe`. SHA-256:
```text
TeamsPeach.exe a503b31dbdca71c4dc90c69d3e26c00cd914aacadd55ee72181556a1b31b0fa1
resources/app.asar 2d3d2fe48ffa1f5875213cc85455ac184c526f5377b8a3d7f03f824876965cf2
resources/core/teamspeach-core.exe eedda14684106ddfe20bf6d1c4dfcfcfef67c2418b54dba620850c3831e8e52d
```
Machine-readable build/test provenance is `C:/Users/Admin/tmp/teamspeach-audit2-20261024/build-provenance.json`; the full raw test transcript is `full-suite.log` beside it. `packaged-source-identity.json` confirms byte-for-byte equality of the packaged `media.js`, `tree.js`, `watch.js`, `audio/engine.js` and `core-process.js` against the frozen source after the packaged smokes. All raw before/intermediate/after evidence remains alongside it. No benchmark result is used to explain or dismiss the user's live 20 fps observation.
File diff suppressed because it is too large. Load diff
+231
View File
@@ -0,0 +1,231 @@
{
"inspected_at": "2026-11-01",
"binary": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/TeamSpeak.dll",
"sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"also_read": [
"html/client_ui/main.js (sha256 9d6bea2e…2c39 per voice-official-source-20261029.json)",
"libtschat_client_lib_export.dll (strings only)"
],
"method": "Read installed PE bytes only; parse PE section table; find ASCII strings; find x64 RIP-relative disp32 references to them in .text; disassemble the referencing function with Python capstone and resolve every RIP-relative operand that points at an ASCII string; decode the protobuf FileDescriptorProto blobs embedded in .rdata (client/s3_filetransfer.proto, shared/filetransfer.proto, events/filetransfer_events.proto). No client/profile execution, credentials, network or server activity.",
"scope": "Static evidence of the official client's TS6 file-storage branches. Not server acknowledgement, not E2E interoperability.",
"branch_selection": {
"source": "main.js hasFeature(e) (col ~2420657): FileTransfer = capabilityExtensions.indexOf(\"HTTPFT\") != -1, FileTransferS3 = indexOf(\"s3\") != -1; server property virtualserver_capability_extensions (TeamSpeak.dll string 0x2ee29d0).",
"usage": "Channel file browser uses decentral* (HTTPFT) when FileTransfer, legacy requestFileList/downloadFile/uploadFile/createFolder/moveFile/deleteFiles otherwise; icon upload prefers s3UploadFile when FileTransferS3, then decentralUploadFile, then legacy uploadFile (main.js col ~2318472, ~2457331)."
},
"commands": [
{
"verb": "ftgetchannelfilehttptoken",
"start_va": "0x1814d5c57",
"resolved_ascii": [
"ftgetchannelfilehttptoken",
"cid",
"cpw",
"scid",
"listuserfiles",
"chat",
"icons",
"avatars"
],
"note": "scid is one of listuserfiles|chat|icons|avatars (protobuf SpecialChannelID AVATARS=1, ICONS=2, CHAT=3, LISTUSERFILES=4); whether scid is omitted for ordinary channels is [INFERENCE] from the branch structure, not proven.",
"disassembly": [
"0x1814d5c57: lea rax, [rip + 0x129d012] => ftgetchannelfilehttptoken",
"0x1814d5c83: lea rax, [rip + 0x129a352] => cid",
"0x1814d5d05: lea rdx, [rip + 0x129a37c] => cpw",
"0x1814d5df5: lea rax, [rip + 0x129ce90] => scid",
"0x1814d5e01: lea rax, [rip + 0x129ce98] => listuserfiles",
"0x1814d5e13: lea rax, [rip + 0x129ce72] => scid",
"0x1814d5e1f: lea rax, [rip + 0x1152a96] => chat",
"0x1814d5e31: lea rax, [rip + 0x129ce54] => scid",
"0x1814d5e3d: lea rax, [rip + 0x114e548] => icons",
"0x1814d5e4f: lea rax, [rip + 0x129ce36] => scid",
"0x1814d5e5b: lea rax, [rip + 0x129ce36] => avatars"
]
},
{
"verb": "s3ft_getpresignedurl",
"start_va": "0x1814bb758",
"resolved_ascii": [
"s3ft_getpresignedurl",
"chid",
"chpw",
"key",
"verb",
"length"
],
"note": "key/verb/length are loaded into registers before a loop: [INFERENCE] one key/verb/length group per requested object (JS-side native names objectRequests/objectKey/contentLength).",
"disassembly": [
"0x1814bb758: lea rax, [rip + 0x12b41b1] => s3ft_getpresignedurl",
"0x1814bb77c: lea rax, [rip + 0x12b41a5] => chid",
"0x1814bb7c6: lea rdx, [rip + 0x12b4163] => chpw",
"0x1814bb84c: lea r14, [rip + 0x1145595] => key",
"0x1814bb853: lea r13, [rip + 0x12a19e6] => verb",
"0x1814bb85a: lea r12, [rip + 0x12b40d7] => length"
]
},
{
"verb": "s3ft_list_files",
"start_va": "0x1814bb9ad",
"resolved_ascii": [
"s3ft_list_files",
"chid",
"chpw"
],
"disassembly": [
"0x1814bb9ad: lea rax, [rip + 0x12b3fec] => s3ft_list_files",
"0x1814bb9d2: lea rax, [rip + 0x12b3f4f] => chid",
"0x1814bba09: lea rcx, [rip + 0x12b3f20] => chpw"
]
},
{
"verb": "s3ft_deletefile",
"start_va": "0x1814bb42c",
"resolved_ascii": [
"s3ft_deletefile",
"chid",
"chpw",
"key"
],
"disassembly": [
"0x1814bb42c: lea rax, [rip + 0x12b450d] => s3ft_deletefile",
"0x1814bb451: lea rax, [rip + 0x12b44d0] => chid",
"0x1814bb488: lea rcx, [rip + 0x12b44a1] => chpw",
"0x1814bb4d6: lea rcx, [rip + 0x114590b] => key"
]
},
{
"verb": "s3ft_deletefiles",
"start_va": "0x1814bb5a9",
"resolved_ascii": [
"s3ft_deletefiles",
"chid",
"chpw",
"key"
],
"disassembly": [
"0x1814bb5a9: lea rax, [rip + 0x12b43c0] => s3ft_deletefiles",
"0x1814bb5dd: lea r15, [rip + 0x12b4344] => chid",
"0x1814bb5e4: lea r12, [rip + 0x12b4345] => chpw",
"0x1814bb5eb: lea r13, [rip + 0x11457f6] => key"
]
},
{
"verb": "s3ft_renamefile",
"start_va": "0x1814bbadc",
"resolved_ascii": [
"s3ft_renamefile",
"chid",
"chpw",
"key_old",
"key_new"
],
"disassembly": [
"0x1814bbadc: lea rax, [rip + 0x12b3e6d] => s3ft_renamefile",
"0x1814bbb01: lea rax, [rip + 0x12b3e20] => chid",
"0x1814bbb38: lea rcx, [rip + 0x12b3df1] => chpw",
"0x1814bbb86: lea rcx, [rip + 0x12b3dd3] => key_old",
"0x1814bbbdb: lea rdx, [rip + 0x12b3d86] => key_new"
]
},
{
"verb": "s3ft_renamefiles",
"start_va": "0x1814bbcae",
"resolved_ascii": [
"s3ft_renamefiles",
"chid",
"key_old",
"key_new",
"chpw"
],
"disassembly": [
"0x1814bbcae: lea rax, [rip + 0x12b3cd3] => s3ft_renamefiles",
"0x1814bbce2: lea r15, [rip + 0x12b3c3f] => chid",
"0x1814bbce9: lea r12, [rip + 0x12b3c70] => key_old",
"0x1814bbcf0: lea r13, [rip + 0x12b3c71] => key_new",
"0x1814bbcf7: lea r14, [rip + 0x12b3c32] => chpw"
]
},
{
"verb": "s3ft_upload_done_notification",
"start_va": "0x1814bbe8d",
"resolved_ascii": [
"s3ft_upload_done_notification",
"chid"
],
"disassembly": [
"0x1814bbe8d: lea rax, [rip + 0x12b3b1c] => s3ft_upload_done_notification",
"0x1814bbeb2: lea rax, [rip + 0x12b3a6f] => chid"
]
}
],
"notifications": {
"dispatch_va": "0x18148e2ad..0x18148e415 (name comparisons for notifychannelfilehttptoken, notify_presigned_urls, notify_s3ft_delete, notify_s3ft_rename, notify_s3ft_file_list, notify_s3ft_upload_done)",
"notifychannelfilehttptoken": {
"fields": [
"return_code",
"jwt",
"expires_in"
],
"parser_va": "0x1814d9451",
"disassembly": [
"0x1814d9451: lea rax, [rip + 0x12981e0] => return_code",
"0x1814d9479: lea rax, [rip + 0x1299c84] => jwt",
"0x1814d94b4: lea rsi, [rip + 0x1299c4d] => expires_in"
]
},
"s3_presigned_reply": {
"fields": [
"payload (array)",
"url",
"key"
],
"parser_va": "0x1812ef40c",
"errors": [
"Invalid presigned URL response: no payload or empty payload array",
"Invalid presigned URL response: missing url or key"
],
"disassembly": [
"0x1812ef40c: lea rdx, [rip + 0x1313455] => payload",
"0x1812ef472: lea rdx, [rip + 0x13133ef] => payload",
"0x1812ef4a7: lea rdx, [rip + 0x13133ba] => payload",
"0x1812ef4c7: lea rdx, [rip + 0x131339a] => payload",
"0x1812ef513: lea rdx, [rip + 0x131334e] => payload",
"0x1812ef52f: lea rdx, [rip + 0x1309ec2] => url",
"0x1812ef546: lea rdx, [rip + 0x131189b] => key",
"0x1812ef55d: lea rdx, [rip + 0x1309e94] => url",
"0x1812ef67a: lea r8, [rip + 0x146dd37] => Invalid presigned URL response: missing url or key",
"0x1812ef702: lea r8, [rip + 0x146dc67] => Invalid presigned URL response: no payload or empty payload array"
]
},
"notify_s3ft_file_list": "field names NOT resolved (no string xref found for name/size/last_modified/is_directory)"
},
"protobuf_schemas_decoded": {
"shared/filetransfer.proto": "FTGetChannelFileHTTPTokenRequest{channel_id=1 uint64, scid=2 SpecialChannelID}; FTGetChannelFileHTTPTokenResponse{channel_id=1, expires_in=2 uint32, jwt=3 string, error=4}; FileInfo{name,size,datetime,type FileType(DIRECTORY=1,FILE=2),channel_id,path}; FTInit*/FTGetFileList/FTCreateDir/FTDeleteFile{names repeated}/FTRenameFile{channel_id,channel_password,target_channel_id,target_channel_password,oldname,newname}/FTStop{server_file_transfer_id,client_file_transfer_id,delete}",
"client/s3_filetransfer.proto": "S3FTGetPresignedURLRequest{operation,channel_id,path,filename,expires_in,file_size} -> Response{url,token,expires_at,upload_fields map,error}; S3FTListFilesRequest{channel_id,path,recursive} -> Response{channel_id,path,files[S3FileInfo{name,path,size,last_modified,is_directory}],error}; S3FTDeleteFile(s), S3FTRenameFile(s){FileRenameOperation{source,destination}}, S3FTUploadDoneNotification{channel_id,path,filename,file_size,token}",
"note": "Protobuf field names are the server-message schema; they do not prove the text-command argument names (which differ, e.g. chid/chpw/key)."
},
"httpft": {
"token": "ftgetchannelfilehttptoken -> notifychannelfilehttptoken {jwt, expires_in}; cached per channel under 'channel_http_token::<…>::<…>' (0x18127fdc2).",
"endpoint_formats_seen": [
"{0}/v1/matrix_downloadtoken/{1}/{2}",
"{0}/v1/matrix_uploadtoken",
"http://{0}/.well-known/teamspeak/{1}"
],
"http_stack": "boost::beast HTTP/HTTPS with com::teamspeak::client::ui::decentral::Downloader<basic_file_body|basic_string_body>; headers 'Authorization', 'Bearer ', 'Content-Range' present as strings.",
"listing_json_keys_from_js": [
"fn",
"sz",
"ts",
"ct ('application/x-directory' for '<dir>/.tsfolder' folder markers)"
],
"confidence": "low: the channel-file HTTP request paths/methods and how the JWT and base URL are combined were NOT resolved; the matrix_* templates may belong to chat attachments, not channel files."
},
"unresolved": [
"HTTPFT channel-file HTTP endpoint paths, methods and request/response bodies (only generic templates and header names found).",
"Whether scid is sent for ordinary channel files and its exact value encoding.",
"notify_s3ft_file_list / notify_s3ft_delete / notify_s3ft_rename / notify_s3ft_upload_done field names.",
"notify_presigned_urls outer argument name carrying the JSON payload, and the exact verb/operation values (GET/PUT inferred, not observed).",
"Upload form semantics for S3 (presigned PUT vs POST with upload_fields).",
"No disposable server advertising HTTPFT or s3 is available, so nothing here was exchanged with a server."
],
"decision": "TeamsPeach implements the legacy branch only. When a server advertises HTTPFT or s3 the browser shows an explicit 'unsupported storage' state (user can still open the legacy list with a persistent warning); the TS6 branches are recorded as BLOCKED, not implemented."
}
+39
View File
@@ -61,3 +61,42 @@ leave with `is_remove=1`.
- Avatar precedence in `main.js`: `client_flag_avatar` (server file) first, otherwise
`client_myteamspeak_avatar` resolved by the native `requestAvatarWithTsServerClientProperty`
(DLL: `Avatar_Cache::request_avatar_from_urls(vector<pair<unsigned, string>>)`).
## Publisher protocol inspection (same installed version)
Read-only PE inspection recovered **legacy text-command construction**, independently of
the protobuf descriptor strings in the same DLL. `ts6-publisher-native.json` records the
SHA-256, method and short x64 disassembly/ASCII-reference excerpts; no binary or profile
data is copied. Python `capstone` decoded RIP-relative `lea` references after a small
standard-library PE-section parser located the command strings:
- `setupstream`, VA `0x18154bf25`: `name type bitrate accessibility mode viewer_limit audio`.
- `updatestream`, VA `0x18154c100`: `id name type bitrate accessibility mode viewer_limit audio`.
- `removeclientfromstream`, VA `0x181549a56`: `id clid reason`; a distinct overload at
`0x181549d5f` omits `clid`. TeamsPeach uses only the explicit-viewer overload.
The official minified UI source supplies independent enum evidence, saved with its
hash and excerpts in `ts6-publisher-ui-enums.json`: camera `1`, screen `2`, window `3`;
public `1`, contacts-only `2`, private `3`; P2P `1`, SFU `2`; close reason `KICKED=4`.
Its join handler only tests a viewer limit when `viewerLimit > 0`, establishing `0`
as unlimited. It automatically approves public/contact-matched viewers and otherwise
places them in `_pendingJoinRequests` for a later `joinStreamResponse` decision.
This establishes client policy, not whether every server version implements the same
metadata filters. TeamsPeach selected-participant mode therefore uses public discovery
metadata plus an enforced local UID allowlist; it does not impersonate myTS contacts.
The public protocol notes above now also document **Sending**: setup with all seven
metadata fields, wait for `notifystreamstarted` to obtain the real ID, respond with
`respondjoinstreamrequest id clid decision offer msg`, receive answer and trickled ICE,
and unregister with `stopstream id`. The reference reports live desktop crashes for
H264 Constrained Baseline and non-libwebrtc senders. TeamsPeach uses Chromium libwebrtc
and safe codec preferences (H264 High/VP8 only), video before audio, the `outgoing_video`
wire stream label, and trickled candidates. These are interoperability precautions,
not proof of a TeamsPeach-to-official-client live session.
No existing disposable TS6 server binary was found in the inspected repository,
Downloads filenames, or temporary workspace filenames. No real server, account,
participant, desktop, microphone or camera was used for this investigation. The
offline stdio and generated/offscreen media tests have deliberately separate scopes.
SFU publishing would require a compatible controlled SFU endpoint, access-token and
transport negotiation, and a real mediasoup sender implementation; P2P is not that path.
+89
View File
@@ -0,0 +1,89 @@
{
"inspected_at": "2026-10-24",
"binary": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/TeamSpeak.dll",
"sha256": "b4888a71b8e7a029e7124950737874e124aff7404f126ed8140b55273113edcb",
"method": "Read installed PE bytes only; parse PE sections, locate ASCII verbs, resolve x64 RIP-relative LEA references with Python capstone. No client/profile execution, credentials, or live server activity.",
"scope": "Static legacy command assembly evidence, not server acknowledgement or E2E interoperability.",
"commands": [
{
"verb": "updatestream",
"start_va": "0x18154c100",
"resolved_ascii": [
"updatestream",
"id",
"name",
"type",
"bitrate",
"accessibility",
"mode",
"viewer_limit",
"audio"
],
"disassembly": [
"0x18154c100: lea rax, [rip + 0x122c081] => updatestream",
"0x18154c13e: lea rax, [rip + 0x10b5da7] => id",
"0x18154c18d: lea rcx, [rip + 0x10b4a78] => name",
"0x18154c1cd: lea rax, [rip + 0x10b4b80] => type",
"0x18154c1fa: lea rax, [rip + 0x121f5c7] => bitrate",
"0x18154c224: lea rax, [rip + 0x122bf2d] => accessibility",
"0x18154c24e: lea rax, [rip + 0x10b5ca7] => mode",
"0x18154c278: lea rax, [rip + 0x122bee9] => viewer_limit",
"0x18154c2a5: lea rax, [rip + 0x1220b9c] => audio"
]
},
{
"verb": "removeclientfromstream",
"start_va": "0x181549a56",
"resolved_ascii": [
"removeclientfromstream",
"id",
"clid",
"reason"
],
"disassembly": [
"0x181549a56: lea rax, [rip + 0x122e763] => removeclientfromstream",
"0x181549a97: lea rcx, [rip + 0x10b844e] => id",
"0x181549ad4: lea rax, [rip + 0x1225e29] => clid",
"0x181549afb: lea rax, [rip + 0x10e175e] => reason"
]
},
{
"verb": "removeclientfromstream",
"start_va": "0x181549d5f",
"resolved_ascii": [
"removeclientfromstream",
"id",
"reason"
],
"disassembly": [
"0x181549d5f: lea rax, [rip + 0x122e45a] => removeclientfromstream",
"0x181549da0: lea rcx, [rip + 0x10b8145] => id",
"0x181549ddd: lea rax, [rip + 0x10e147c] => reason"
]
},
{
"verb": "setupstream",
"start_va": "0x18154bf25",
"resolved_ascii": [
"setupstream",
"name",
"type",
"bitrate",
"accessibility",
"mode",
"viewer_limit",
"audio"
],
"disassembly": [
"0x18154bf25: lea rax, [rip + 0x122c24c] => setupstream",
"0x18154bf6a: lea rdx, [rip + 0x10b4c9b] => name",
"0x18154bf9e: lea rax, [rip + 0x10b4daf] => type",
"0x18154bfc2: lea rax, [rip + 0x121f7ff] => bitrate",
"0x18154bfe6: lea rax, [rip + 0x122c16b] => accessibility",
"0x18154c00a: lea rax, [rip + 0x10b5eeb] => mode",
"0x18154c02e: lea rax, [rip + 0x122c133] => viewer_limit",
"0x18154c052: lea rax, [rip + 0x1220def] => audio"
]
}
]
}
@@ -0,0 +1,8 @@
{
"file": "C:/Users/Admin/AppData/Local/Programs/TeamSpeak/html/client_ui/main.js",
"sha256": "9d6bea2ee5333086555c36584621c1b3462a83042ce746d3229d6766a9b82c39",
"scope": "Static official client source excerpts; no runtime/server test.",
"sourceTypesAndAccessAndMode": "{e[e.NONE=0]=\"NONE\",e[e.CAMERA=1]=\"CAMERA\",e[e.SCREEN=2]=\"SCREEN\",e[e.WINDOW=3]=\"WINDOW\",e[e.EXISTING_SESSION=4]=\"EXISTING_SESSION\",e[e.VOICE=5]=\"VOICE\"}(v||(v={})),function(e){e[e.NONE=0]=\"NONE\",e[e.PUBLIC=1]=\"PUBLIC\",e[e.CONTACTS_ONLY=2]=\"CONTACTS_ONLY\",e[e.PRIVATE=3]=\"PRIVATE\"}(y||(y={})),function(e){e[e.NONE=0]=\"NONE\",e[e.P2P=1]=\"P2P\",e[e.SFU=2]=\"SFU\"}(O||(O={})),function(e){e[e.NONE=0]=\"NONE\",e[e.LEFT=1]=\"LEFT\",e[e.DENIED=2]=\"DENIE",
"viewerLimitZeroUnlimited": "_ONLY&&a.Ay$.isStreamOnContactList(e.streamIdentifier)||n,r=this.config.viewerLimit>0&&this.viewers.length===this.config.viewerLimit&&!n;!i||r?this._pendingJoinRequests.push(e.streamIdentifier):a.Ay$.isPopup||\"function\"==typeof tsclient_internal.postMessage&&tsclient_internal.pos",
"kickReason": "NONE=0]=\"NONE\",e[e.LEFT=1]=\"LEFT\",e[e.DENIED=2]=\"DENIED\",e[e.FAILED=3]=\"FAILED\",e[e.KICKED=4]=\"KICKED\",e[e.BANNED=5]=\"BANNED\"}(_||(_={})),function(e){e[e.FAILED=-1]=\"FAIL"
}
+77
View File
@@ -0,0 +1,77 @@
# UI request acceptance — 2026-10-24
## Final artifact and limits
Local Windows x64 directory build, unchanged version **0.1.4**, no release or publication:
`C:/Users/Admin/tmp/teamspeach-ui9-20261024/build/win-unpacked/TeamsPeach.exe`
Evidence root: `C:/Users/Admin/tmp/teamspeach-ui9-20261024/`.
`build-provenance.json` records hashes and byte-for-byte identity of all **50** application source files
against the ASAR, plus the packaged core against the final optimized Rust binary. All matched.
The previous `teamspeach-audit2-20261024` build was not overwritten.
This is **not all ten requirements complete**: whisper menu semantics remain unresolved, macOS
selected-application audio is not implemented, native capture across every OS/window manager is not
proved, and the combined native application-audio-to-WebRTC path still needs a safe isolated audio endpoint.
No live server moderation, rights changes, private streams, microphone or physical camera were tested.
## Ten-item checklist
| Item | Acceptance and scope | Evidence |
|---|---|---|
| 1. Non-selectable chrome, useful text preserved | Passed packaged UI: drag-selection blocked on chrome; real chat text/URL ranges and editable fields remain selectable; UID all-selection preserved. OS clipboard round-trip deliberately not performed after the safety override. | `final-shell/result.json` |
| 2. Remove quoted deafen banner | Passed: redundant audio-muted notice absent while deafen still prevents forwarding/capture. Separate microphone-muted and unsupported-codec notices retained intentionally. | `final-shell/result.json` |
| 3. Independent viewers and native PiP | Two actual generated WebRTC receivers proved, independent controls and lifecycle. Native Windows PiP HWND/topmost and fullscreen continuity were measured **before** the desktop-test prohibition, never repeated afterward. Final package media/layout was checked hidden; this does not establish Linux/Wayland native topmost behavior. | `dev-streams/result.json`, `final-stage/result.json` |
| 4. Remove Open mic/F8 header hint | Passed open/PTT mode presentation; PTT settings/button/key path retained. | `final-shell/result.json` |
| 5. Banner behind server card | Passed EN/RU × dark/light × 1280×800/880×560, compact artwork, no separate banner row, absent-artwork cleanup. Fixture artwork, not a new live server download. | `final-shell/` screenshots and result |
| 6. Right-edge channel collapse | Passed pointer/Space/Enter, direct members hidden without joining, descendants retained, live fixture membership/talking updates and bounded avatar summary, per-server persisted state. | `final-tree/result.json` |
| 7. Sidebar divider | Passed bounded pointer/keyboard resize, Home/End/arrows, Enter/double-click responsive reset, restart persistence; audio ownership unchanged in fixture. | `final-tree/result.json` |
| 8. Upper multi-tile stage/chat divider | Passed actual generated receivers and geometry: 1280-wide video ≈154 px/footer ≈70 px; 880-wide video ≈149 px/footer ≈70 px, chat ≈220 px. No horizontal overflow; resize/collapse retains sessions. | `final-stage/result.json`, pre-override `dev-streams/result.json` |
| 9. Member context menus | Partial overall. Packaged real shell/preload/validator passed self/other, permissions, exact target payloads, cancellation, errors, UID-reuse/disconnect guards, local slider/mute/reset. Native two-speaker volume proof and strict Rust bridge validation passed. Whisper action was removed rather than shipped as an invented/no-op implementation; exact submenu behavior still needed. No live moderation/rights/avatar transaction proof. | `final-menu/result.json`, `final-integration/result.json`, native test transcripts |
| 10. Publish screens/app audio | Partial overall. Packaged source/preview/Start/Stop/audience/quality UI passed fourteen fixture cases and eight captures. Production sender→viewer generated H.264/audio decoded successfully; application PCM child→production main/worklet→WebRTC decoded successfully, including gain/reset and processorerror cleanup. These do **not** prove native platform capture or official TS6 interoperability. Windows native selection proof is separate; Linux adapter runtime unverified; macOS app audio missing; SFU unavailable. | `final-broadcast/result.json`, sender and app-audio evidence below |
## Executed checks
- Final `npm test`: **187 total, 186 passed, 1 opt-in live-update test skipped, 0 failures**.
Transcript: `artifact://1095` (also final packaging output).
- Rust full unit run: **66 passed**, including generated OpusVoice/OpusMusic local-gain and subprocess
proof. Initial bridge run exposed a real Serde unit-variant extra-field acceptance bug; empty struct
variants corrected it. Final full `bridge_smoke`: **5 passed**. The initial failing transcript is
preserved as `artifact://1074`, not relabelled successful.
- Final focused application-audio tests: **14 passed**, including closed port and retryable context-close
failures; the final full Node run includes them.
- Optimized Rust core build passed. Native notices regenerated: **256 crates, 164 distinct license texts**.
- Final packaged offscreen **shell, preferences/avatar IPC, tree, menus, stream stage and broadcaster UI**
all passed. Each directory `final-{shell,integration,tree,menu,stage,broadcast}` contains `result.json`.
- Detector ran once: four warnings (the existing audio-meter width transition reported twice, a hidden
dynamic banner without initial `src`, and compact stage heading padding). The banner is intentionally
hidden until real data exists; stage geometry was independently measured. No unrelated meter redesign.
## Media provenance and safety
- Sender: `C:/Users/Admin/tmp/teamspeach-publisher-decoded-pass/result.json` — generated canvas/tone,
production publisher and receiver, 640×360 H.264, decoded audio RMS ≈0.1063. Chromium's
`inbound-rtp.totalAudioEnergy` remained zero despite decoded audio; the original failing oracle was
replaced with a real decoded PCM analyser and its zero counter retained. No production success faked.
- Application mixer: `smoke-out/appaudio-synthetic/result.json` and
`docs/evidence/appaudio-bridge.md` — exact-contract synthetic PCM child, production Electron transport,
production worklet and local WebRTC; final RMS ≈0.00509, master-half ≈−6.15 dB, per-app mute isolation
≈36.5 dB with sibling level changing ≈0.01 dB. Three processorerror cycles, six stop acknowledgements,
five closed contexts, zero children/in-flight frames after cleanup. Not a native WASAPI/Pulse proof.
- Native capture selection: `docs/evidence/native-app-audio-proof.json` — earlier Windows own-process
440 Hz versus excluded 997 Hz test showed ≈64.7 dB isolation and ≈13 ms EOF cancellation. Its quiet
1% default-output tones could be audible; they were **not** replayed after the audio restriction.
Later ancestry/lifetime changes were compiled and contract-tested, not native-replayed.
- After the user desktop override, tests used hidden, nonfocusable, offscreen windows and disposable
profiles only. Generic media/display/fullscreen permissions and native dialogs are denied in test mode;
avatar tests substitute fixture dialog answers. No OS clipboard access or foreground input was used.
Native PiP/capture tests are guarded and require genuine isolated environments, not an opt-in flag alone.
- Native combined app-audio→WebRTC had an earlier RMS-zero fixture failure; the exact-contract synthetic
path now passes. Repeating the real combined path is blocked without a verified nonphysical audio
endpoint. No endpoint, routing, volume, driver or OS-display installation was performed.
## Documentation integrated
`README.md`, `DESIGN.md`, `PRODUCT.md`, `CHANGELOG.md`, `FEATURE_COMPATIBILITY.md`, shared EN/RU catalogs,
`docs/bridge.md` (domain owners), native license notices, and the evidence records above. No version bump.
@@ -0,0 +1,26 @@
{
"baselinePackage": "C:/Users/Admin/tmp/teamspeach-player-refine-20261024/build/win-unpacked/TeamsPeach.exe",
"baselineSourceIdentity": {
"method": "Extracted app.asar files compared byte-for-byte with repository before edits; all four matched.",
"app/renderer/js/audio/engine.js": "b29736ecafcbc49c742d6f5181cf218d82732d04fee5e70eb4105eb333beb11a",
"app/renderer/js/audio/capture-worklet.js": "eaf4cc8b69e86c6ef12a437a5b88e71de60d4637198c2a0a51ea20b4f0db492a",
"app/renderer/js/voice.js": "4e8eb23c8f485c4b2bbecf28ecad34646e959bb26997bcf7373f8abcefb176f4",
"app/main/core-process.js": "8d4827482fdd019f3ed8fff4df5b64b208e88f1e0215052ab96ec62da81a4be0"
},
"readOnlyNormalPreferences": { "transmitMode": "open", "vadSensitivity": "normal", "echoCancellation": true, "noiseSuppression": true, "autoGainControl": true, "voiceVolume": 100, "explicitInputDevice": false, "explicitOutputDevice": false },
"officialSavedDspObservation": "Read-only settings.db audio_settings contains input AGC=true and denoise both true/false across saved device records; output AEC=false/AGC=true. Active effective device DSP was not queried; device identifiers/names excluded.",
"officialNativeImplementation": "TeamSpeak.dll inspected read-only: contiguous 11-entry integer UI tables were not found. This does not prove absence of equivalent codec logic; no native encoder callchain was recovered.",
"officialUiSource": "C:\\Users\\Admin\\AppData\\Local\\Programs\\TeamSpeak\\html\\client_ui\\main.js",
"sha256": "9d6bea2ee5333086555c36584621c1b3462a83042ce746d3229d6766a9b82c39",
"byteOffsetUtf8": 2367426,
"snippet": "class Z{constructor(){this.opusVoiceQualityToBitrate=[4096,8192,12288,16384,20480,24576,28672,32768,36864,40960,45056],this.opusMusicQualityToBitrate=[7200,14400,21600,28800,36e3,43200,50400,57600,64800,72e3,79200]}getCodecBitrate(e,t){if(e!==V.OPUS_VOICE&&e!==V.OPUS_MUSIC)return _.error(\"Invalid codec: \"+e),0;if(t<0||t>10)return _.error(\"Invalid quality: \"+t),0;let n=(e===V.OPUS_VOICE?this.opusVoiceQualityToBitrate[t]:this.opusMusicQualityToBitrate[t])/50/8;return 50*Math.ceil(n)*8}getCodecBandwidthUsage(e,t){let n=(this.getCodecBitrate(e,t)+18e3)/8,i=0,r=1024;for(;n>1048576;)n/=r;return n>=r&&(i=n/r),i.toFixed(2)+\" KiB\"}}",
"scope": "Installed official TS6 UI estimator only. Does not prove native encoder target, bandwidth control or proprietary DSP implementation.",
"officialDspDefaultsSourceSnippet": "class T{constructor(){this[i]=!1,this[r]=!0,this[s]=!1,this[a]=-60,this[o]=0}}i=O.J.Aec,r=O.J.Agc,s=O.J.ComfortNoiseEnabled,a=O.J.ComfortNoiseLevel,o=O.J.EchoReductionLevel;class k{constructor(){this[l]=!0,this[c]=!0,this[d]=1,this[h]=!1,this[u]=!0,this[p]=_.Z.Likelihood,this[m]=-30}}l=O.i.Agc,c=O.i.Denoise,d=O.i.DenoiserLevel,h=O.i.TypingSuppression,u=O.i.Vad,p=O.i.VadMode,m=O.i.VadLevel;class E{constructor(){this[g]={mode:\"\",device:null,devices:new Map,[v.Master]:0,notificationsDevice:{id:\"voice\",name:\"\"},[v.Notification]:-23,global:{[O.J.AgcExperimentalMode]:!1}},this[f]={mode:\"\",device:null,devices:new Map,ptt:{active:!1,releaseDelay:{active:!1,ms:300}}}}buildCaptureDspBlob(e){const t=this[y.bV.In],n=e?.mode||t.mode||b.Ay$.audio.getDefaultMode(y.bV.In),i=e?e.deviceId||b.Ay$.audio.getDe",
"sdk": "https://business.teamspeak.com/features/client-audio-example/",
"opus": "https://opus-codec.org/docs/opus_api-1.5/group__opus__encoderctls.html",
"ourMappingRetained": {
"voice": "8000+4000*q",
"music": "24000+8000*q",
"reason": "UI estimate is not sufficient evidence to lower existing encoder targets; no server bitrate limit was observed/read from a live connection."
}
}
File diff suppressed because it is too large. Load diff