The review of the merge-and-minors round read ts/voice.rs: the Input::Cmd arm
sends a command's error as LinkEvent::Error and keeps the connection, so the
old anyhow::bail! never ended the TeamSpeak session. The 17.7 row said it did.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
17.7: the merge of main (ad20979), what it conflicted on and what it needed to
compile, the four minors of the review with their commits, and what ran on the
merged tree: fmt and clippy per commit, tests on both toolchains, the lib
suite ten times in a row, cargo doc, the acceptance of section 10 (including
the rustdoc JSON walk), the notices check, and the smoke script and the live
binaries before and after. The status line follows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- docs/session-seam.md 4.1: the TsConnector owns the myTeamSpeak account since
a451f02; it is not registered "with the engine's watches".
- docs/session-seam.md 16.1: the live tests are src/ts/ts_session/live_tests.rs.
- docs/session-seam.md section 10: the acceptance rg is given as it runs from
the repository root (--glob '!**/ts/**'); from crates/voelin-core/src the
first glob is '!ts/**'.
- ts/voice.rs module documentation: the type that runs it is ts_link::TsLink
(crate::TsLink is gone).
- link/tests.rs: ts/ts_session/driver.rs.
- voelin-store (IdentityOrigin::Imported, a one-word path) and
docs/research/ui-review.md: voelin_core::ts::identity, ts/voice.rs.
- docs/audio.md: LinkCmd::Audio and LinkEvent::Audio are in link/mod.rs.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Main brings the merge of phase5/ui-vm: the toolkit-free crates/voelin-ui-vm
crate and the logic/bind split of crates/voelin-ui. Conflicts, and what each
resolution keeps:
- crates/voelin-ui/src/settings_pages.rs: main deleted it (it is
settings_pages/{mod,bind}.rs and voelin-ui-vm's settings_pages/logic.rs
now), this branch had changed its voelin_core::identity paths. Deleted; the
paths are voelin_core::ts::identity:: in bind.rs and in logic.rs.
- crates/voelin-ui/src/identities.rs: the module comment names
voelin_core::ts::identity::import_new (this branch) and settings_pages/
(main).
- docs/architecture.md: the voelin-core row of this branch with the
voelin-ui-vm and voelin-ui rows of main.
Not conflicts, but needed to compile: voelin-ui-vm named the in-tree
voelin-model by path, which this branch moved to the protocol repository
(workspace dependency), and imported voelin_core::identity::Found, which is
voelin_core::ts::identity::Found. Cargo.lock merged without a conflict and
resolves with --locked; THIRD_PARTY_NOTICES.md is up to date
(scripts/notices.sh --check).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Section 17: what was done, commit by commit; where the code differs from the
text of section 10 (QueryLogin.allowlisted, the ServerLink trait moved rather
than made private, Backends::register_teamspeak, files::upload deleted, the
directory the acceptance rg runs from); the API changes that phase5/ui-vm-2
has to absorb; the acceptance list; what ran against the baseline (fmt,
clippy per commit, tests on both toolchains, cargo doc, notices, the smoke
script and the live tests before and after); the follow-ups. The status line,
4.1, 4.8, 9, 11.2 (H9's two edges into src/ts) and 16.1 follow.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
"The server link" is "The session seam": the registry, SessionLink and the
vocabulary it shares with session.rs (crate-private now), what a session asks
for in VoiceOptions, the TeamSpeak module (voelin_core::ts), StreamPort, the
tests, and what is still TeamSpeak-shaped. The crate table row of voelin-core
follows.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ts_link.rs, voice.rs, book.rs, ts_session/, versions.rs and identity.rs move
under crates/voelin-core/src/ts (git mv, so git log --follow keeps their
history). voelin_core::versions and voelin_core::identity are
voelin_core::ts::versions and voelin_core::ts::identity now; the UI and
voelinctl follow with the new paths. Nothing else changes: the module
declarations, the use paths and the path of Versions.csv are the only
edits to the moved files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
Shared view-model types (ImageSource, Rgb, list diffing), the view models,
the BBCode reader and the Twemoji archive, SessionView/Tab/Msg and the App
state moved out of the Slint crate into voelin-ui-vm; the Slint crate keeps
adapters and bindings (studio and settings split into logic and bind).
Opus gate accepted with five minors left as follow-ups (server_tint falls
back to black, ImageSource::size reads headers only, convert::image does
not check the RGBA length, docs/ui.md metric wording, field docs on the
mirrored bridge structs).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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>
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>
- 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>
- 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>
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>
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>
The text said 49 (the plan's figure); bridge.rs has 51 and studio_bridge.rs
10, and MytsBadge and MytsForm stay in Slint.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
docs/ui.md: the structure of voelin-ui-vm and voelin-ui, a "Two crates"
section (values, lists, conversion, state, logic/bind) and the written list
of the controllers that still interleave logic with Bridge writes, with
their .set_ counts, for the next round; the pointers to the moved files
(Twemoji archive, BBCode reader, settings pages, studio) are corrected.
docs/architecture.md: the crate table has voelin-ui-vm. README.md and
CHANGELOG.md name the new crate. Module comments that pointed at studio.rs
and vm/ point at studio/ and the crate.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
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>
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>
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>
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>
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>
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>
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
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
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
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
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
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
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
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
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
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
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
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
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
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