Commit Graph
222 Commits
Author SHA1 Message Date
faumarayandClaude Sonnet 5.5 efacb41894 Correct the record of a reconnect's replay and of the live module's prerequisite
Section 16 of the design said that after a reconnect to a v1 host the
display is right and only the store is wrong, because Dedup drops the copy
of the event. That holds only for the messages within 4 s of the newest one
seen: Dedup evicts what is older than that relative to the incoming
message, so a replayed older message is shown again as a live Event::Chat
and stored again. Corrected in 4.4, 16.1, 16.4 and F3 (16.5), with the two
ignored tests that pin the display and the store, and in P17 and H10: only
the CHAT-cursor resume cures both, and only within an epoch.

Also: the introduction of section 16 names the two production changes (F1,
F2), not three; the move-back test now sends two messages 10 s apart and
the record says what the single-message version did not prove; the live
module raises the anti-flood limits itself and the record says so and what
ran (a fresh stack before and after, in series and in parallel, and the
smoke script before and after on freshly reset stacks); the toolchains of
the review round, the nightly that replaced 2026-10-19, and the per-commit
checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 04:54:16 +03:00
faumarayandClaude Sonnet 5.5 2089f7ceba Record slice 2 in the design of the session seam
Section 16: what the tests on the fake host and the TeamSpeak sessions
cover, the verdict of every case of the conformance suite on both
development servers with the reason it was observed to fail or be skipped,
where the code differs from 9.2 and 9.3 (the CHAT re-subscription is a full
sync, a reconnect resumes nothing, the conformance and live tests are
in-crate), the three things the tests found (our own voice played back, a
session made outside an engine ending by itself, a v1 host's replay stored
twice after a reconnect, the last one open), the protocol and second-half
follow-ups, the deliberately broken translation, and what ran.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 02:29:40 +03:00
faumarayandClaude Sonnet 5.5 bfc52e2688 Record the third review round in the design of the session seam
Section 15 lists the seven findings with their fix and test, what the fixes
leave as it was (the move shortcut and the window it keeps), and what ran:
format, clippy, tests and the workspace check on 1.94 and nightly, and the
smoke and live runs against fresh dev servers. The other sections say what
changed: the media and push channels have no order between them (4.2 step 9,
13), the second changed test (5.4), the move rule and the transfer deadline
(3.1), the nameless sender (5.2), the address rules (4.2) and the narrowed
features (4.7).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 23:21:07 +03:00
faumarayandClaude Sonnet 5.5 b5ea0c3e95 Send a scope that is bigger than the push channel in bigger chunks
A sync is sent whole or not at all, so that a scope is never left half sent;
that needs the channel to have room for every frame of it. A scope with more
frames than the channel holds when it is empty (more than 16 frames of 256
entities on the smallest channel) could never be sent and stayed lagged for
ever. The chunks of such a sync are now as big as the channel needs, so every
sync fits an empty channel. A test syncs a SERVER scope of 5,000 channels over
the smallest channel.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 06:53:26 +03:00
faumarayandClaude Sonnet 5.5 88f58ea468 Record the review round in the design of the session seam
Sections 3, 4.1 to 4.4 and 13 say what changed (notify, the talking hint, the
address text, the close reason of a connect, the chat scope limit and the SyncEnd
of a CHAT scope, the seat across tsclientlib's reconnect), the risk table has the
lagging consumer, and section 14 lists the eight findings with their fix and
test. Follow-ups P13 (a speaking hint for the own channel) and P14 (what a
backend that reconnects inside a session tells its consumer) are for the
protocol repository.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 06:34:17 +03:00
faumarayandClaude Sonnet 5.5 9bec557c81 Record the second smoke and live runs in the design
The first run of the adapter's smoke failed the stream directory scenario (the
fix is the previous commit); the second ran every per-server scenario of
scripts/it-smoke.sh on TeamSpeak 3 and 6 to the end, and the serial live tests
of voelin-core passed again (live 6, media_live 2, stream_live 3,
voice_features 3). The script's last stage fails as it does on the baseline
(ts6_banners, when the live tests run in parallel).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 01:48:13 +03:00
faumarayandClaude Sonnet 5.5 8c62030e5b Hold the stream task's reports until the engine has announced the connection
The first smoke run of the adapter failed its stream directory scenario (the
late viewer's WatchStream was refused with "not connected with voice"), and an
alternating probe of that scenario with the baseline binary and this one on the
TeamSpeak 6 dev server failed 3 of 6 for this branch and none of the baseline's
four runs the server's clone limit left alone.

The cause is an ordering the adapter lost. The TeamSpeak 6 stream task puts
Event::StreamsChanged on the engine's bus itself; behind a session the engine
hears of the connection only after the connect sequence (several requests
through the driver), while the stream task lists the server's streams as soon as
the server tells it, so a client that acts on the first list asked for a watch
before the engine knew it had voice.

The ts_session driver now holds the bus events of a link with streams that are
no answer to a request until the engine's first stream command (session.rs
sends one in its handling of Connected right after emitting the state), or for
three seconds. Three unit tests pin the hold, its end, and that a link without
streams is not held. The same probe passes 8 of 8; docs/session-seam.md section
13 records it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 01:41:14 +03:00
faumarayandClaude Sonnet 5.5 bc9ccbc85e Measure the voice path through both adapters; test the engine on a registered connector
- A unit test frames 5,000 Opus packets each way through SessionLink, the
  TeamSpeak session and the recording link and prints the cost per packet
  (about 7 microseconds to the host, 10 from it in a debug build; the test
  bounds each direction at 500 microseconds). docs/session-seam.md section 13
  records the figures, which were the one thing slice 1 had not measured.
- tests/session_backends.rs: the engine over voelin-proto's FakeConnector
  through Engine::start_with_backends (connect, server name and backend,
  channels, a move, disconnect), and the registry's error text for an address
  no connector serves.
- The error of a TeamSpeak connector given an address that is not a TeamSpeak
  one no longer prints the query, where a channel password rides.
- The note on the two library tests that need the name localhost to resolve to
  127.0.0.1 says so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 00:41:04 +03:00
faumarayandClaude Sonnet 5.5 1b7abdf4c7 Record slice 1 in the design; consume a host that is no TeamSpeak one
- docs/session-seam.md: the status line, and section 13 with how the code
  differs from the design, a follow-up for the protocol repository (P12), and
  what ran against the baseline.
- docs/architecture.md and the crate docs describe the engine on the Session.
- A departed client's talk state is dropped before the new snapshot replaces
  the table it is looked up in.
- The backend of a host that names none is its product and version.
- A unit test drives the engine over the protocol repository's FakeSession
  through the registry: connect, presence, a move, chat in the channel,
  disconnect.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 22:25:56 +03:00
faumarayandClaude Sonnet 5.5 fb8e6b63dd Take voelin-model from VoelinProtocol and add voelin-proto
voelin-identity, voelin-proto and voelin-model now come from one revision of
the protocol repository (main c8e0e5a: the session seam voelin_proto::link
with its account types, and the replica in voelin-model). The client's own
crates/voelin-model is removed: the protocol's crate is a superset, identical
in presence, server, chat and percent, and differs in badges.rs, link.rs and
tree.rs only by a doc comment and two equivalent expressions, and adds the
perms and replica modules. Every crate that used it takes
voelin-model.workspace = true. voelin-core depends on voelin-proto (and, in
its dev-dependencies, on the test-util fakes), which the engine will consume
in the next commits.

Manifests, the lock file and docs only: no source change. THIRD_PARTY_NOTICES.md
is unchanged (scripts/notices.sh --check: up to date).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 21:26:06 +03:00
faumarayandClaude Opus 5.5 38473b761d Design the engine on voelin_proto::link::Session (docs/session-seam.md)
The first half of plan step 7: every LinkCmd, LinkEvent and StreamCmd
variant mapped to the Session API and back, with the decision for what v1
cannot carry yet (streams on a local port, TeamSpeak-only connect options
on the ts3server:// link, presence fix-ups F1-F10 through Foreign);
SessionLink over a Backends registry on the engine side, LinkSession over
TsLink on the TeamSpeak side; connect, close, error texts, Features and
LinkStats; RTP framing of voice against voelin-audio's packets; credentials
with the account left as a hook; files through read_file and write_file;
the FakeLink tests through the adapter, then on FakeSession and FakeHost,
and which conformance cases the TeamSpeak session can run; three slices
with acceptance, and the follow-ups for the protocol repository and for
the move to VoelinGateWay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:47:14 +03:00
faumarayandClaude Sonnet 5.5 670ed9f29b Keep the stored bytes when a sign-out unbinds a row whose data is not text
KeyStore::get reads a data column that is a BLOB, or TEXT of bytes that are no
UTF-8, as text with the odd bytes replaced. The sign-out's unbind step puts that
text back with the binding removed; REBIND (data = ?3) matches nothing for such
a row, so put fell through to the full write: the lossy string replaced the
original bytes (invalid UTF-8 became U+FFFD, a BLOB became TEXT), and for a
TeamSpeak row the replaced text is no identity, so check_teamspeak refused it
and the sign-out could never finish for that row.

- put() now tries a second statement when REBIND changed nothing:
  rebind_stored_bytes reads the stored data raw and, if it reads (lossy_text) as
  exactly the blob's JSON, updates only the four binding columns by (kind, uid)
  (REBIND_BYTES) and returns without check_teamspeak, so the original bytes are
  kept and the TeamSpeak case unsticks. Any other JSON is a new identity for the
  uid, checked and stored as before.
- The doc sentences at the top of keystore.rs (what a binding-only put and a
  non-text data column mean) and docs/architecture.md are narrowed to what holds:
  the bytes are kept for the text get returned, any other text replaces them.

Tests: the gate's probe (a bound voelin row with data x'7b2276223aff317d', two
future-kind rows, one a BLOB and one TEXT of no UTF-8, and two TeamSpeak BLOB
rows, one of a good identity and one of garbage): sign_out(Auto) and
sign_out(Forget) are Ok and every data value is byte-identical afterwards; a put
of what get read changes the binding and keeps the bytes; a put of other data is
checked and replaces them. The three tests fail on the previous code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 14:35:46 +03:00
faumarayandClaude Sonnet 5.5 0ac4095143 Bound the checkpoint after a removed key to a short wait, once per sign-out
Store::truncate_wal ran PRAGMA wal_checkpoint(TRUNCATE) with the connection's
busy timeout of five seconds. A checkpoint that truncates holds the writer lock
of the log while it waits for readers, so a reader that kept a snapshot made
every removed row cost the whole timeout with the store's mutex held, and other
writers failed with "database is locked" meanwhile. KeyStore::sign_out removes
up to four rows (the synced copies, the device key, the record) and ran the
checkpoint after each: 20 s and failing writers in the gate's probe.

- truncate_wal now sets a busy timeout of 150 ms (CHECKPOINT_WAIT) around the
  pragma and restores the timeout the connection had (read back with PRAGMA
  busy_timeout, so a value set by a caller survives) whatever the checkpoint
  returned. A blocked checkpoint still leaves the delete standing and warns.
- SqliteKeyStore overrides sign_out: the trait's own steps run on a private
  SignOutPass whose remove deletes the row and notes it, and the sign-out
  truncates the log once after its last step (also when a step failed, the
  removals before it have happened). KeyStore::remove on its own still
  truncates after the row it removed.
- The three sentences that said the bytes "stay in the log until the next
  checkpoint" (keystore.rs, Store::truncate_wal, docs/architecture.md) are
  corrected: they go when a later checkpoint truncates the log, later writes
  overwrite those frames, or the last connection closes and the log is deleted.

Tests: with a raw connection holding a read snapshot, a sign-out with four
removals returns in about 170 ms (it took 20 s) while a writer on another
connection with a one-second busy timeout writes throughout without an error
(it got "database is locked" nineteen times), and the next removal after the
reader is gone truncates the log again; a unit test shows a blocked
truncate_wal returns in under a second, leaves the log, and restores a
non-default busy timeout, and that the same call truncates once the reader is
gone. Both tests fail on the previous code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 10:21:49 +03:00
faumarayandClaude Sonnet 5.5 3c59f24608 Refuse to store the device key as a synced copy
KeyStore::sign_out deletes every identity bound with synced = true in its
first step, before it reads the account record that says which Voelin key is
the device key and whether it predates the account. A device key stored with
synced = true was therefore deleted even where the record says to keep it.
Nothing in this crate stored such a key, but the store accepted it.

SqliteKeyStore::put now refuses, with an error that names the key and the
record and says why, a voelin blob with synced = true while an account record
names its uid as the device key, and also while an account record cannot be
read (it may name the key, and the sign-out would delete it on that guess).
The state is also reached from the other side, so a put of an account record
whose device key is already stored as a synced copy is refused as well. A
binding with synced = false is accepted: a sign-out unbinds it and then follows
the record. The check runs before the binding-only fast path, so a put of the
key's own data cannot rebind it as synced.

Documented in keystore.rs and docs/architecture.md. Tests cover the refusal
for records that keep and that delete the key (the error text, the row left
untouched, the sign-out still following the record), another key that may be
synced, no record or a record naming another key, a record put naming a synced
copy, and unreadable records; the three refusal tests fail without the check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 08:31:36 +03:00
faumarayandClaude Sonnet 5.5 248955b85c Overwrite a deleted key and truncate the log after it
SQLite's secure_delete was off: a deleted row stayed in the free space of its
page, and the frame of the write-ahead log that held that page kept the key
until the log was reset. Every connection (Store::init) now sets
secure_delete = ON next to foreign_keys, and Store::delete_identity and
KeyStore::remove (how a sign-out deletes the device key, the synced copies and
the account record) run PRAGMA wal_checkpoint(TRUNCATE) after a row was
deleted, so the page with the overwritten row is copied into client.db and the
log is empty.

The truncate is best effort: the delete has happened and a sign-out must still
finish, so a checkpoint that another connection blocks, or that fails, only
logs a warning that the bytes stay in the log until the next checkpoint.
Keys deleted before this change stay in the free pages until a VACUUM; the
architecture notes say so.

Tests read client.db and client.db-wal as bytes: the PKCS#8 text of a Voelin
device key (sign-out with Auto, and with Forget), a synced TeamSpeak copy's key,
a TeamSpeak identity deleted by Store::delete_identity and a key removed
through KeyStore::remove are present before and in neither file after, another
key is still stored and the log is empty; and secure_delete reads 1 on every
connection. Each raw-file test fails with either measure taken out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 08:27:56 +03:00
faumarayandClaude Sonnet 5.5 4944a0694b Let a sign-out finish when a row's binding columns cannot be read
SqliteKeyStore::list() failed on the first row whose binding columns were
damaged outside this crate (synced = 2 on the account record, say), and
KeyStore::sign_out starts with list() through bound_to(): it never reached the
record, so it could never finish, and DeviceKeyChoice::Forget did not delete
the key it was given either. get() failed the same way where sign_out reads
the record and the device key.

A row whose binding columns cannot be read (refused by
AccountBinding::from_columns, or a value of the wrong type) is now listed and
read as unbound, with a tracing warning that names the row and the reason and
quotes no content. Unbound is the reading that never deletes on a guess: such
a row is not deleted as a synced copy, and a put of it writes four good
columns. A data column that is not text is read as text with the odd bytes
replaced, so a record that cannot be read is deleted by the trait's sign_out
instead of its read failing; a row whose kind or uid is not text cannot be
addressed and the list leaves it out with a warning. list() now fails only
when the database does.

Tests: the gate's probe (UPDATE identities SET synced = 2 WHERE kind =
'account', then sign_out with Auto and with Forget on a store with
bound_existing_key true and false), more damage to the record row, the device
key row and a synced copy, and the unreadable data and kind/uid cases; the
test that asserted the old precise errors of get() and list() now asserts the
unbound reading. The six new tests fail on the previous keystore.rs.

voelin-store gets the tracing dependency (already in the lock); Cargo.lock
changes, THIRD_PARTY_NOTICES.md is unchanged by it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 08:23:55 +03:00
faumarayandClaude Sonnet 5.5 4ab019fcb8 Document the key store's error text, the rebind put and the notices step
architecture.md: a refused TeamSpeak blob says only that it is refused, never
its JSON (a private key), and a put that changes only a row's binding does not
read the JSON again, so a damaged row cannot keep a sign-out from unbinding
it. building.md: moving the protocol pin commits Cargo.lock together with the
notices scripts/notices.sh regenerates; the CI notices job fails on a stale
THIRD_PARTY_NOTICES.md, which is what 015c938 did.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 06:21:45 +03:00
faumarayandClaude Sonnet 5.5 87f4a574e6 Document the identity store in architecture.md and the changelog
A new Identities section says what the identities table holds now (the kinds,
the binding, the two schema versions and whose SQL they are), what Store and
SqliteKeyStore each do with it, what the TeamSpeak level and the sign-out
mean on this table, and that the engine and the UI do not use the key store
yet. The voelin-store row of the workspace table names the new content, and
the changelog notes the migration and the new access requirement for the
private protocol repository.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 05:52:00 +03:00
faumarayandClaude Sonnet 5.5 015c938212 Depend on voelin-identity from the private VoelinProtocol repository
voelin-store will keep Voelin identities and the signed-in account next to
the TeamSpeak ones (Phase 4 step 2, protocol Phase 2 tasks 7 and 28), through
the identity blobs and the KeyStore trait of voelin-identity.

The dependency is a workspace git dependency on the SSH URL that the
protocol's docs/development.md names, pinned by commit (64808cc, the head of
its main when task 28 was accepted), so that a per-developer
.cargo/config.toml [patch] can redirect it to a sibling checkout. The recipe
is in docs/building.md; .cargo/ is ignored so it is never committed.
deny.toml allows that one git source. CI and the Docker builds need read
access to the private repository (a deploy key or a token); docs/ci.md and
docs/building.md say so.

Cargo.lock gains voelin-identity, voelin-proto, x509-cert 0.3 and
der_derive 0.8.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-20 05:41:52 +03:00
faumarayandClaude Sonnet 5.5 ff054008c3 Settle the small leftovers of the earlier reviews
CI / Linux checks (push) Failing after 20m23s
- jitter.rs: short_packet_fuzz takes payloads of 0..=100 bytes (was under
  12) and 3000 iterations (was 500).
- ui-review.md: the whisper row pointed at voelin-audio/src/encode.rs:90;
  the C2S-only packet is built by out_audio in voelin-core/src/voice.rs.
- mixer.rs: the module doc's first paragraph is reflowed, and
  Mixer::set_priority names its parameter talkers, not clients.
- stream.rs: api_types_convert_at_the_boundary asserts the remaining
  variants: every ViewerState, StreamKind (both ways) and LeaveReason
  (alone and inside EndReason::Removed).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 18:09:21 +03:00
faumarayandClaude Sonnet 5.5 cfd9cba2dd Document what is still TeamSpeak's in the seam and the real event order
link.rs and architecture.md now list every part of the ServerLink seam that
still has TeamSpeak types or shape: ConnectOptions.identity and
client_version, the account proof in LinkCtx, the u16 client ids, the
Presence snapshots, and the stream vocabulary of voelin-stream (PeerConfig,
MediaFrame, VideoFormat, VideoCodec, FrameSource). StreamAudioEnded joins the
event list.

Disconnected is no longer promised to be the last event: the stream task is a
task of its own that winds down after the connection, so OwnStream(Ended) and
StreamAudioEnded may follow it. The docs say TsLink ends the stream task as
the connection's loop ends (usually before Disconnected, not always) and that
the session does not depend on the order: it ends our stream and the watched
audio itself on Disconnected and ignores what the link says after it. The
reconnect order (StreamCmd::Shutdown before Disconnect) is documented too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 18:06:54 +03:00
faumarayandClaude Sonnet 5.5 6c1898bf5a Put the voice source behind a ServerLink
The session no longer spawns the TeamSpeak connection itself. link.rs adds
ServerLink (spawn(options, ctx, cmds, events)) with LinkCmd and LinkEvent,
VoiceCmd and VoiceEvent moved and renamed, plus ConnectOptions (VoiceOptions
stays as its name for the app), LinkCtx and Remote. TsLink (ts_link.rs) is
the TeamSpeak implementation and the engine's default; Engine::start_with_link
takes another.

The stream task moves inside the connection: voice.rs spawns it when the
server has streams, feeds it the server's notifications and the clients'
channels, and sends its requests. The session reaches it only through
LinkCmd::Stream(StreamCmd) and hears of our own stream (OwnStream) and the
audio of watched streams (StreamAudio) as link events, so the link holds no
handle on the audio thread. stream.rs keeps its tests, adapted to the split
of StreamInput into StreamCmd and the link-private input.

tests/link_fake.rs drives the session with an in-memory link: connect,
presence, commands, a message sent and echoed, a message that comes twice,
history, and a replaced connection, without a TeamSpeak crate. The
architecture doc describes ServerLink and the planned move of TsLink to
VoelinGateWay and the QUIC link of VoelinProtocol.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:54:08 +03:00
faumarayandClaude Sonnet 5.5 da372dfe10 Give the stream API core-owned types
Command and Event no longer carry voelin-stream's types. voelin-core owns
StreamInfo, ViewerInfo, StreamSetup, StreamKind, ViewerState, EndReason and
LeaveReason (stream_types.rs) with u16 client ids, a viewer's SRTP profile
as its name and its codec as voelin_media::Codec; stream.rs converts at the
boundary. Command::SetSrtpProfiles takes profile names, which the stream
task parses.

EncodedFrame, LayerSpec, LayerId and LayerSet move into voelin-media
(stream::EncodedFrame, layer); voelin-stream depends on it and re-exports
them, so the engine, the stream sessions and voelinctl share one type. The
crate is now a plain dependency of voelin-core (feature media keeps the
module and WHIP), and its str0m feature is gone with str0m always there.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:01:24 +03:00
faumarayandClaude Sonnet 5.5 b0f95a384f Take ServerFlavor out of the engine API
Event::ServerInfo carried voelin_model::ServerFlavor, a TeamSpeak notion. It
now carries backend: BackendInfo { product, version } (plain strings, with
label() for a sentence) next to the capabilities. The voice source decides
the flavor from the version string (voice.rs backend_of) and puts the
backend and capabilities in VoiceEvent::Connected; session.rs forwards them
and no longer classifies anything.

The UI reads backend.product for a server's chip (ServerItem.flavor becomes
product, as does the session view's field) and backend.label() for the
"Connected to ..." status line; the sample data builds its own backend and
the TeamSpeak 6 capabilities, pinned against the flavor's by a test.
voelinctl's engine mode prints the label. ServerFlavor stays in voelin-model
for the gateway and the voice source.

Shown text is unchanged. New tests: the voice source's backend for TS3, TS6
and an unrecognised version, BackendInfo::label, the status line, the sample
servers' backends, and the server item's product.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 13:59:20 +03:00
faumarayandClaude Sonnet 5.5 df7be67d4c Move voice packet types into voelin-audio
voelin-audio no longer depends on tsclientlib or tsproto-packets. Its
boundary is now plain types in packet.rs: TalkerId, VoiceCodec, VoicePacket
(talker, seq, codec, whisper, payload) and EncodedVoice (codec, payload; an
empty payload ends the transmission). The jitter buffer moves from
tsclientlib::audio into jitter.rs and reads VoicePacket fields; the encoder
returns EncodedVoice and the mixer is keyed by TalkerId.

In voelin-core, voice.rs is the only place that wraps EncodedVoice into a
TeamSpeak audio packet and reads one into a VoicePacket (codecs other than
Opus are dropped there, where the jitter buffer rejected them before);
audio.rs and session.rs work on the new types. voelinctl converts at its
own edge. Behaviour is unchanged: the one-hour drift simulation gives the
same latencies as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 13:06:46 +03:00
faumarayandClaude Sonnet 5.5 1bee9c94e8 client: myTeamSpeak support leaves the client
CI / Linux checks (push) Failing after 1s
The public client repository must not carry third_party/schema-api:
TeamSpeak's non-public myTeamSpeak API protocol definitions, which came
without a licence. The account sign-in built on them (crates/voelin-myts)
goes with it, since nothing else in the client used that snapshot.

Removed: third_party/schema-api, crates/voelin-myts, the account module of
voelin-ui (sign-in, saved session, profile, avatar, badges, User Tag), the
login page at start and the live account test of voelin-core. The workspace
members, default-members and exclude lists, both manifests and Cargo.lock
no longer name them (tonic, prost-build and their dependencies drop out of
the lock file and THIRD_PARTY_NOTICES.md; about.hbs has no schema-api
section).

Settings -> My Account keeps the identity in use and shows a note that
account sign-in is not available in this build. The Slint account screens
stay, fed neutral values (Bridge.myts keeps its default: signed out, not
available, no prompt), so the account can return without redoing them. The
TeamSpeak protocol parts in tsproto/tsclientlib (myTS ID, other users'
badges and avatars) are untouched.

The account returns later through the gateway library (VoelinGateWay); the
research notes in docs/research/myteamspeak.md stay and say so. CHANGELOG,
docs/ui.md, docs/identity.md and SECURITY.md no longer describe the account
as present. A session an earlier build saved stays in the system keyring
(item myts/session) until the user deletes it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 00:17:05 +03:00
Claude d0cd3f6cfd ui: the Servers tab is titled Servers, and the voice card names only the channel
On the phone's Servers tab the top bar showed the server's name and counts,
which the server card right below it shows too, and the voice card named
the server again ("Chill Zone / Nightfall Guild"). The top bar now says
Servers, as the Activity and You tabs say their names; the server card
stays the one place for the name, the counts, the banner and its Edit
server / Add a server menu. The voice card shows only the channel, on
desktop too; while connecting, before there is a channel, it shows
Connecting… alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 18:53:08 +00:00
Claude 22fac502fa release: one Cargo job on GitHub's runners again
The Release run on this branch lost its Linux and Flatpak runners
about 30 minutes in, while the generated UI library compiled next to
other crates: the runners have 16 GB and were killed. The same jobs
passed with one job (8359ba8). The GitHub release workflow sets
CARGO_BUILD_JOBS=1 again, and its Flatpak job adds it to the manifest
before building, since flatpak-builder does not pass the job's
environment on. The Gitea workflow, the Docker images and the manifest
itself keep Cargo's default job count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 17:35:16 +00:00
Claude 034ee44e60 ui: the phone's voice screen gets one header, room for chat and Hold to talk
The shell's top bar is the only header on the voice screen: Back, the
channel on its banner, the server below it. ChannelBar and ChatHeader are
gone, Pinned Messages and Topics are entries of the More menu, and Leave is
only in the bottom bar. The people strip and the scroll cap leave the chat
about 320 px at 390 x 844 (it had about 190).

With push-to-talk, Hold to talk is the bottom bar's middle control and the
composer's microphone button is gone; Go Live and Share are one Share
control that opens the share menu, as on desktop; the microphone button
reads Mic on or Mic off.

The audio form was only filled when the settings opened, so every start
showed push-to-talk controls whatever the stored mode; the transmit mode is
now set at start and when the setting changes.

VOELIN_OPEN=more opens the More menu for screenshots. The menu is not in a
layout, so Slint centred it in the bar and it opened 30 px low; it now sits
at the bar's corner.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 17:34:15 +00:00
Claude a6caffa579 ui: streams pop out into a window of their own
Pop out now opens ViewerWindow: the player alone, titled with the
stream, which a pin keeps on top of other windows (always-on-top). The
main window goes on; the stream's card on the voice page says it plays
in its own window, with Bring back; closing the window brings it back
too, on the stream's server, and Leave closes it. Pictures go only to
the window that shows the player, so none is scaled twice; full screen
and the cursor follow that window.

The stream callbacks take a Bridge, the models attach to any Bridge,
the theme is copied to every window of its own, and one main-window
close handler, installed at start, closes the studio's and the stream's
windows (the studio installed its own before). Desktop only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 14:20:36 +00:00
Claude d404cb06a7 ui: a theatre mode for the stream viewer
What "pop out" did, filling the window without the shell, is now theatre
mode (Nav.theatre) with a button of its own in the player. The chat stays
under the picture, the members button goes, and it ends with the viewer;
a narrow window keeps the phone layout. Escape leaves full screen, then
theatre mode: the window's keys take the focus when the viewer moves to
the whole window, into full screen or from it back to theatre mode, since
what had it is gone.

Until the viewer gets a window of its own, Pop out toggles theatre mode
too, and VOELIN_OPEN=popout is watch,theatre.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 11:45:04 +00:00
Claude 0aee710c19 ui: the stream viewer's controls hide while you watch
The controls fade 2.5 s after the pointer last moved over the picture and
come back when it moves; in full screen the cursor hides with them, and
on a touch screen a tap on the picture shows or hides them. A status or
the stream's end keeps them, and so does a pointer that was never over
the picture, so screenshots still show them.

In the shell the streamer, title, viewers, LIVE and the quality move from
the picture into the header, so nothing covers the picture at rest; in
full screen (and on the phone) they stay over it under a taller, darker
shade and hide with the controls. The streamer's avatar now comes from
the engine's cache for any streamer, also one outside our channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 09:39:26 +00:00
Claude e1b4a207c5 ui: stream cards show the streamer's avatar on a painted scene
TeamSpeak streams carry no thumbnail, and a peek would be a join request
the streamer sees, so a stream card not being watched now shows the
streamer: their avatar, ringed, with what they share, on the art scene
tinted with their colour (Art moves from home.slint to components). The
compact rows and the phone's Activity cards show the avatar too, and our
own stream from the Stream Studio shows the studio's picture while live.
StreamItem gets avatar, initials, tint and studio; the kind label is the
pure vm::streams::kind_label, used by Home as well.

In the demo, the studio going live announces our stream, and studio:live
starts the studio itself, so studio:live,server,voice shows the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 07:21:20 +00:00
Claude 26c7d9c97c ui: a call bar on the voice page, and a smaller stage for the chat
The desktop voice view gets mute, deafen, share, the voice settings and
Leave under the people and streams (VoiceButtons gains round and filled);
Voice Settings and Leave leave the header, which gets a Smaller stage /
Larger stage button. The smaller stage, one row of compact people and the
streams as rows, gives the chat about 200 px back and is stored as
ui.voice_compact. Windows under 800 px tall always use it: the larger
stage and the bar left no room for the chat or the composer there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 04:57:53 +00:00
Claude 923f119ff6 ui: one Participant and StreamCard for desktop and phone voice
Participant and StreamCard move into screens/voice-parts.slint with a
`compact` look that replaces the phone's VoiceMember and StreamPrompt, so
the compact stage and the phone's voice screen can share them. The phone's
VoiceControl goes: IconButton and ActionButton get `alarm`, the filled red
Leave, and `edge`; ActionButton also gets `icon-size` and `checkable`.

The screenshots are unchanged. The phone's voice-bar buttons now behave
like the You page's: hover, keyboard focus, surface-4 while pressed, and
an accent caption while Sharing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 03:38:52 +00:00
Claude 7ab43bbf60 Merge PR #11: myTeamSpeak avatar, badges and User Tag; banners; gateway speed and logs
Conflicts and how they were resolved:
- CHANGELOG.md: both sides' lines kept under [Unreleased], each in its
  section; the badges line says TeamSpeak 6's verified badges come first.
- crates/proto/UPSTREAM.md: #11's myTeamSpeak presentation stays patch 15;
  this branch's privilege key (default_token) patch becomes 16.
- voelin-core web.rs: #11's downloader (retry hints, revalidation, proxies,
  per-host limits) as it is. The chat pictures' size limit sits on top as
  web::fetch_chat_picture, which narrows #11's Limits; fetch_within takes
  them by value. The badge pictures go through #11's fetch like banners.
- voelin-core session.rs: both sides' fields kept (chat_pictures and
  unfetchable). Chat pictures ([img]) are an ImageRequest of their own
  (ChatPicture) instead of sharing Picture with banners, so #11's banner
  policy (retried every 15 minutes while shown, logged by address) does
  not apply to them: they keep the 1, 4, 16 s retries and are checked
  against the size they were asked for; their failures are logged by host
  at debug level. Badge pictures stay Pictures next to #11's banner loop
  (with its unfetchable-scheme log).
- voelin-ui servers.rs: #11's imports (Instant, debug) with this branch's
  (no SharedString).

Where the two badge features meet: the presence's badges are now
voelin_model::shown_badges, TeamSpeak 6's client_signed_badges (what #11
sends for our account, and other TS6 users' verified badges) first, then
client_badges, each once; so the badges chosen in Settings → My Account
show in the tree and on the member card like other people's.

Also: docs/ui.md describes My Account's badge choice and User Tag, the
new ui.image_cache_mb default (256), and the picture downloads as #11 left
them (16 at once, 6 per host, 128 MiB, the new timeouts, banner and badge
retries, proxies, BMP and ICO, scaling down past 4096 pixels) with the
chat pictures' own retries; the demo's login:account switch fills in a
badge choice and a User Tag for screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 02:14:08 +00:00
Claude 48bc99a594 ui: private chats on the Direct Messages page, not in the chat tabs
The server's chat strip shows the server chat and the channel chats.
Private chats stay tabs of their session, so history, the composer and
previews keep working, but the strip leaves them out (vm::chat::strip)
and a private chat is current only while the Direct Messages page shows
it; leaving the page goes back to the strip's last chat. The rail and the
Chats tab count only the server's and channels' unread messages; private
ones count on Direct Messages and, on the phone, on the Home tab.

Closing a tab left of the selected one no longer selects the next chat.
Voice connecting while a private chat is open keeps that conversation
(it became the voice channel's chat, and the composer sent there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-08 00:57:26 +00:00
Claude 2e3ddc11ec ui: pins and topics as icon buttons with a count in the chat header
The labelled Pinned Messages and Topics buttons took about 300 px of the
header, so the channel's topic was cut first. They are icon buttons now,
named in their tooltip, with how many pins and topics the chat has
(Bridge.pins-count and topics-count, -1 until the gateway answered).

The counts are asked for when a chat comes on screen (a tab, a server, a
gateway that connects, another server after a delete), not only when a
drawer opens, so they show before. An answer for a chat that was closed
meanwhile is dropped, instead of reopening it as a tab named Server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 22:03:43 +00:00
Claude 14ea206521 ui: a colour per server, one letter in small avatars, one channel icon
Servers took their colour from a palette of people's colours by a hash
of the name, so two of the three sample servers were the same blue.
vm::servers::tints gives each server, in the rail's order, a colour
from ten hues around the wheel: its name's, or the next free one when
an earlier server has it. The rail, Home, search, live rooms and the
server chats in the chat lists use it. A server icon at most half as
wide as its avatar (TeamSpeak's 16 px ones) is drawn at twice its size,
sharp, on that colour instead of stretched.

Avatars under 28 px show one letter (Images.first-letter, as Slint
cannot cut a string). Channels show the speaker (Icons.channel)
everywhere the hash or the volume icon stood for one, and tab titles,
notifications and subtitles name them without a '#' (vm::chat::tab_title;
private chats keep '@').

Member rows showed everyone's talk power as a bare number. They now show
a muted hand, "Needs talk power to speak", only on those whose channel
needs more than they have and who are no talker (vm::tree::cannot_talk);
the member card keeps the number. The sample's Raid Night needs 50.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 20:06:16 +00:00
Claude 65ff5f6693 ui: TeamSpeak links open the server dialog, or move you in voice
Links to ts3server://, teamspeak:// and tmspk.gg in chat were only
copied. voelin_model::Link reads them, and invite_link now writes
through ServerLink::to_url, so a copied invite reads back the same (a
'/' in a channel's name stays %2F in the link, \/ in the path).
App::open_link (links.rs) finds the saved server with that address
(vm::servers::same_address; of several, the one in voice, else the one
shown: link_server). In voice on it, it moves into the link's
channel (channel_by_path) through join_channel, so a locked channel
asks for its password when the link's is missing or wrong. Otherwise
the server dialog opens filled in by link_form, over the saved
server's form when there is one: its nickname stays. Nothing connects
before Connect. Invite codes need a TeamSpeak service; a toast says
so. VOELIN_OPEN=link:<url> goes through inbox::Request::OpenLink,
where the platform's links will come in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 17:50:04 +00:00
Claude 7965187d2c ui: home continues where you left off, with unread mentions
The banner carousel repeated the servers below it, and the quick actions,
the friends and the sidebar art appeared twice. Home now shows the banner
only before the first server; after it a card with the last voice channel
(`ui.last_voice`, Join or Open) and up to three unread mentions. Friends
show once, and the sidebar lists the five newest private chats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 15:40:34 +00:00
Claude a3b61bca70 ui: a slimmer top bar, and the bell's panel under the bell
The top bar repeated what the rail and the pages show: the logo and the
app name, the page's name, a members button that only worked on the
server page, and About. It now holds the search, starting over the main
panel, and the bell, in 44 px (taller only when large text makes its
controls taller). The members button moved into the voice channel's
header, as the chat's header has one; About stays in Settings and on the
phone. The Stream Studio already names itself in its preview's header.

The bell's panel opens under the bell instead of 100 px to its left, and
is as tall as its notices up to 560 px: a ScrollView of all the rows (at
most 100) replaces the ListView that stretched to the full height. A
notice is never shorter than its text, so a long list scrolls instead of
squeezing the rows.

The user card loses its settings gear, which the rail has too
(VoiceButtons gets `gear` for the call bar to come); its avatar and name
are a button to Settings > My Account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 13:27:41 +00:00
Claude 95d86af627 ui: one dialog to add a server, with Save and Connect
Join a Server and Add a Server were the same dialog with other buttons,
and Join saved the server in Slint and then connected the one shown: when
saving failed, that was the server shown before. The dialog now has
Cancel, Save and Connect (also Enter in the address or password field).
Connect goes through Bridge.save-and-connect, which connects only the
server it saved (vm::servers::connect_to); it is hidden while the server
has voice, and Save is the main button then. On a phone Delete shows only
its icon, so the four buttons fit.

BookmarkForm carries a channel, its password and a privilege key for the
links to come: the dialog shows "Joins <channel>" and "This link grants a
server group", Connect connects into that channel, and connect_voice_to
passes the key on. Nav.join-server is gone; the dev switch join opens the
same dialog as bookmark. "Add server" reads "Add a server" everywhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 11:12:37 +00:00
Claude 4940966538 ui: a New line above the first unread message, and read markers kept on disk
Messages count as read only while their chat is on screen (Nav.chat-shown)
in the focused window: winit's focus events, through slint's
unstable-winit-030 on the desktop; Android counts a chat on screen as
read. A tab keeps the newest message read and counts what came after it,
not our own. Entering a tab with new messages puts a red New line above
the first one until the tab is left (so does a stored or gateway page
that brings them while the tab is on screen), and while that line is
above the view a bar over the list counts them, with Jump and Mark as
read.

voelin-store migration 5 adds chat_reads (Store::chat_read, set_chat_read,
chat_reads). Markers are loaded once a session's server is known and
written when a tab is left, marked read, its session ends and on exit,
never per message; a restart counts what came while away again, gateway
pages included. Dev switch VOELIN_OPEN=unread[:end].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 09:01:15 +00:00
Claude 2f3c2433b4 ui: older messages load when scrolling up, the rows on screen staying put
Scrolling to within a screen of the top asks for the page before; the
list keeps the rows from the top of the view to the end and goes back to
them once the page is in (rows, as the list places them by an average
height, then up to two corrections by their real heights). After a page
that brought nothing it waits until the list was a screen away. The
Older messages button moves to the top of the list, above the oldest
message (a spinner while loading), for a chat too short to scroll. A
short chat after a longer one no longer starts with its first rows above
the view, and another server's chat at the same tab starts at its end
too (it kept the last chat's place, and now its loading state). Demo
mode answers with two sample pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 06:27:38 +00:00
Claude 1435d9c909 ui: links open, and Copy text and Quote on every message
Links in chat did nothing. classify_link (vm/bbcode.rs) sorts an address
into a web page, a TeamSpeak server, a channel file or no link, and only
those reach TextRun.link. A click on a web link opens it through
App::open_url, the one place a platform without xdg-open can hook; one
whose text is not its address first shows where it goes (LinkDialog).
TeamSpeak links are copied until Voelin opens them. A right-click on a
link opens or copies it.

The hover bar was there only for messages a gateway knows. Every message
now has it, with Quote ("> Author: …" lines at the start of the
composer; TeamSpeak clients show [quote] as it is) and Copy text, and a
right-click menu. After Quote the composer has the focus, its cursor
below the quote, and grows to show the quote's lines: its field is one
line high, so an answer typed after clicking into it went into the
quote's last line. The bar keeps itself shown while the pointer is on
it or on the message's links and reactions: it reaches above its row,
where the row's hover ended, so its buttons could not be clicked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 03:47:03 +00:00
Claude 531334d826 ui: BBCode in chat, and the welcome message as the server chat's first line
Other clients format chat with BBCode, and it showed as raw tags; only
file links were taken out. One parser, vm/bbcode.rs, now reads every
message into a Doc of blocks (lines, quotes, code, list items, rules) of
styled spans, which the chat draws with one MessageText (also in the
pins drawer and the studio's chat), and which previews, notifications
and the home's news show on one line. Only known tags are read, so
relay prefixes such as [Nova] stay. Emoji are split per span, so a
message with emoji keeps its line breaks. [img] pictures on the web
come through the engine's picture cache (Command::FetchPicture), within
ui.image_preview_kb and only with cache.fetch_images; otherwise they
stay links. Built lines are kept per message and revision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-07 00:56:14 +00:00
Claude 9e0f0e05ad ui: other people's badges, named on the member card and drawn after their name
Clients only send badge GUIDs. voelin-model names them from tsclientlib's
table plus the newer entries of TeamSpeak's own list, and the engine fetches
the first three pictures of each client from TeamSpeak's badge server
(<guid>/<filename>.svg, checked to answer) with the banners, under
cache.fetch_images.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-06 20:16:37 +00:00
Claude 68dd48d607 voelin-audio: dim everyone else while a priority speaker talks
The server sends virtualserver_priority_speaker_dimm_modificator (-18 dB
by default) but nothing read it. ServerDetails carries it now, the
session tells the audio thread the priority speakers when they or the
value change, and the mixer dims every other queue (watched streams too)
while an unmuted priority speaker has one, fading sample by sample over
5 frames.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
2026-10-06 18:59:23 +00:00
Claude 79a12654c8 myTS avatar, badges and User Tag from a saved session; banners; gateway logs and speed
Own account on TeamSpeak 6 servers:
- With only a saved session, the account's avatar and its certificate come
  from myTeamSpeak's avatar service (requestContactsAvatar for the own myTS
  ID), the signed badges from getSignedBadges and the User Tag's token from
  /tschat requestSignedAllowedIdentifierList; no password sign-in needed.
- tsproto::myts::Certificate checks a certificate chain as the server does
  (block types 4-7, leaf type 6, validity, key from the root, cofactorless
  Ed25519); each part is sent with a certificate that verifies it, in
  separate updatemytsdata commands when they differ, and cleared on sign-out.
- client_user_tag is set as the official client sets it
  ({"myts_token","tag","updated"}) on TeamSpeak 6 servers, after a
  self-check of the token; cleared on sign-out or an account change.
- Settings -> My Account shows the User Tag and lets the user choose up to
  three badges to show. The log says what the server published.

Banners:
- The URL (without query) is logged on the first failure; stalls, connect
  failures and missing answers are named; 400/404/410 are retried after
  15 minutes, then hourly; 429/503 honour Retry-After.
- Cached pictures are revalidated (ETag, Last-Modified); at most 6
  downloads per host; a User-Agent with the app version.
- The desktop portal's proxy (Linux) and the system proxy (Windows, macOS)
  are used, SOCKS included; redirects are followed hop by hop.

Gateway, client side:
- Only a refused login stops observing; retries after 1, 2, 5, 10, 20, then
  30 s with jitter, at once when voice connects; a 30 s keepalive.
- Discovery asks DNS and the well-known endpoints at once; observing is not
  restarted when the found list still holds the gateway in use.
- Info logs for discovery, attempts (with the stage that hung), connections,
  losses and the first presence.

tsgw:
- Logging setup (log.level, log.file with size rotation, colour only on a
  terminal) and lifecycle logs: startup summary, the address the server
  sees for queries, WebSocket connections, logins, refusals, slow requests,
  ServerQuery failures, relays and the observer.
- The lookup query connection reconnects after a TeamSpeak restart; query
  connects time out after 10 s; a silent server cannot wedge a connection;
  SIGTERM, startup while TeamSpeak is down and /health are handled.
- TCP_QUICKACK and one write per line: ~45 ms -> <2 ms per SSH command.
- One flood guard shared by all query connections (9 per 3 s, SSH auth
  counted, every connection holds on a 524).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
2026-10-06 18:28:09 +00:00