Commit Graph
289 Commits
Author SHA1 Message Date
faumarayandClaude Sonnet 5.5 efc7db57a3 voelin-gpui: closing the window gives the engine time to send the session closes
The window's close sends CloseSession for every session (AppState::shutdown)
and ended the app straight into runtime.shutdown_timeout(2 s), which waits for
blocking tasks only and drops the engine's async tasks: the commands could go
with the runtime and leave ghost clients on the servers until they time out.
voelin-ui sleeps 500 ms in that case before shutting its runtime down
(app.rs after ui.run()); run() does the same now. shutdown() returns how many
sessions it told the engine to close, the close handler keeps that number for
run() (the App and its entities are gone once GPUI's loop has returned), and
run() waits CLOSE_GRACE only when it is not zero. A comment in run() tells the
slices that add another way to end the app to call shutdown() too.

The GPUI window cannot open a session in this slice, so the wait is not seen
end to end; the tests pin the count: with an engine a state holding a session
answers 1 and a state with none 0, without an engine 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 09:42:10 +03:00
faumarayandClaude Sonnet 5.5 a4694e944b voelin-gpui: a window that cannot open ends the app with the reason, not a hang
When open_main_window failed (no usable Vulkan or GL driver), run() stored the
error and called cx.quit() inside the launch callback. GPUI's Linux platform
calls that callback before it starts its event loop, and calloop's
EventLoop::run clears its stop signal on entry, so the quit was lost: the
binary stayed alive with no window and no message (reproduced on a private
Xvfb with VK_DRIVER_FILES, __EGL_VENDOR_LIBRARY_DIRS and LIBGL_DRIVERS_PATH
pointing nowhere: exit 124 under `timeout`, nothing in the log after "Creating
colormap"), and the `failure` that main was to print was never returned. The
quit is a foreground task now, which runs inside the loop: the same run exits
with status 1 and "cannot open the main window / Failed to create surface".

With no display server at all GPUI starts its headless platform, whose
open_window succeeds with a window that draws nothing, so the same silent hang
came from there; open_main_window refuses a compositor named "headless" with
"no display: neither DISPLAY nor WAYLAND_DISPLAY names a display server".

tests/launch_failure.rs starts the built binary both ways (the driver case
under VOELIN_X11_TEST_DISPLAY, skipped where the machine's driver is found
anyway; the display case needs none) and fails when the process outlives two
minutes; with the old cx.quit() the driver test fails after 120 s, with the fix
both pass in a third of a second. docs/ui.md ("Running it") says what a missing
driver and a missing display look like; CHANGELOG.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 09:41:53 +03:00
faumarayandClaude Sonnet 5.5 97d51fb226 CI and docs: libxkbcommon-x11-dev and libxcb1-dev, which the GPUI front end links
The release binary of voelin-gpui links libxcb.so.1 and libxkbcommon-x11.so.0
(`readelf -d`: libxcb, libxkbcommon, libxkbcommon-x11, libasound, libm, libc)
and opens libwayland-client.so.0, libvulkan.so.1 and libEGL.so.1 by name
(`strings`). The development packages of the first two were in no package
list, so a workspace build on the Ubuntu runner (CI builds every member)
would have failed to link: .github/actions/system-deps, the CI example in
docs/ci.md, docker/linux.Dockerfile ("the same libraries as CI") and the apt
line of docs/building.md name libxkbcommon-x11-dev and libxcb1-dev now, and
building.md and docs/ui.md say what the GPUI front end links and what it
opens by name (an earlier sentence of mine had all of them opened by name).
Not run: no Ubuntu runner or image here; this machine builds with Nix's
libraries, where the headers come from the same projects.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 08:10:37 +03:00
faumarayandClaude Sonnet 5.5 172d6247c6 docs: "The GPUI front end" in docs/ui.md, the spikes report's status and notes, README
docs/ui.md gains the section "The GPUI front end": what exists (the crate's
files and what each does), the root state and its three loops (the engine's
events through a foreground task, the one-second tick, Later for other
threads, and why Later exists: GPUI's AsyncApp is not Send), the tests and why
they use gpui-pre's test-support and not gpui-kit's, how to run it (what
GPUI needs at run time: Vulkan or OpenGL, lavapipe in software, a window
manager on X11), the development switches in a table, how the screenshots are
made (scripts/gpui-shot.sh, and the NixOS recipe over the spikes' headless
display) with the two swatch pictures, the theme in its two layers with the
mapping from the Voelin tokens to gpui-component's ThemeColor fields, the
mode, Inter and Lucide, and what is next: the plan's slices 1 to 9 with what
each takes from the Bridge, the conditions the spikes set (the emoji patch
before chat, a GPU run before the viewer, Wayland's preedit) and the steps
around them.

docs/design/gpui-spikes.md: the status paragraph says the foundation of step 3
landed (items 1 to 4 and 6 of its list; the shell is next) and points to
docs/ui.md; "Before step 3 can start" and "Dependencies" say the Rust move and
the ashpd move are done, with what zbus does with both features and the test
that calls ashpd with no tokio runtime; the size bullet gives what gpui-kit
adds to the root lock (279 entries, about 195 packages on Linux, two new
licences); a paragraph after the first slice's list says which items are done
and how.

README.md: the crate's bullet says what the window has so far.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 07:16:22 +03:00
faumarayandClaude Sonnet 5.5 2690b8a802 voelin-gpui: VoelinTheme (every token of theme.slint, light and dark) written into gpui-component, Inter, the client's Lucide icons, the swatch page
Two layers, as the spikes' report settled:
1. `VoelinTheme`, a GPUI global (theme/tokens.rs): the 43 colour tokens of
   ui/theme.slint for light and dark (generated from the Slint file by a
   script, then checked by the test below), the backdrop gradient, and
   `Metrics`: the radii, spacing, type sizes, weights, control and shell
   sizes and the two durations at a text size factor (font-scale: the
   sidebar's `264 * max(1, scale)` and the top bar's `max(44, control + 8)`
   included).
2. gpui-component's `ThemeColor`, written on every change (theme/components.rs):
   the base of the report's table (background, foreground, border, input,
   ring, overlay; primary with hover, active and foreground from the client's
   accent; secondary and muted from surface-2 and its raised steps;
   gpui-component's "accent", which is a hover background, from surface-3;
   popover; list, table, sidebar, title and status bar, tabs, switch, slider,
   scrollbar, link, selection; danger, success, warning and info with a hover
   and active made by mixing and a text that is white or the window's ink,
   whichever contrasts more) and the 28 `button_*` fields a theme file would
   derive from them (without them the buttons keep the default theme's
   blue). The mixing, the WCAG contrast and `readable` are `Rgba` methods with
   tests. The window's background is bg-app; the backdrop and bg-rail stay in
   `VoelinTheme` (gpui-component has no rail, and GPUI's gradient has two
   stops against Slint's three: the swatch draws the first and the last and
   says so).
The mode (`Choice`: system, light, dark) follows the window's appearance in
`system` (`observe_window_appearance` calls `set_system_appearance`; a light
or dark choice ignores the window) and sets the platform's window appearance
where the platform draws the frame (macOS; a no-op elsewhere). The text size
factor rewrites the metrics, the theme's font size (font-body) and radii.

theme/slint_parity.rs reads ui/theme.slint at test time (`include_str!`) and
compares every declaration of the `Theme` global with tokens.rs by name: the
colours (dark and light), every length with the file's own arithmetic (a
small evaluator of `*`, `+`, `max()` and token references) at four text
sizes, the weights, durations, the font family and the backdrop's stops, and
fails on a name on one side only or a declaration kind it does not know. A
mutation check (accent, radius-md and the top bar's formula changed in
tokens.rs) failed the tests with the names of the tokens, then was reverted.

fonts.rs adds the five Inter TTFs of the Slint front end (`include_bytes!`)
to GPUI's text system; the theme names the family. build.rs turns the 147
Lucide 1.48 SVGs of crates/voelin-ui/ui/assets/icons into a sorted table of
`include_bytes!` (std only, no new dependency) that assets.rs serves as
gpui-component's `icons/<name>.svg` before gpui-kit-assets' Lucide 1.43
catalogue (1,830 paths, which answers the rest and, as it does, an error for
a path it lacks); a test checks that `mic.svg` is the client's, differs from
the catalogue's, and that other icons fall through.

Development switches (dev.rs): `VOELIN_OPEN=swatch`, `VOELIN_DEV_THEME=
dark|light|system`, `VOELIN_FONT_SCALE`, `VOELIN_WINDOW_SIZE` (the Slint
front end's names where they exist). swatch.rs is the page: the 43 colours in
the groups of docs/ui.md's "Theme tokens" table with name and value (a test
checks each token is in exactly one group), the backdrop, radii, spacing,
the type scale, buttons, switches and checkboxes of gpui-component and 16
icons; it scrolls when the window is smaller. scripts/gpui-shot.sh makes the
screenshot headless the way scripts/shots.sh does for Slint (xvfb-run, or
GPUI_SHOT_HEADLESS=1 under headless.sh on NixOS; Wayland, the session bus
and the XDG directories out of the environment), then closes the window with
Alt+F4 and reports how the app ended. docs/ui/gpui-swatch-dark.png and
-light.png are its output (Xvfb :97, openbox, lavapipe via wgpu's Vulkan
backend, the debug binary, 1440x960, truecolour: a 256-colour reduction would
change the tokens' values; the Slint pictures live in docs/screenshots/, the
task asked for docs/ui/).

Checked on Rust 1.95.0: fmt, clippy -D warnings --no-deps (all targets, the
build script included), `cargo test -p voelin-gpui` 26 tests, cargo deny,
`scripts/notices.sh --check`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 07:07:10 +03:00
faumarayandClaude Sonnet 5.5 8f234e0051 voelin-gpui: the GPUI front end's crate on gpui-kit 0.8.1, a window titled Voelin that opens and closes
The second front end of plan section 6 step 3: crates/voelin-gpui with
the binary voelin-gpui, in the workspace's members and default-members next
to voelin-ui (two binaries until parity; voelin-ui stays the app).
gpui-kit is a workspace dependency pinned `=0.8.1` (the version the three
spikes were rebuilt on in the commit before). The crate asks for gpui-kit
and the app's name and id from voelin-platform (APP_NAME as the window's
title, APP_ID as its app id); `run()` opens one window whose
`on_window_should_close` ends the app, and returns the error when the
window cannot be opened (no display).

Checked on Xvfb :97 (headless.sh: openbox, a private bus, lavapipe through
wgpu's Vulkan backend, state under .scratch): the debug binary opens a
window named "Voelin" (xdotool search) in 0.3 s and ends with exit code 0
when openbox sends the close request (Alt+F4).

Cargo.lock: 279 more package entries (208 new names; no existing version
moved, other versions of 61 names were added beside theirs): GPUI's
gpui-pre family, wgpu 30, gpui-component with its Markdown, HTML, chart and
table support, cosmic-text, the Linux platform crates. The root workspace
already carried Slint's and the codecs' dependencies, so this is 195 new
packages on Linux, not the ~1,000 of the spikes' lock (which has the root's
packages too). deny.toml and about.toml name the two licences no crate of
the tree had: 0BSD (enum-iterator and enum-iterator-derive, under
gpui-component) and CC0-1.0 (notify 8, the file watcher of gpui-component,
and tiny-keccak, under the X input method client of gpui-pre-linux); no
other licence, no advisory, no ban and no source is new (`cargo deny
--locked --workspace check`: advisories, bans, licenses and sources ok).
THIRD_PARTY_NOTICES.md is regenerated (scripts/notices.sh, cargo-about
0.9.2, no warning; `--check` clean). There is no new clarification: cargo-about
finds every text.

Docs: CHANGELOG, docs/ui.md (the structure tree names the crate and the
intro the second front end), docs/building.md (the dependency list: Vulkan
or OpenGL at run time, what GPUI loads by name, a window manager on X11; no
new development package), README (the crate list and the run command) and
CLAUDE.md, which had no crate sentence (it only says "own crates"): it now
says there are two front ends on one engine and what they share.

Checked on Rust 1.95.0: cargo fmt and cargo clippy -D warnings --no-deps
over the own crates (all targets); cargo deny; scripts/notices.sh --check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:46:59 +03:00
faumarayandClaude Sonnet 5.5 6fc84e9e44 spikes/gpui: rebuilt on gpui-kit 0.8.1 (gpui-pre 0.3.10, wgpu 30), nothing regresses; the pin result in the report
0.8.1 came out on 2026-10-26, a day after the 0.8.0 the three spikes were
measured on. `=0.8.1` in spikes/gpui/Cargo.toml and `cargo update -p
gpui-kit --precise 0.8.1` move 40 packages of the lock (1,069 entries
before, 1,065 after): gpui-kit, gpui-base, gpui-component and
gpui-kit-assets to 0.8.1, the 19 gpui-pre crates to 0.3.10, wgpu 29 to 30
(naga 29 to 30), taffy 0.13 to 0.15. No source change: the spikes build as
they were, release, on Rust 1.95.0.

One run of each README's measurement command on Xvfb :96 (openbox, a
private bus, lavapipe through wgpu's Vulkan backend, state under .scratch)
with the machine at a load average of 64 to 80 (the 0.8.0 runs: 28 to 53):
- composer drive.sh 8 PASS, ime.sh 3 PASS, windows drive.sh 11 PASS, no FAIL;
  the composer's screenshot differs from the committed one in 579 of 900,000
  pixels;
- video: static 1440p 22.7 fps shown at 259 % CPU (11.4 % of CPU per fps,
  0.8.0: 11.7), raw 1440p60 13.4 fps at 174 % (13.0; 0.8.0: 12.5 to 13.1),
  memory flat with drop_image, +408 MiB in 10 s without it; windows-both
  123 % of a core, the preview shown 14.4 of 15 a second, memory flat.
The frame rates are lower than 0.8.0's because of the load; the cost of a
shown frame is the same. The report says plainly that the 42 to 49 fps raw
1440p figures were not reproduced on 0.8.1, only the cost per frame was.

So the pin is gpui-kit 0.8.1, exactly. docs/design/gpui-spikes.md ("The
version to pin", the status paragraph, the setup table) and the spikes'
README say so; its figures stay 0.8.0's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:36:31 +03:00
faumarayandClaude Sonnet 5.5 5ce5c0db82 Rust 1.95: rust-toolchain.toml, the workspace rust-version and the gateway image; the lints 1.95 adds
gpui-kit (every gpui-pre 0.3.x) calls std::hint::cold_path, stable since
1.95.0, so the client moves from 1.94 to 1.95 before the GPUI front end
can build (docs/design/gpui-spikes.md, "Rust 1.95 or newer"). rustc 1.95.0
(59807616e 2026-04-14), cargo 1.95.0, clippy and rustfmt of the same
release were used.

rust-toolchain.toml and the workspace's rust-version say 1.95;
crates/voelin-gateway/Dockerfile builds from rust:1.95-bookworm (cargo
refuses a 1.94 image once rust-version is 1.95). docs/building.md names
the Rust version for a local build; docs/ci.md says a channel change in
rust-toolchain.toml is all the runner needs (they named no version
before).

Clippy of 1.95 adds `collapsible_match` for an `if` that is a match arm's
only statement, `unnecessary_sort_by` and `manual_checked_ops`; they
flagged seven spots in four crates, none a behaviour change:
- voelin-media capture::forward: a let-else instead of a match whose arm
  holds one `if`;
- voelin-media ffmpeg::sys: `sort_by_key` with `Reverse` (two places);
- voelin-media studio:📷 `checked_div` for the frame interval;
- voelin-stream peer and session: the condition in a local before the
  `if` (a guard would carry a side effect: `remove`);
- voelinctl engine and session: the same.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:00:40 +03:00
faumaray 02b2b470fc Merge remote-tracking branch 'origin/main' into phase5/gpui-spikes 2026-10-27 04:59:04 +03:00
faumarayandClaude Fable 5.1 ee971f30bc docs/design/gpui-spikes.md: the matched --no-drop re-run claims no cause for its rate (review minor)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-27 04:59:04 +03:00
faumarayandClaude Sonnet 5.5 8c172f4dc5 spikes/gpui/README.md: the nightly clippy command; report: 9.6 as measured
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 04:54:24 +03:00
faumarayandClaude Sonnet 5.5 6f2c64aa63 docs/design/gpui-spikes.md: video headline labelled raw, quiet-window pipeline figure, the --no-drop XDamage row explained
The headline video figure (status table, the go paragraph, the software
bullet) is the raw source, frames from memory with no decoder: it now
says so. The pipeline rows (22.9 fps at 1080p, 9.6 at 1440p) were load
artifacts: the page now carries the reviewer's quiet-window run of
pipeline-1440p60 (40.8 fps shown, XDamage 41.3, encoded 50.4, decoded
49.5, process 1047 %, encoder 454 %, llvmpipe 476 %, memory flat, load
23.5 / 30.6; not repeated here, the load stayed above 40), says the
pipeline rows scale with free CPU (the in-process encoder takes 450 to
1000 %) and that the cases are bound by CPU contention, the encoder being
the largest user. The go verdict stays.

The XDamage exception of the --no-drop case is a measurement artifact,
not frames counted and not presented: measure.sh runs damage-count for
69 s with 10 s of warm-up while the case lasts 12 s with 2 s, so the mean
spreads two seconds of window over 59. Second by second the counts match
(13.8 against 13.6; the reviewer's run 5.2 against 5.1) and a re-run with
the counter set to the case's own length gave 6.8 against 7.0 (Xvfb :93,
lavapipe, load 43 / 47). The video README's case row says so. No code
change.

The status paragraph records this round in two sentences (gpui-kit 0.8.1
of 2026-10-26 still unmeasured).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 04:51:49 +03:00
faumarayandClaude Sonnet 5.5 24069ac170 spikes/gpui: clippy -D warnings clean on nightly (as_chunks, bounded range)
Nightly's clippy flagged the two chunks_exact(4) loops of
common/src/bgra.rs (chunks_exact_to_as_chunks): both now use
as_chunks::<4>() and as_chunks_mut::<4>() (stable since 1.88). Behind
them, because clippy stops at the first crate that fails, it flags the
raw source's `for n in 0u64..` in video/src/main.rs
(for_unbounded_range): now `0..=u64::MAX`, the same loop.

`cargo clippy --locked --all-targets -- -D warnings` is clean on 1.95.0
and on nightly 2026-10-24 (through shell.sh); the README and the
report's clippy sentence say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 04:45:53 +03:00
faumaray 9c4bd29cb2 Merge remote-tracking branch 'origin/main' into phase4/keystore-task34
# Conflicts:
#	CHANGELOG.md
2026-10-27 04:34:14 +03:00
faumarayandClaude Fable 5.1 997c07b70e docs: the 17.7 row says where the one-second bound went (review minor of the keystore minors round)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-27 04:34:02 +03:00
faumarayandClaude Opus 5.5 5c36aae55e docs: the spikes' nightly clippy result as it is
The report and the spikes' README said the spikes pass clippy on 1.95.0
and on nightly; the final run's nightly clippy (1.101.0-nightly of
2026-10-23) has a lint 1.95 does not, chunks_exact_to_as_chunks, which
flags two chunks_exact(4) loops in spikes/gpui/common/src/bgra.rs. Both
now say so; the code is left as it is (clippy on 1.95.0, the pinned
toolchain of the spikes, is clean at every commit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:24:09 +03:00
faumarayandClaude Opus 5.5 3167817b89 docs/design/gpui-spikes.md: the three GPUI spikes measured, go for all three
Plan section 6 step 1's report: the setup (Xvfb :91 with openbox, Mesa
lavapipe through wgpu's Vulkan backend, gpui-kit 0.8.0, Rust 1.95.0, the
load of each run), and per spike the figures and checks with a go/no-go
against the plan's criteria:

- video: img() with the port of video.rs' delivery holds 42 to 49 fps at
  1440p60 and 55 to 58 at 1080p60 on the software device, the static
  control 60 to 62; drop_image keeps the atlas flat (without it +1.9 GiB
  in 10 s); a new 1440p picture costs GPUI's thread 6 to 7 ms (a new atlas
  texture and two copies); a persistent texture needs a GPUI change; the
  Slint demo stream compared on the same display at its 720p30;
- composer, IME, chat lines: all checks pass, X11 preedit with fcitx5 and
  Pinyin works, Wayland preedit not exercised headless; colour emoji in
  U+1F600-U+1F640 need a one-line GPUI patch (tried in a scratch build);
  InteractiveText loses clicks shorter than a frame;
- second window: shared root entity, focus, fullscreen, close and the X11
  global hotkey all pass; the shared preview's cost.

Settled for step 3: gpui-kit =0.8.0 (0.8.1 noted), Rust 1.95 (the 1.94
error), ashpd on async-io, the wgpu renderer (not blade) on X11 and
Wayland, Inter and Lucide, the theme tokens against gpui-component's, the
first slice, the plan's risks restated, the open choices, and what this
attempt changed in the interrupted one's work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 03:18:23 +03:00
faumarayandClaude Fable 5.1 4491ecee25 Merge main (3930ef2) into phase5/ui-vm-2
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 10:45:33 +03:00
faumarayandClaude Fable 5.1 785bbd050b docs: the three minors of the Opus gate of phase5/ui-vm-2
docs/ui.md: the app.rs row of the step-3 table points the toolbar and
tree refreshes at servers/bind.rs, where they live; app.rs only calls them.
voelin-ui-vm host.rs: the doc of Update::rest matches the events module
(the Studio's stream, a changed setting, the offline-message answers; the
watched and shared streams are state and go through the stream effects).
CHANGELOG: the two visible fixes of the branch are named instead of
"nothing changes on screen".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 10:45:33 +03:00
faumarayandClaude Sonnet 5.5 8c891a057e docs: session-seam 17.6 records the double listing in the trait's sign_out
When the device key's own row carries a device-only binding, the provided
KeyStore::sign_out of VoelinProtocol (c5bb6b9) lists the key twice in
SignOut.unbound: in its loop over the identities bound to the account and in the
Auto branch. The tests of this repository use contains and do not mind (a probe
counted two entries for the key with either value of bound_existing_key); the
fix is a follow-up for VoelinProtocol.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 09:16:21 +03:00
faumarayandClaude Sonnet 5.5 9f720d75bd docs: rewrap the four lines of the key store text that passed 80 columns
Two in docs/architecture.md (the sign-out paragraph and item 2 of open
question 10) and two in docs/session-seam.md 17.6 (the voelin-store leak
bullet), refilled to the width of the files. The words are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 09:15:31 +03:00
faumarayandClaude Sonnet 5.5 9e9db0e160 docs: CHANGELOG for the key store and the leak, and the old protocol revision named nowhere
CHANGELOG: one line under Changed for the sign-out that keeps the device key
and the identity text that errors no longer repeat.

docs/session-seam.md: the four places that named the old protocol revision (the
reading list of the design, slice 1, the conformance run, the lock merge of the
gate round) are records of that round; they now say "the pin of that round" and
name c5bb6b9 only where it is the revision the statement was checked at (the
suite has 17 cases in the same order at c5bb6b9 too).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 07:08:51 +03:00
faumarayandClaude Sonnet 5.5 18b280df7e voelin-store: a damaged TeamSpeak identity row is reported by its kind of damage, never by its text
Store::identity and Store::identities read the stored JSON of a TeamSpeak
identity with `?`, so a row whose data was damaged outside the client came back
as Error::Json carrying serde_json's message, and that message quotes a value
it refuses: tsproto reports a key that does not import as an invalid value, the
key string and all. The error reaches status lines, events and logs.

identity_from_json classifies the error as voelin-core's ts::identity::from_json
does (voelin-core depends on voelin-store, so the classification is here too):
Error::Identity { damage: IdentityDamage, line, column } says malformed, cut
short, not an identity or unreadable, and where, and nothing of the text.
Error::Json stays for the bookmarks and settings, which hold no secret.

The key store was checked as the recorded leak (docs/session-seam.md 17.6)
names it, and does not leak: check_teamspeak (keystore.rs) drops the parse
error with `let Ok(..) else`, Columns::level uses `map_or`, and the warning of a
damaged binding names the row's kind and uid. A test pins that too.

tests/identity_text.rs damages a row six ways (a key that does not import, a
counter of the wrong type, syntax, a text cut inside its key, bytes that are no
UTF-8 as a BLOB and as TEXT) through a second connection, calls everything of
Store and SqliteKeyStore that reads or writes it, and looks through the errors
(text, Debug and sources) and every log line at TRACE (a capturing subscriber in
tests/support) for any 8 characters in a row of the row's data. A control shows
that serde's own message quotes the value and that the capture sees a warning.
With identity_from_json returning the old error the first test fails, naming
the quoted key; the key store test is a guard.

docs/session-seam.md 17.6: the leak bullet is closed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 07:08:35 +03:00
faumarayandClaude Sonnet 5.5 412f909d18 docs: the key store keeps every key at sign-out; the three parts of open question 10 and the duties of the GPUI client (Phase 2 task 34)
docs/architecture.md, "Identities": the sign-out wording follows the trait of
c5bb6b9 (the device key stays, unbound, whether it predates the account or not;
the account record and the synced copies are what it deletes; the release is
the service's operation and the same local sign-out; the deletion of an account
releases every device key and the same sign-out is its local half), and records
the screens' duties as the GPUI client's: the sign-out dialog with "Forget this
device's identity" and an export first, the release in Settings -> Account, and
the delete-account dialog, which must warn that the account's servers become
unreachable and offer an export of the device keys first. The reasons of the
refusal of a synced device key and of the checkpoint are reworded to match
keystore.rs.

docs/session-seam.md 17.6: a bullet for the key store's follow-up, with what it
did and what it did not need (no release call, no "released" record).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 07:02:31 +03:00
faumarayandClaude Fable 5.1 8614b120fe docs: load.md records the review's undecodable_video flake and the seven unformatted intermediate commits
The review's 100 whole-binary runs of the head saw
media::tests::undecodable_video_is_noticed_through_the_pipeline fail once
at load 106-146 (untouched by the round); it joins "Seen and left alone".
cargo fmt differed at seven intermediate commits, not six (the shell-only
5c029a9 sits on the unformatted tree); the orchestrator waives per-commit
rustfmt for them, fixed forward in 94195db, history not rewritten.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 06:11:47 +03:00
faumarayandClaude Sonnet 5.5 f791d3926f docs: testing/load.md names its own commits
The record's table said "this one" for the commit that adds the page; there
are two, the page and its record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 04:54:19 +03:00
faumarayandClaude Sonnet 5.5 376925a96e docs: testing/load.md records the round, its commits and what ran
The record of the round at the top of the page, in the form of the earlier
rounds' records: the branch and its base, the fallback for the unregistered
mao-* agents, the commit table (which commits are the cut-off run's, which are
this attempt's, which are beyond the list), the two hunks dropped from the
cut-off run's tree, and a table of the checks that ran on the final tree. The
scope test's row gets the failures of the earlier tree that only had the first
half of its fix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 04:54:03 +03:00
faumarayandClaude Sonnet 5.5 d4ccb8c8b8 docs: testing/load.md, how to make a machine busy and what the load-only tests assert
The recipe of the round (32 busy loops beside many runs of a test binary, a
build before and one after run alternately), the rules the fixes followed, the
table of the tests that failed only under load with their counts before and
after, the account-change test of the seam follow-ups (not reproduced; the
timing of its steps against its deadlines, and the reading of the code that
found no race), the tests seen at heavier load and left alone, and the
engine stage of the live smoke (ts6_banners failed because the test shared the
TeamSpeak 6 server with the others; what the smoke still does not do
reliably). docs/ci.md points to it from the section on the job image.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 04:34:05 +03:00
faumarayandClaude Fable 5.1 e807df40e5 docs: ci.md quotes the right git error, removes root's files, names the bare clone, follows main's loopback and D-Bus tests; .scratch/ ignored
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 02:04:08 +03:00
faumaray a8dbc5ba74 Merge remote-tracking branch 'origin/main' into phase5/tests-under-runner 2026-10-25 02:03:16 +03:00
faumarayandClaude Sonnet 5.5 6c8d4bbb61 Bring the status of docs/ui.md up to date with the merge of main 6e0df51
One paragraph: what the merge brought (the session seam, the CI deploy key, the
media codec test and the seam follow-ups, none of it in the UI crates), that the
.set_ counts of the table were counted again on the merged tree and stand, and
where the colour of a chat's avatar is chosen (servers::logic::conversation_tint,
pinned by a test).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 23:37:10 +03:00
faumarayandClaude Sonnet 5.5 9e7452ec2a Merge main (6e0df51) into phase5/ui-vm-2
Main gained phase0/ci-private-dependency (the CI deploy key and the checks
action), phase5/media-codec-test (a media test stated for machines without an
H.264 encoder) and phase4/seam-followups (five flaky tests fixed, the
identity-text leak closed, docs/session-seam.md 17.8 onwards). None of it
touches the UI crates: the merge is clean, with no conflict, and Cargo.lock
and THIRD_PARTY_NOTICES.md are unchanged by it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 23:17:40 +03:00
faumarayandClaude Sonnet 5.5 26ee8c38c1 Document the fields of the mirrored bridge structs and lift the exemption
The gate minor "field docs on the mirrored bridge structs" was answered with
`#![allow(missing_docs)]` on `bridge` and `studio_bridge`, and the crate's
comment said 400 or so fields. The two modules have 559 pub fields; 210
carried a comment of the .slint files and 349 (288 and 61) had none there.
Each of those is described now, from the code that fills it (the producers
in the view model and in voelin-ui, the settings keys' own documentation,
the gateway protocol's types), and the allow is gone: `#![warn(missing_docs)]`
holds for the whole crate and clippy -D warnings fails on a field without a
comment (checked by deleting one). docs/ui.md and lib.rs give the real
numbers.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:56:38 +03:00
faumarayandClaude Sonnet 5.5 370eaf94ed Point the references to the controllers the split removed at their folders
`servers.rs`, `chat.rs`, `streams.rs` and `settings_page.rs` of voelin-ui
are `servers/`, `chat/`, `streams/` and `settings_page/` since the split
(the Slint side in `bind.rs`, the decisions in voelin-ui-vm), and
`adopt_server_name` is in the view model's `events`. The comments of
`events.rs`, `app.rs`, `studio/bind.rs` and `dev/bind.rs`, and the
add-server section of docs/ui.md, named the old files. The "before" names in
the table of the `.set_` counts stay: they are the files as they were.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:44:14 +03:00
faumarayandClaude Sonnet 5.5 b439b9fbb2 Count the status line's calls in docs/ui.md as the files have them
Of the 230 `.set_` lines of the seven files at ad20979, 36 are calls of
`set_status(`, not 37: the 37th hit was `set_status_text`, the Bridge write
inside `set_status`, which is one of the ten direct writes already. Say so,
and give the share of Bridge writes (186 of 230) next to the two fractions.
`messages.rs` has 11 `.set_` calls since the offline message's text is taken
in by the view model (the row said 12).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:43:51 +03:00
faumarayandClaude Sonnet 5.5 91d70702f3 Take the text of an offline message in before the redraw, not after it
The social split left the offline message's state change in the front end's
`rest` events, which `perform` handled after it drew the conversations:
`refresh_chats` drew the open message while `dm.mail` was still empty and
the inbox row was still unread, and nothing drew the page again. Before the
split `social_event` wrote both ahead of `social_refresh`.

`Event::OfflineMessage` is now taken in by `social::logic::event` like the
other offline events: the text is `Social::mail`, the inbox row turns read,
and a failure is the status line. `events::apply` no longer parks the event
in `rest`, so a tape test in `voelin-ui-vm` sees it (the mutation that
parks it fails the test). `perform` also handles what is left in `rest`
(a setting, the studio's stream, the request answers) before it draws, as
every such event ran before the redraw ahead of the split.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:33:29 +03:00
faumarayandClaude Sonnet 5.5 172bee5337 Say what the tests print when they skip only as precisely as the code does
The table of docs/ci.md quoted one skip message per row, but the tests print
several wordings per piece (for the H.264 encoder: "skipped: no H.264
encoder", "skipped: needs VP8 and H.264 encoders", "no h264_vaapi or H.264
decoder, skipped"; for FFmpeg: "FFmpeg not installed, skipped", "no FFmpeg with
libavformat, skipped", ...), and some live tests return without printing. The
rows now say a skipped line naming the piece, and keep an exact string only
where the code has exactly that one.

The row on DNS and the internet sat under a column headed "The image has no",
which read as if the job had no network; it has, for apt, rustup and crates.
The column is now headed "A test cannot count on" and the row says the tests
use no DNS or internet and names the #[ignore]d ones that would.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:11:42 +03:00
faumarayandClaude Sonnet 5.5 ac6937289d Name in docs/ci.md the job image the runner really registers
Runner setup told to register ubuntu-24.04:docker://ghcr.io/catthehacker/
ubuntu:act-24.04 while the new section on the tests says the test step runs in
docker.gitea.com/runner-images:ubuntu-24.04. The runner of this machine
(gitea-runner-performance, register script of its NixOS unit) is registered
with ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04, and
`docker ps` shows its CI tasks running that image, so the label line was the
stale one. It now names that image, the network list names its registry in
place of GHCR, and the tests section says it is the image of the
ubuntu-24.04 label.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:11:03 +03:00
faumarayandClaude Sonnet 5.5 cd08498092 Make the documented image run start cargo, and its VoelinProtocol mirror work
The docker run that docs/ci.md prints for the tests under the job image hung
for ever once the apt and rustup setup was done: bash -c execs its last
command, so xvfb-run became the container's process 1 and never started cargo
(probed: with the runner image and xvfb installed, xvfb-run -a as process 1
stays up with an idle Xvfb, and the same command under --init finishes). The
command now has --init. The runner is not affected: it starts its steps with
docker exec.

The hint for the private dependency is part of the block now, so the block
runs as printed: the bare clone is mounted at /protocol.git (it was never
mounted into the container before) and `git config` runs with -C /, because a
git worktree's .git file points outside the /src mount and git config in /src
exits 128 with "gitfile does not point to a valid repository".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 19:11:03 +03:00
faumarayandClaude Fable 5.1 6e0df5178e Merge phase4/seam-followups: the gate's identity-text minor, the H9 edge list, five flaky tests
CI / Linux checks (push) Failing after 27m35s
An unreadable TeamSpeak identity is refused without its key in the text (the
classification of from_blob shared as from_json); VoiceOptions fields and
Backends::set_account documented; docs/session-seam.md 17.6 holds the complete
engine/ts edge list for the second half; improve_level, the contacts database
reopen, the banner log subscriber, the two localhost tests and the portal proxy
test made deterministic. Sonnet review accepted; its five minors (two more
DatabaseBusy/port races in tests/gateway.rs, a 1-in-130 voice handshake flake,
the from_json doc, the proxy wrapper's success check) go to the next
test-hygiene round.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-24 17:32:58 +03:00
faumarayandClaude Sonnet 5.5 8541d7c9e5 Document what the Linux job image lacks and how the tests cope
The test step runs as root in docker.gitea.com/runner-images:ubuntu-24.04
with only the apt packages of the system-dependencies action. docs/ci.md now
says how to run the CI's test command in that image with --no-fail-fast, and
lists what the image has no (a regular user, sound card, PipeWire daemons, a
session bus, GPU and VA-API, FFmpeg, an H.264 encoder, Wayland, a browser, the
TeamSpeak dev servers) with what each kind of test does about it. It also
records that two voelin-core tests fail on a machine whose ::1 swallows
connections, whatever the change under test is.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 17:16:19 +03:00
faumarayandClaude Sonnet 5.5 f374f5797b Record the round after the gate in the design of the session seam
17.8: the commits of the follow-up round, the five flaky tests (all fixed, how
each was reproduced and what the evidence is, including the two that are
rewrites and the one that was never seen again), and what ran on both
toolchains: fmt and clippy per commit, the lib suite ten times in a row on
each with no exclusions, the integration tests, cargo doc, the workspace check
with the environment that made it build, and the smoke script before and after
on fresh stacks. The status line names the round.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 15:26:46 +03:00
faumarayandClaude Sonnet 5.5 d677273f06 Bring docs/ui.md up to date with the splits and what is left of step 2
The numbers of the .set_ table are counted with the command the text names, all
on one base (the files before this round's splits, ad20979) where the text
mixed the counts before and after the event move (chat.rs 38 or 33, servers.rs
37 or 32), and now include the social, dev and host files that the text left
out. Plan section 6 step 2 is stated as done, with what is left for the GPUI
step: the rest of app.rs, the small controllers, and the events page of
events.rs, which is no dispatch (the dispatch moved to voelin_ui_vm::events).
The two mirror modules' field docs are said to be exempted by the crate's lint
(349 fields), not documented. CHANGELOG.md's entry for voelin-ui-vm names the
areas that moved.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 15:01:01 +03:00
Aleksey Selihov 9714dc2226 Merge pull request 'CI and release builds read the private VoelinProtocol repository' (#1) from phase0/ci-private-dependency into main
CI / Linux checks (push) Failing after 22m41s
2026-10-24 11:46:50 +00:00
faumarayandClaude Fable 5.1 b8ba43f0c9 Check each OpenSSH tool on its own and stop only an agent this job started
CI / Linux checks (pull_request) Failing after 21m18s
command -v with two names returns 0 when one resolves, so the guards were
weaker than they read. The release workflow's final step killed whatever agent
SSH_AGENT_PID named; it now needs the marker the start step writes after it
succeeded. Two documentation lines re-wrapped (the review's three minors).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-24 14:24:19 +03:00
faumarayandClaude Sonnet 5.5 96ff0e0028 Write down the complete edge list between the engine and src/ts for H9
17.6 of docs/session-seam.md named two engine-to-ts edges; the Opus gate of the
merge found the rest. Each line was checked with rg and cargo tree:

- the engine into src/ts: Backends::default and register_teamspeak, the uid and
  id rule of the projection, gateway.rs from_blob/to_blob (H5), the public
  voelin_core::ts paths and their users in voelinctl and the UI crates, the
  API docs that link into ts, and the test-only edges;
- what a TeamSpeak connector in another crate cannot do with
  Backends::register (no LocalCtx, no StreamPort): streams across the crate
  boundary need H2 or a public extension trait;
- src/ts into engine-private items (link, stream, files, offline, the crate
  root, settings), with the conclusion that the "by git tag" step needs H1 and
  H2 or a shared vocabulary crate, else voelin-core and voelin-gateway-ts form
  a cycle;
- what else keeps tsclientlib and tsproto in voelin-core's tree, so that the
  exit check needs H5 too, and voelin-store, voelin-stream and
  voelin-gateway-proto lose the dependency;
- the split of stream.rs;
- the same key-quoting leak in voelin-store's Store::identity, not closed.

The H9 row of 11.2 points to the list and no longer says the exit check holds
after H1-H3 alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 14:20:02 +03:00
faumarayandClaude Sonnet 5.5 371e4d77c8 Merge main (c60acf9, the session seam) into phase5/ui-vm-2
The engine of main runs on voelin_proto::link::Session; this branch had split
the Slint controllers into <area>/logic.rs (voelin-ui-vm) and <area>/bind.rs
(voelin-ui) before that merge and was never reviewed. One conflict, the one
the Opus gate of the seam merge predicted:

- crates/voelin-ui/src/servers.rs (modify/delete): this branch had split the
  file into servers/bind.rs and voelin-ui-vm's servers/logic.rs; main had
  changed the file for the seam (docs/session-seam.md 17.3). The file stays
  deleted and the changes of main are made where the code now is:
  servers/bind.rs sends ts::identity::to_blob(&identity) in ConnectVoice and in
  both ObserveGateway sends, builds voelin_core::QueryLogin {address,
  allowlisted: false} with voelin_core::QueryTransport for ObserveQuery, names
  ts::identity::DEFAULT_NICKNAME, and its tests import ts::identity::{Found,
  LaunchImport}; servers/logic.rs imports ts::identity::LaunchImport (and
  links ts::identity::import_new), and voice_options keeps the eager
  ts::versions::resolve for the message and assigns Some(spec.clone()) to
  VoiceOptions::client_version (the engine resolves the spec when it
  connects).

Cargo.lock merged without a conflict and differs from main's only by the edge
of voelin-ui-vm to roxmltree, which this branch added (d9de95b).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 14:18:43 +03:00
faumarayandClaude Sonnet 5.5 e5956e40e9 Set CARGO_NET_GIT_FETCH_WITH_CLI in the CI workflow's own env as well
The checks action exports it through GITHUB_ENV, which depends on the runner
handing a composite action's environment file on to the later steps of the
job. If a runner did not, Cargo would silently go back to its built-in git
client, which cannot use the deploy key's IdentityFile, and fail with a
confusing authentication error in the first cargo command. The workflow-level
env does not depend on that, so both are set; the access check step still
exercises the key, the host key and the ssh configuration through git.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 13:45:56 +03:00
faumarayandClaude Sonnet 5.5 6e774873bf Document how CI and the release builds read the private VoelinProtocol repository
docs/ci.md gets a "VoelinProtocol access" section: why every cargo command
needs the access (Cargo resolves the whole workspace, so the gateway image
needs it too), the deploy key and the repository secret
VOELIN_PROTOCOL_DEPLOY_KEY, what the checks action, the release workflow and
the Dockerfiles do with it, why Cargo is told to use the system git, the
committed host key line with its fingerprint and the two commands that
re-check it, the effect on fork pull requests, and what each failure message
means. The runner setup no longer says that a fresh checkout does not build
there. docs/building.md says that the Docker builds need an ssh-agent with a
key that can read VoelinProtocol (--ssh default) and summarises the CI setup;
the plain docker build commands in it and in docs/gateway-admin.md gain
--ssh default, without which they would now stop at the cargo step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 13:44:44 +03:00
faumarayandClaude Fable 5.1 37f8fe9bc1 Say what the transfer commands did before f1df886: a notice and a hanging report, not a dropped connection
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>
2026-10-24 12:57:30 +03:00