- voelinctl observes with the new gateway list and checks avatar hashes
only when they are MD5s (a myTeamSpeak avatar's hash is its link).
- Gateway discovery keeps to the most specific name that publishes a
record; another server's gateway is no fallback. The admin guide says so.
- The observer's resync keeps the avatars clientlist does not tell
(they come with the enter and update notifications).
- A server avatar given up on counts for that picture only: a new one is
tried again, and one that arrives after all is shown again.
- updatemytsdata goes again after tsclientlib reconnects (the server
forgets it), and once, not twice, when signing in.
- SVG is told by its prolog: a page with an svg in it (HTML, XHTML) is a
page, refused and logged as one; the UI tells it the same way.
- Cursors (CUR) are no longer taken for pictures; MP4 and MOV are named
videos, not AVIF.
- The UI decodes at most 128 MiB of pixels on its thread, drops the full
picture before copying the small one, logs what it cannot decode, and
remembers pictures it cannot show instead of decoding them on every
refresh; a banner that reloads unchanged is not decoded again.
- The early refusal of a long error page is tested again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Failures are in the log with the host and the reason, never the whole
address: HTTP status, the whole chain of causes (TLS, DNS, timeouts), what
came instead of a picture (an HTML page, AVIF); banner addresses that
cannot be fetched at all once; avatars and icons in the server's files
when they give up (a closed file transfer port shows here).
More is shown: BMP and ICO, SVG after a comment or a DOCTYPE, addresses
with blanks around them; pictures larger than 4096 px are scaled down
instead of refused (only above 512 MiB of pixels). Banners keep being
tried while shown (after 1, 4, 16, 60, 300, 900 s, then every 15 min).
Defaults: connect 20 s, read 60 s, slow start 120 s, 16 downloads at
once, 20 redirects, pictures up to 128 MiB at 8 KiB/s at least, file
transfer negotiation 30 s and a minute plus size, cache.max_mb 1024,
ui.image_cache_mb 256.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
As the official TeamSpeak 6 client does once connected and after a
sign-in, Voelin sends updatemytsdata with the account's certificate and
its avatar (LoginSession.mytsid_user_cert.cert and user_avatar, raw bytes
with TeamSpeak's escaping only; \a and \b now escaped too). The avatar
is sliced out of the login response as it came: its signature covers it.
Both come from a password sign-in; they are kept per account next to the
avatar picture (public data, outside the keyring) and published to every
voice connection that presents the account (Command::SetMytsData, beside
the identity). A refusal is only logged. Accounts signed in before need
one password sign-in.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
TeamSpeak 6 tells a client's myTeamSpeak avatar as
client_myteamspeak_avatar "<state>,<url>;...". The book now keeps it,
and the model reads it as the official client does (one bad entry, an
empty one too, spoils the value; the online picture first, else away, do
not disturb, offline; HTTPS links only).
The engine downloads it from the web (4 MiB at most, cached by link)
where the server's avatar is not shown: the client has none, there is no
voice connection to get it over (observing), or its download gave up
(the server's files unreachable). The server's avatar comes first, as in
the official client.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Discovery returns every gateway the server publishes, best first: the
most specific name, at a name _tsgws before _tsgw, by priority, then
tsgw's own /.well-known answer (only when a plain record or nothing is
published, so a TLS-only server is never reached without TLS). The
engine tries them in turn, each for up to 20 s, and uses the first that
logs in; only a round that fails waits before the next. The bookmark
keeps the published list and the one in use.
A TLS proxy that answers 404 (Zoraxy without a rule for the host) no
longer keeps the gateway away when tsgw's plain port is published too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Users never hear of the gateway:
- relayed messages look like everyone else's (no "via relay", no accent
colour) and group with the author's other messages;
- a gateway that cannot be reached or drops is tried again by itself
(after 2, 5, 15, 30, then every 60 s) with the open chats opened again
and messages written meanwhile sent, instead of a WebSocket error
("connection refused") on screen; it is logged with its URL, once per
cause;
- a server whose gateway is away is offline, not connecting, so it can
always be joined;
- failed requests the app made by itself are quiet; what the user did and
failed is told in plain words; query relay errors are logged;
- no status line about a found gateway; events and streams texts do not
mention it.
The gateway is looked up once per run even when one is stored: what the
server publishes takes the place of a stored URL (one that moved, or one
typed into an older version that showed the field, which cannot be
edited any more).
The admin guide says a _tsgws record must point at TLS, not at tsgw's own
plain port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The official TS6 client fetches the avatar map's names as they are
(MyTeamSpeak::Account::request_own_myts_avatar hands each name to
Avatar_Cache::request_avatar_from_urls, which GETs it without headers).
requestAvatarSignedUrl signs upload links: its reply only goes to
upload_avatar, an Http_Client::put. Voelin fetched such a link with a GET
and was refused with HTTP 403.
A refused download is now its own error ("avatar download returned HTTP
..."), apart from the account service's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The notices were already stale on main: ring left the dependency graph when
schema-api moved tonic to aws-lc-rs. dav1d, dav1d-sys and av-data come in
with the av1 feature. Also drops an unused helper of the gateway's fake
server (clippy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The login page's artwork is the tall night landscape of the home sidebar,
covering the panel from the bottom, under a single smooth fade. Notices
and session actions only take room when they have something to show.
The server dialog keeps its one-line subtitle, so Advanced is not cut off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
AV1 comes first in the viewer's order, so with the av1 feature on by
default the first decoders are not VP9 and VP8 any more; the test checks
their order among themselves and what leads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
voelin-media builds dav1d (AV1 decoding) by default, like every other
codec backend: Linux images already had libdav1d-dev; Windows CI takes it
from vcpkg next to libvpx and the MinGW image builds it static (dav1d
1.5.4, pinned commit; checked to cross-compile).
Windows packages ship FFmpeg's LGPL DLLs (BtbN's 8.1 shared build,
checked against the release's checksums by scripts/fetch-ffmpeg-windows.sh)
next to voelin.exe, where the app looks first, with their license and a
note on the build and its source; the installer installs and removes them.
The Linux .tar.gz carries libvpx and libdav1d in lib/ (RUNPATH
$ORIGIN/../lib, set with patchelf), whose sonames differ between
distributions, and bin/voelin-install-deps, which installs FFmpeg, VA-API
drivers, PipeWire, the desktop portal and a keyring with apt, dnf, pacman
or zypper. The .deb recommends those packages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Watching was slow because FFmpeg's VP8 decoder ran on slice threads: they
split frames by token partitions, and our 4- and 8-partition streams (from
senders with 6 cores or more) took 18-21 ms per 1440p picture against 10 on
one thread, so the decoder fell behind, dropped its queue and waited for
keyframes (35-49 of 60 fps shown). VP8 now decodes on one thread.
The decode thread also converted every picture to RGBA into a new zeroed
buffer (3.6 ms at 1080p, 5.1 at 1440p). It now hands its newest frame to a
converter thread, which converts only what the window can show into
buffers reused three pictures later (0.8 and 1.0 ms).
libvpx's decoder spins its threads (4 threads: 23 and 11 fps on those
streams with a core busy, 2: 143 and 129): at most 2. dav1d with a frame
delay of one gets a quarter of the cores, 1 to 4.
docs/research/stream-fps.md has the measurements and what is left (the
sender's encode rate and bitrate, H.264 frame threads, texture uploads).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
voelin-platform::logs writes <state>/voelin/logs/voelin.log (the previous
runs as voelin.1.log ... voelin.4.log; a run past 20 MiB starts a fresh
file). The desktop app logs our crates' information there (VOELIN_LOG
overrides the filter) and warnings to the terminal as before; release
builds on Windows have no terminal. Settings -> Advanced names the file
and opens its folder; crash reports keep their own Open button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The login page no longer opens when a session is saved: the session is
checked in the background and only an expired one brings the page back.
Continue without an account is remembered (ui.skip_account_prompt) until
the next sign-in.
The page is redesigned: the night artwork with what an account gives
beside the form on wide windows, the form alone on narrow ones; email,
password with a show button, the one-time code when asked, notices as
banners. Settings -> My Account shows the profile instead of a list of
notes.
voelin-myts asks the user service (/user, the route of the official
client) for getAccountData (description, registration, previous sign-in,
badges, devices, avatar file names) and requestAvatarSignedUrl, then
fetches the avatar (HTTPS only, at most 4 MiB). The UI keeps the profile
in the session's keyring bundle and the picture in <data>/account/avatar,
fetches it again only when its name changes, and uses it as the sidebar's
profile picture where a server has none for us.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Versions.csv gains the 121 verified rows of upstream tsdeclarations it was
missing (TeamSpeak 5 betas, 3.6.x) and 6.0.0-beta4.1 [Build: 1779880475]
for Linux, captured from the official Linux client's clientinit. Every row
verifies against TeamSpeak's version-signing key. They are appended, so
the generated Version variants and the indexes keep their names.
native_version() now claims the newest 6.x build signed for the native
platform (Linux 6.0.0-beta4.1, Windows 6.0.0-beta2), so the client shows
as a TeamSpeak 6 client instead of 3.?.?; platforms without one (macOS,
Android, iOS) keep the generic tuple. --client-version generic (and a
bookmark's client_version) claims the old tuple.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
Selecting a server (or saving one) observes it invisibly through its
gateway, else a query login an older version stored; without a gateway it
is looked up from the address (SRV, then /.well-known/tsgw) and observing
starts once found. The Observe button and the menu entry are gone.
The add/edit server dialog no longer asks for a gateway URL or ServerQuery
login: Advanced keeps the name and nickname. A new address drops the
gateway and query login of the old server, so they are looked up again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
A relay (and the gateway's lookup session, for server chat) takes the
author's nickname for each post, sends the text as written and takes its
own name back, so messages read as written by the user in TeamSpeak.
While someone has the nickname it uses Nick1 to Nick3, as TeamSpeak names
a second client of the same name; relay.format ([Nick] text) is only the
fallback when it can take none of them. Posts through one session are
serialized, since each borrows a nickname.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The release workflows (GitHub and Gitea), the Docker images they build in
and the Flatpak manifest no longer set CARGO_BUILD_JOBS=1 and
CARGO_INCREMENTAL=0. CI checks keep the serial build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
The apps (voelin-ui, voelin-android) are 0.0.1-alpha; the gateway keeps
its own version. A pre-release version broke three package builds, now
handled:
- Android: versionCode took "1-alpha" as a number (Gradle failed); it
counts the version without the pre-release (0.0.1-alpha: 1).
- Windows installer: VIProductVersion must be numeric; makensis refused
"0.0.1-alpha.0". package.sh passes VERSION_NUMERIC (0.0.1).
- Debian: "0.0.1-alpha" reads as revision "alpha" and sorts after 0.0.1;
the package version is 0.0.1~alpha.
Draft releases of such tags are marked as pre-releases (GitHub, Gitea).
Changelog: the Unreleased section is 0.0.1-alpha, with myTeamSpeak sign-in,
banners and a known issue. AppStream: the never-released 0.1.0 entry is the
0.0.1-alpha development release.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
- The account website actions said "Could not open your browser" on every
click on Windows (explorer exits with 1 on success) and waited for the
browser to close with a foreground xdg-open: success is that the opener
started, as for files (open_target).
- VOELIN_DEMO_UI's account screens signed in and out for real and could
delete or replace the developer's saved session: demo mode uses an
in-memory secret store and its sign-in and sign-out do nothing.
- A notice from the start (an imported identity) ran out behind the account
prompt: the toast's time starts when the prompt closes.
- After an account asked for a one-time code, signing in was blocked until
one was typed, also for another account: the code field shows but no
longer blocks; a 2FA account without it is asked again.
- SECURITY.md lists the myTeamSpeak secrets in the keyring, the account
service the app talks to, and that servers get the account's id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
- SetMytsIdentity(None) while there is no account notified every voice
connection anyway: in-flight handshakes restarted and connected servers
got an `updatemytsid` clear (and a failed or late reply disconnects).
Still no account is no change now.
- When the account changed right as a handshake finished, the connected
client was dropped without a disconnect: the server kept it, with the old
account, next to the new connection until it timed out. It leaves
properly first now.
- client_meta_data said voelin-core's version (0.1.0), not the app's. It
takes the version the app sets at start (crash::app_version, new).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
schema-api enabled tonic's tls-ring, which turns on rustls' ring next to the
aws-lc-rs that reqwest and str0m use. With two providers rustls cannot pick
a process-wide one, and every TLS client built without an explicit provider
panics: tokio-tungstenite's for wss:// gateways ("Could not automatically
determine the process-level CryptoProvider"), leaving observation stuck at
Connecting. tonic uses tls-aws-lc now (second local patch, VOELIN-PATCH.md);
ring is gone from rustls in Cargo.lock.
voelin-core's one_rustls_crypto_provider test builds a rustls client config
with the app's TLS dependencies (voelin-myts is a dev-dependency there); it
panics as above with tls-ring and passes with tls-aws-lc.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
native_version() took the first signed version containing "3.6" (3.6.0,
build 1647595742, from 2022) while its documentation and its test said the
generic tuple (3.?.? [Build: 5680278000]); the test failed. Main sent the
generic one (tsclientlib's default), whose build passes a server's minimum
client version; a real old build may be refused. Each platform's generic
tuple again, matched exactly (not the Windows DEBUG one).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
The merge left the channel-banner tests calling Session::new without the
account identity it takes since the myTeamSpeak branch. The test helper
passes an open source with no account, as the engine does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
Conflicts with the channel banners on main, both kept:
- crates/proto/UPSTREAM.md: myTeamSpeak's local patch is number 14, after
the channel banners' 13.
- voelin-core/src/voice.rs: both test modules.
- ui/app.slint: the mobile shell hides behind the account prompt and keeps
the channel chat's banner.
- ui/shells/common.slint: the user card counts a signed-in account as named
and shows our avatar, the person icon only without one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
The checks no longer run on pushes, pull requests or a schedule, on
GitHub or Gitea: ci.yml, audit.yml, fuzz.yml and Gitea's ci.yml run by
hand only (Run workflow). Only the package builds still run by
themselves, on v* tags (release.yml, docker.yml, Gitea's release.yml),
and the release workflows no longer run the checks first: GitHub's drops
its checks and Windows test jobs, Gitea's the shared checks step. The
docs say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
- A picture download sent to the voice connection while it closes (or
still queued when it ends) was dropped without an answer: its cache
key stayed in flight and every later fetch of it, in any session,
waited until the app restarted. The request now fails when dropped
unanswered (ImageDownload), so the retries fetch it again.
- Only top-level channels are spacers, as in TeamSpeak: a sub-channel
named [cspacer…] keeps its name, its lock and its member count. Chat
tabs, the voice headers and "In …" use the same title as the tree.
- A banner covered its row's own background: our channel and the hovered
row are tinted over the artwork again. A locked centred spacer shows
its lock.
- A picture that cannot be decoded is remembered as such instead of being
read again on the UI thread at every refresh (every talking change);
avatars and icons that arrive again are decoded again.
- Cache::icon no longer opens and touches the file on every refresh of
the server list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
Gitea refuses secret names that start with GITEA_ or GITHUB_, so the
GITEA_RELEASE_TOKEN secret the release workflow read could never be
created and every tag's draft release failed after the builds. The
secret is RELEASE_TOKEN now; the script still receives it as
GITEA_RELEASE_TOKEN.
The Gitea server stops any task older than [actions] ENDLESS_TASK_TIMEOUT
(3h by default) whatever the runner's timeout says, which would end the
eight-hour release job: docs/ci.md says to raise it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
Not every banner arrived:
- Banners kept in the server's own files are linked as ts3image://
(TeamSpeak 5 and 6: ts3image://<host>?port=…&channel=…&path=…&filename=…,
the file browser's ts3file:// link with its scheme changed; TeamSpeak 3:
ts3image://<name>?channel=…&path=…). Only http(s) was fetched, so these
never were. They now come through the voice connection's file transfer
(files::server_image), cached under the server and the address.
- A web download had 16 MiB at most and 30 seconds in all, while up to
eight run at once: a large animated banner, or several on a slow link,
failed and failed again on every retry. Pictures may now be 64 MiB and
go to disk as they arrive instead of into memory; a download fails when
nothing arrives for 20 s or when, after its first 30 s, it averages less
than 32 KiB/s. Accept names the formats the UI decodes.
- Pictures over file transfer had 30 seconds too; now 30 s plus their
size at 32 KiB/s, and at most 64 MiB.
The voice protocol's MAX_DECOMPRESSED_SIZE goes back to 2 MiB: it bounds
compressed commands (the channel list), not pictures, and QuickLZ reserves
the size a packet declares, so 1 GiB let any server make the client
allocate a gigabyte with one small packet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
Finish banner rendering, image cache invalidation, avatar/icon wiring and image-format support. Bound raster decoding, retain readable text contrast, and recover failed downloads while stopping obsolete reload timers.
Validated with 168 library tests, a private TS6 banner lifecycle test including the real 60-second reload, desktop builds, strict scoped Clippy, formatting, license notices, independent source review and six headless desktop/mobile renders.
On the Windows CI runner jq ends its lines with \r\n; `tr '\n' ' '`
removed only the \n, so every crate name kept a \r and cargo refused
`voelin-android\r` as a package name, failing the Windows clippy job.
`jq -j` writes the list with no line breaks at all.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>