Commit Graph
403 Commits
Author SHA1 Message Date
faumaray 8359ba8296 Merge pull request #8 from Faumaray/claude/hopeful-babbage-5h4kbg
Release / packages + draft release (push) Failing after 1s
Release 0.0.1-alpha
v0.0.1-alpha
2026-10-04 22:31:06 +03:00
Claude 22c8623218 Release 0.0.1-alpha
The apps (voelin-ui, voelin-android) are 0.0.1-alpha; the gateway keeps
its own version. A pre-release version broke three package builds, now
handled:
- Android: versionCode took "1-alpha" as a number (Gradle failed); it
  counts the version without the pre-release (0.0.1-alpha: 1).
- Windows installer: VIProductVersion must be numeric; makensis refused
  "0.0.1-alpha.0". package.sh passes VERSION_NUMERIC (0.0.1).
- Debian: "0.0.1-alpha" reads as revision "alpha" and sorts after 0.0.1;
  the package version is 0.0.1~alpha.
Draft releases of such tags are marked as pre-releases (GitHub, Gitea).

Changelog: the Unreleased section is 0.0.1-alpha, with myTeamSpeak sign-in,
banners and a known issue. AppStream: the never-released 0.1.0 entry is the
0.0.1-alpha development release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 19:30:32 +00:00
faumaray ff30338646 Merge pull request #7 from Faumaray/claude/hopeful-babbage-5h4kbg
myTeamSpeak account sign-in (codex/myteamspeak-account, merged with main)
2026-10-04 22:30:24 +03:00
Claude 124240daea voelin-ui: account portal on Windows, demo mode, notices and one-time codes
- The account website actions said "Could not open your browser" on every
  click on Windows (explorer exits with 1 on success) and waited for the
  browser to close with a foreground xdg-open: success is that the opener
  started, as for files (open_target).
- VOELIN_DEMO_UI's account screens signed in and out for real and could
  delete or replace the developer's saved session: demo mode uses an
  in-memory secret store and its sign-in and sign-out do nothing.
- A notice from the start (an imported identity) ran out behind the account
  prompt: the toast's time starts when the prompt closes.
- After an account asked for a one-time code, signing in was blocked until
  one was typed, also for another account: the code field shows but no
  longer blocks; a 2FA account without it is asked again.
- SECURITY.md lists the myTeamSpeak secrets in the keyring, the account
  service the app talks to, and that servers get the account's id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 18:48:11 +00:00
Claude d1a95ccab4 voelin-core: account updates that change something, clean restarts, app version
- SetMytsIdentity(None) while there is no account notified every voice
  connection anyway: in-flight handshakes restarted and connected servers
  got an `updatemytsid` clear (and a failed or late reply disconnects).
  Still no account is no change now.
- When the account changed right as a handshake finished, the connected
  client was dropped without a disconnect: the server kept it, with the old
  account, next to the new connection until it timed out. It leaves
  properly first now.
- client_meta_data said voelin-core's version (0.1.0), not the app's. It
  takes the version the app sets at start (crash::app_version, new).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 18:48:11 +00:00
Claude b28802efa2 schema-api: tonic TLS on aws-lc-rs, so rustls has one crypto provider
schema-api enabled tonic's tls-ring, which turns on rustls' ring next to the
aws-lc-rs that reqwest and str0m use. With two providers rustls cannot pick
a process-wide one, and every TLS client built without an explicit provider
panics: tokio-tungstenite's for wss:// gateways ("Could not automatically
determine the process-level CryptoProvider"), leaving observation stuck at
Connecting. tonic uses tls-aws-lc now (second local patch, VOELIN-PATCH.md);
ring is gone from rustls in Cargo.lock.

voelin-core's one_rustls_crypto_provider test builds a rustls client config
with the app's TLS dependencies (voelin-myts is a dev-dependency there); it
panics as above with tls-ring and passes with tls-aws-lc.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 18:48:11 +00:00
Claude a2924b32b2 voelin-core: claim the generic signed client version, as before
native_version() took the first signed version containing "3.6" (3.6.0,
build 1647595742, from 2022) while its documentation and its test said the
generic tuple (3.?.? [Build: 5680278000]); the test failed. Main sent the
generic one (tsclientlib's default), whose build passes a server's minimum
client version; a real old build may be refused. Each platform's generic
tuple again, matched exactly (not the Windows DEBUG one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 18:02:22 +00:00
Claude caa6376908 voelin-core: banner tests give the session a myTeamSpeak account source
The merge left the channel-banner tests calling Session::new without the
account identity it takes since the myTeamSpeak branch. The test helper
passes an open source with no account, as the engine does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 17:58:53 +00:00
Claude 9db6937489 Merge branch 'codex/myteamspeak-account': myTeamSpeak account sign-in
Conflicts with the channel banners on main, both kept:
- crates/proto/UPSTREAM.md: myTeamSpeak's local patch is number 14, after
  the channel banners' 13.
- voelin-core/src/voice.rs: both test modules.
- ui/app.slint: the mobile shell hides behind the account prompt and keeps
  the channel chat's banner.
- ui/shells/common.slint: the user card counts a signed-in account as named
  and shows our avatar, the person icon only without one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 17:55:31 +00:00
faumaray 117a61dfc2 Merge pull request #5 from Faumaray/codex/finalize-channel-banners
Complete channel banners and reliable image downloads
2026-10-04 20:51:22 +03:00
Claude aa99af2ea6 Merge remote-tracking branch 'origin/main' into claude/hopeful-babbage-5h4kbg 2026-10-04 17:50:28 +00:00
faumaray c08729a32f Merge pull request #4 from Faumaray/claude/gifted-lovelace-1crlx2
CI off except package builds; Gitea release workflow; release build fixes
2026-10-04 20:50:03 +03:00
Claude 46a5d65715 CI off: checks run by hand, only package builds run by themselves
The checks no longer run on pushes, pull requests or a schedule, on
GitHub or Gitea: ci.yml, audit.yml, fuzz.yml and Gitea's ci.yml run by
hand only (Run workflow). Only the package builds still run by
themselves, on v* tags (release.yml, docker.yml, Gitea's release.yml),
and the release workflows no longer run the checks first: GitHub's drops
its checks and Windows test jobs, Gitea's the shared checks step. The
docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 17:48:56 +00:00
Claude d8b40ca19f Merge remote-tracking branch 'origin/claude/gifted-lovelace-1crlx2' into claude/hopeful-babbage-5h4kbg 2026-10-04 17:17:52 +00:00
Claude fdf0266b76 voelin-gateway: import warn only where SIGHUP reloads (Unix)
With the crate list fixed for Windows, `clippy (Windows)` reaches the
gateway and refuses `warn` as an unused import there: only the Unix
reload_on_hangup uses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 17:17:45 +00:00
Claude 9de71793b6 voelin-ui: collapse the nested ifs clippy refuses
`clippy (Windows)` and strict clippy failed on collapsible_if in
remember_server_icon and channel_label; let chains instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:51:54 +00:00
Claude 742dc6ce94 Banners: requests lost on disconnect, spacer rows, tints and repeated decoding
- A picture download sent to the voice connection while it closes (or
  still queued when it ends) was dropped without an answer: its cache
  key stayed in flight and every later fetch of it, in any session,
  waited until the app restarted. The request now fails when dropped
  unanswered (ImageDownload), so the retries fetch it again.
- Only top-level channels are spacers, as in TeamSpeak: a sub-channel
  named [cspacer…] keeps its name, its lock and its member count. Chat
  tabs, the voice headers and "In …" use the same title as the tree.
- A banner covered its row's own background: our channel and the hovered
  row are tinted over the artwork again. A locked centred spacer shows
  its lock.
- A picture that cannot be decoded is remembered as such instead of being
  read again on the UI thread at every refresh (every talking change);
  avatars and icons that arrive again are decoded again.
- Cache::icon no longer opens and touches the file on every refresh of
  the server list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:44:57 +00:00
Claude e15ee3afb6 Merge remote-tracking branch 'origin/claude/gifted-lovelace-1crlx2' into claude/hopeful-babbage-5h4kbg 2026-10-04 16:37:57 +00:00
Claude 6c8196991e Gitea release: a secret name Gitea accepts, and its server task limit
Gitea refuses secret names that start with GITEA_ or GITHUB_, so the
GITEA_RELEASE_TOKEN secret the release workflow read could never be
created and every tag's draft release failed after the builds. The
secret is RELEASE_TOKEN now; the script still receives it as
GITEA_RELEASE_TOKEN.

The Gitea server stops any task older than [actions] ENDLESS_TASK_TIMEOUT
(3h by default) whatever the runner's timeout says, which would end the
eight-hour release job: docs/ci.md says to raise it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:37:42 +00:00
Claude 86c30b6f8f Banners: download those in the server's files, larger and slower ones
Not every banner arrived:

- Banners kept in the server's own files are linked as ts3image://
  (TeamSpeak 5 and 6: ts3image://<host>?port=…&channel=…&path=…&filename=…,
  the file browser's ts3file:// link with its scheme changed; TeamSpeak 3:
  ts3image://<name>?channel=…&path=…). Only http(s) was fetched, so these
  never were. They now come through the voice connection's file transfer
  (files::server_image), cached under the server and the address.
- A web download had 16 MiB at most and 30 seconds in all, while up to
  eight run at once: a large animated banner, or several on a slow link,
  failed and failed again on every retry. Pictures may now be 64 MiB and
  go to disk as they arrive instead of into memory; a download fails when
  nothing arrives for 20 s or when, after its first 30 s, it averages less
  than 32 KiB/s. Accept names the formats the UI decodes.
- Pictures over file transfer had 30 seconds too; now 30 s plus their
  size at 32 KiB/s, and at most 64 MiB.

The voice protocol's MAX_DECOMPRESSED_SIZE goes back to 2 MiB: it bounds
compressed commands (the channel list), not pictures, and QuickLZ reserves
the size a packet declares, so 1 GiB let any server make the client
allocate a gigabyte with one small packet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q
2026-10-04 16:37:02 +00:00
faumaray 3f177a77aa banners
Signed-off-by: Faumaray <faumaray@gmail.com>
2026-10-04 19:15:42 +03:00
faumaray 24acc1910a account
Signed-off-by: Faumaray <faumaray@gmail.com>
2026-10-04 19:11:37 +03:00
selikhov 264f12ca9c ci fixes
Signed-off-by: selikhov <selikhov@protei-lab.ru>
2026-10-04 18:07:21 +03:00
selikhov b2549f867e Fix image download recovery and banner layout
Retry failed avatars, icons and banners automatically with bounded backoff,
expire stalled image transfers, and preserve explicit avatar requests.
Bound concurrent HTTP downloads, allow larger banners, and decode BOM SVGs.

Separate artwork from channel titles and controls across desktop and mobile,
using bounded aspect-aware areas and realistic demo fixtures.

Validation: 176 library tests, explicit-fetch policy regression, independent
TS6 avatar download and transient503/banner reload scenarios, strict Clippy,
formatting, license notices, and eight reviewed headless captures.
2026-10-04 18:04:10 +03:00
selikhov 02693a0f7f Complete channel banners across desktop and mobile
Finish banner rendering, image cache invalidation, avatar/icon wiring and image-format support. Bound raster decoding, retain readable text contrast, and recover failed downloads while stopping obsolete reload timers.

Validated with 168 library tests, a private TS6 banner lifecycle test including the real 60-second reload, desktop builds, strict scoped Clippy, formatting, license notices, independent source review and six headless desktop/mobile renders.
2026-10-04 17:05:25 +03:00
selikhov 79771d7e92 Merge commit '6e59ac93d99b2dcaffdb5b44f462998264cdca42' into codex/finalize-channel-banners 2026-10-04 16:04:48 +03:00
selikhovandClaude Opus 5.5 52cd9e1425 own-crates.sh: print the crate list without line breaks
On the Windows CI runner jq ends its lines with \r\n; `tr '\n' ' '`
removed only the \n, so every crate name kept a \r and cargo refused
`voelin-android\r` as a package name, failing the Windows clippy job.
`jq -j` writes the list with no line breaks at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:42:25 +03:00
selikhov 6e59ac93d9 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a3369fb4a9337b614 2026-10-04 14:14:56 +03:00
selikhovandClaude Opus 5.5 1318a9db3b Fetch banners from the web into the image cache
The host banner (virtualserver_hostbanner_gfx_url) and TeamSpeak 6
channel banners are http(s) addresses on any host, not files on the
server, so the voice file transfer that fetches avatars and icons cannot
get them. A new engine path (web.rs) downloads them with the workspace's
reqwest client (rustls, system proxies and certificate store) into the
same cache, keyed by the MD5 of the address (pictures/<md5>), only for
http and https, at most 4 MiB, with a 10 s connect and 30 s overall
timeout, and keeps a download only if its content is a picture the UI
decodes (PNG, JPEG, GIF, WebP, SVG), whatever the address or the server
say; an error page is not cached as a banner.

The session fetches the banners of the presence it shows, from any
source, when cache.fetch_images allows (it contacts hosts the server
chose, as the official client does), and reports each as PictureReady.
When the server sets virtualserver_hostbanner_gfx_interval, a timer asks
the session to fetch the host banner again (never more often than once a
minute, as TeamSpeak 3 and 6 servers enforce) and the new file replaces
the old one; Cache::fetch takes `fresh` for that.

Tests: a local HTTP server on 127.0.0.1 for the download, the size cap
(announced and unannounced), refused pages and the cache; the cache keys;
a live test that sets both banners on the TeamSpeak 6 dev server through
ServerQuery, sees them arrive and puts the server back. voelinctl engine
prints the pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:12:34 +03:00
faumaray 429276b67a Merge pull request #2 from Faumaray/claude/gifted-lovelace-1crlx2
Voelin: new design, Stream Studio, streams up to 8K and 320 fps, identities and servers by address
2026-10-04 14:08:05 +03:00
selikhovandClaude Opus 5.5 04a6d1f931 Track TeamSpeak 6 channel banners in the book and the model
A TeamSpeak 6 channel can have a banner picture (channel_banner_gfx_url,
channel_banner_mode) that the official client draws behind the channel.
The server sends both in channellist, notifychannelcreated and
notifychanneledited (seen on 6.0.0-beta13.1), but the declarations only
had them in channellist and the book had no place for them, so they were
dropped with an "Unknown argument" warning. The book's Channel keeps them
now (local patch 13 in crates/proto/UPSTREAM.md) and ChannelInfo carries
the address and the mode.

The mode's numbers are those of the host banner (the server's channeledit
documentation: 0 as it is, 1 stretched, 2 scaled keeping the aspect
ratio), so HostBannerMode becomes BannerMode and serves both. The book
keeps the mode as text, as upstream declared it: a value the generated
parser does not know would otherwise drop the whole channel list.

The query observer asks channellist for -icon and -banners (TeamSpeak 3
and 6 ignore flags they do not know) and reads banners from the channel
events too, so invisible presence shows them as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:05:38 +03:00
selikhovandClaude Opus 5.5 01b0bc1796 voelin-stream: let the retransmission test survive a loss at the very end
The relay drops every 25th RTP packet it forwards, retransmissions
included, so which packet that is shifts with timing. Under load it can
be the stream's last packet, and no later packet shows the viewer the
hole to ask for, so the last of the 90 frames never arrived. One more,
uncounted frame now follows them; a loss in the middle still shows up as
a missing frame or a gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:04:19 +03:00
selikhovandClaude Opus 5.5 bd7cfb3bd8 Merge the stream limits: 60 Mbit/s, up to 8K and 320 fps
An automatic bitrate up to 60 Mbit/s that follows size and frame rate,
presets and settings up to 8K and 320 fps, the portal asked for the
stream's frame rate, H.264/HEVC/AV1 levels that count the frame rate,
memory frames on the GPU path for VA-API encoders, and a pacer that no
longer caps a peer at one packet a millisecond. Measured through the
TS6 dev server: 1440p240 and 1080p240 arrive at 60 Mbit/s; 4K60
decodes at 60 fps. 8K60 needs DMA-BUF capture, and 8K decoding reaches
about 20 fps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 11:11:05 +03:00
selikhov 32c504f46e Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 10:59:48 +03:00
selikhovandClaude Opus 5.5 44a58ff590 Show downloaded avatars and icons: decode cached files by content
The image cache stores downloads without an extension (avatars/<md5>,
icons/<id>), but the UI loaded them with Image::load_from_path, which
picks the decoder from the extension. Every avatar and server icon
failed with "The image format could not be determined" and was drawn
empty. Read the bytes and let Image::load_from_data sniff the format,
which also covers the SVG icons TeamSpeak 6 servers keep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:57:26 +03:00
selikhovandClaude Opus 5.5 08c50a3d52 docs: 60 Mbit/s, 8K and 320 fps, measured
What capped a Voelin stream and what does now; what the GPU's encoders
reach on their own (AV1 61-63 fps at 8K, 233 at 4K; HEVC 51-52 and 193;
H.264 at most 4096 wide, 194 at 4K); the streamer before and after
(8K30 from memory on 1.45 cores instead of 3.47, 8K60 from video memory at
60 fps on 0.01, 4K120 H.264 at 120 instead of 84, 4K240 AV1 at 232
instead of 107); end to end through the TeamSpeak 6 dev server (4K60 AV1
at 60 Mbit/s decoded at 60 fps, 1440p240 AV1 and 1080p240 H.264 arriving
at their full 60 Mbit/s, 8K30 limited by the viewer's decoding at about
20 fps); why a 60 Mbit/s 4K60 stream arrives as 40-46 (the encoders' CBR
filler and padding, which str0m drops); and the viewer's RGBA cost per
picture, which is not the limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:46:29 +03:00
selikhovandClaude Opus 5.5 a7d7234451 voelin-ui: 60 Mbit/s, 8K and 320 fps in the new settings pages
Wave 4B's settings pages arrived with their own stream controls, written
for the old limits: the Video page's bitrate slider stopped at 20 Mbit/s,
its frame rates at 120 and its quality presets at 1440p, and with the
automatic bitrate (0, now the default) any change on that page stored a
bitrate of 1 kbit/s (`form.bitrate.round().max(1.0)`), while the
Streaming page could not set the automatic bitrate back.

Kept 4B's layout and put the controls into it: frame rates up to 320,
quality presets 4K and 8K (`PRESETS`), the slider up to 60 Mbit/s with
the field empty (and a note) for the automatic bitrate, which a preset
turns into the automatic bitrate of its size and the frame rate
(`preset_layers`, tested); the Streaming page takes empty, 0 or "auto" as
automatic and says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:19:54 +03:00
selikhov 96819366f9 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc
# Conflicts:
#	crates/voelin-ui/src/settings.rs
2026-10-04 10:06:33 +03:00
selikhovandClaude Opus 5.5 adf958f0d0 voelinctl: stream statistics, the desktop pattern and no BWE for measuring
For measuring streams end to end: `stream start --stats` prints once a
second what the encoder makes per layer (size, fps, kbit/s, target,
encode time), `stream watch --stats` what arrives and decodes (decoded
fps, received bitrate, size, decoder, frames decoded and skipped,
keyframe requests), `stream start --pattern desktop` streams the
code-editor test pattern (about as costly as real screen content), and
`stream --no-bwe` turns bandwidth estimation off, to see what the path
carries unpaced. `Action::Stream` is boxed (the arguments grew past
clippy's limit) and `watch` takes its options in one struct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:03:35 +03:00
selikhovandClaude Opus 5.5 f6454e1239 voelin-stream: let the pacer out faster than one packet a millisecond
A 3840x2160@60 AV1 stream at 60 Mbit/s, Voelin to Voelin through the
TeamSpeak 6 dev server on loopback, was received at 5 Mbit/s: the
bandwidth estimate started at 60 Mbit/s and fell within seconds to 9, and
str0m's probes measured 9.4-9.6 Mbit/s every time. That is one 1188-byte
packet a millisecond. str0m's pacer asks for a timeout at once after
every packet it lets out; the peer task slept until it with tokio, whose
timer rounds up to its next millisecond. Without bandwidth estimation the
same stream arrived at 44-46 Mbit/s and decoded at 60 fps.

The peer task now handles a due timeout at once instead of sleeping on
it, up to 256 turns in a row, so packets and commands are still read in
between. Same stream: the estimate climbed to 110 Mbit/s and the viewer
received 69-73 Mbit/s at 60 fps. `the_pacer_keeps_up_with_60_mbits`
(loopback, 60 Mbit/s of 60 fps frames with 1 MB keyframes) fails without
it (7.9 Mbit/s received, the estimate at 12.5) and passes with it (56
Mbit/s, the estimate above 98).

With the estimate free to rise, an encoder followed it above the stream's
bitrate (to 91 Mbit/s for a 60 Mbit/s stream). Its target is now capped
at the layer's bitrate, or `max_bitrate` where set, as `LayerSpec`
documents: estimates move it down and back up to it.

`no_layer_request_without_the_offer_listing_layers` asserted that the
viewer had no output at all after ten frames; with frames arriving faster,
frame events were still queued. It now checks that no request was sent,
which is what it means.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 10:03:35 +03:00
selikhovandClaude Opus 5.5 96866baa9e Merge Wave 4B: Home, friends, messages and the settings pages
The home page, friends, direct messages with offline inbox, the bell,
search, events and the full set of settings pages from the design, on
desktop and phone. Profiles is the one identities page; the store's
default identity is the only default, and one function picks the
identity a connection uses. New privacy settings let the user limit who
may send private messages or poke (everyone by default).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:57:23 +03:00
selikhovandClaude Opus 5.5 301f472ecf Merge the identity defaults: one default, one identities page
The development branch's identity work and this wave's Profiles page
were two models of the same thing: the store's default identity (schema
4: where each identity came from and which one is the default, which the
import on start relies on to replace Voelin's own identity once) next to
this wave's identity.default setting, and a separate Identities section
next to Profiles. They are one now.

- The store's default is the only default: the identity.default setting
  is gone (never released, so nothing to migrate). Choosing an identity
  calls Store::set_default_identity as the user's choice, which no
  import replaces, and says it applies from the next connection.
- One place picks the identity of a connection: the bookmark's own if it
  names one that exists, else the store's default. Connecting, My
  Account and each identity's "Used by" all go through it.
- Profiles has what Identities had: each identity's origin ("Made in
  Voelin", "Imported", "Chosen by you") with its level, the Default
  badge or "Use as default", and the switch for importing the official
  clients' identities on start, next to this wave's rename, export,
  delete, security level, import by hand and identity per server. The
  Identities section, its sidebar entry and the phone's sixth tab are
  gone; VOELIN_OPEN=settings:identities opens Profiles.
- docs/identity.md and docs/ui.md say so; the Identities screenshot gives
  way to the Profiles one, taken from a store with the created identity
  and a synthetic TeamSpeak one.

Checked headless with a fake home and synthetic identities only: the
first start creates Default; the second, with a synthetic TeamSpeak 6
database, makes its identity the default once and says so; the third
changes nothing, and My Account shows the store's default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:56:25 +03:00
selikhov 608bd2fbf2 Merge branch 'claude/gifted-lovelace-1crlx2' into worktree-agent-a5ecbed1e5dd55ddc 2026-10-04 09:28:11 +03:00
selikhovandClaude Opus 5.5 500d41e5d2 Streams: offer the H.264 level the encoder makes, at most 5.2
The app's streams always offered H.264 at level 3.1: its peer
configuration is made before a share starts, and only voelinctl set the
real level. A 4K or high-frame-rate stream then declared far less in its
offer than in its SPS, which a viewer that sizes its decoder from the
offer may refuse.

Each layer's encoder now tells its sink what it makes
(`MediaSink::layer_format`: size, frame rate, bitrate, whether the
bitrate is automatic), when the sink is attached (from the size captured
so far, so a viewer that joins before the first frame is encoded is
covered), with the layer's first frame and on every change. The engine's
stream task offers new viewers the level of the largest layer (its
bitrate at `max_bitrate` if that is higher) in both profiles, and puts an
automatic bitrate into the layer as before; this one hook replaces
`auto_bitrate`.

Offering 6.0 broke the stream: str0m 0.23 knows no H.264 level above 5.2,
nor does libwebrtc (`H264Level` on its main branch), and a
`profile-level-id` they cannot parse matches nothing, so a viewer answered
without video (`m=video 0`). The offer is now capped at 5.2
(`h264::MAX_OFFER_LEVEL`); a stream that needs 6.x (4K above 60 fps, 8K)
is offered as 5.2 and keeps its real level in the SPS.

Tests: through two stream tasks, an encoder's 3840x2160@60 reaches the
next offer as 640c34 and 42e034 (and without the update it stays 3.1);
the largest layer counts, at its max bitrate; an automatic bitrate still
moves the layer once, not per frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:28:05 +03:00
selikhovandClaude Opus 5.5 77989aedb9 Merge the identity defaults: the TeamSpeak identity replaces Voelin's own once
Voelin's auto-made identity gives way to the official client's default
on the first start that finds one, and that choice is remembered (store
schema 4 records each identity's origin and the default). Settings has
an Identities section with "Use as default", and the vendored key
decoder no longer rejects private keys that start with zero bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:14:03 +03:00
selikhovandClaude Opus 5.5 df4f534022 Streamer: convert pictures in memory on the GPU too, for VA-API encoders
Measured at 7680x4320@60 with av1_vaapi at 60 Mbit/s, the CPU path made
27 fps: the pyramid converted each frame to I420 on every core (4.6 ms),
then the encoder thread interleaved it to NV12 and uploaded it into a
VA-API surface on one thread (`encode_with`), 20 ms of its 36.7 ms per
frame, so 81 frames in 5 s were dropped. 3840x2160@120 with h264_vaapi
made 84 fps the same way.

While every encoder takes GPU frames, a picture in memory (shared memory
from the portal, X11, wlroots, the studio's composite, the test pattern)
now takes the GPU path the DMA-BUFs take: `GpuConverter::convert_memory`
copies it as it is (BGRx or RGBx) into a VA-API surface of its own and
converts and scales that for every layer. That copy is all the CPU does:
5.7 ms of the 11.9 a 7680x4320 frame takes (the rest is the GPU's upload
and conversion), one thread, because eight copying threads saved 2 ms for
four times the CPU. Not waiting for the GPU was tried and was slower
(36 fps at 8K60 against 42: the encoder then waited instead).

The test pattern drew a 7680x4320 frame on one thread (230 MB of copies),
which alone kept the bench under 40 fps; it now draws in bands on four
threads, which the memory bandwidth limits anyway.

Tests: a BGRx and an RGBx picture through the GPU match the CPU's
conversion (40.4 dB at full size, 48.7 at half), and a streamer on the
test pattern in memory with two `h264_vaapi` layers sends every frame
through the GPU and decodes in the right colours (a red-blue swap fails
it). The bench's GPU count now covers both kinds of frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:13:32 +03:00
selikhovandClaude Opus 5.5 63ed9e3576 docs/ui.md: home, friends, messages and the settings pages, with pictures
The screens of this wave had no line in docs/ui.md, against the recipe
for adding a screen: what each shows, how it opens headless and which
engine data it reads. They now have a section with a table of the parts
(home, Library, friends, direct messages, the bell, search, events,
pictures in chat, join by address) and one of the settings sections, the
UI's new keys (ui.image_preview_kb, notify.*, video.*, identity.default),
the new VOELIN_OPEN switches, the new files in the structure, and the
limits of mapping the design onto TeamSpeak.

The screenshots of the home, the server page, the light theme and the
settings showed the screens before this wave; they are taken again, and
the new screens (friends, messages, the bell, search, events, Library,
Integrations, Profiles, and on the phone friends, messages, events, the
bell and the streaming settings) are added, all headless with sample
data and reduced to 256 colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:10:11 +03:00
selikhovandClaude Opus 5.5 55440a202d Merge the development branch: stream negotiation, best first then fall back
No conflicts. From the development branch: stream connections step down
when they connect but carry no media or never decode (another codec,
H.264 profiles, SRTP fallback), mDNS host candidates, larger stream
sockets, and the smoke test waiting for clients instead of pausing.
Nothing in the UI crate changed; this wave's screens are as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:02:09 +03:00
selikhovandClaude Opus 5.5 dde624257a Merge the development branch: stream negotiation, it-smoke readiness
Brings the negotiation work (voelin-stream: mDNS candidates, relays,
Chromium offers) and it-smoke waiting for clients instead of fixed
pauses, before the final checks of the identity default work. No
conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:50:57 +03:00
selikhovandClaude Opus 5.5 20cc18b556 Import identities whose private key starts with zero bytes
The identity tests failed now and then: one key in 256 has a private
scalar below 2^248, the TeamSpeak export stores it as a DER integer
without the leading zero bytes, and EccKeyPrivP256::from_tomcrypt passed
those fewer than 32 bytes to from_short, which refused them. Such an
identity from the official client could not be imported at all ("no
identity in this file"). The scalar is padded to 32 bytes now; a test
round-trips keys with one, two and 31 leading zero bytes through both
export forms. Local patch 12 in UPSTREAM.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 04:50:44 +03:00