Commit Graph
325 Commits
Author SHA1 Message Date
faumarayandClaude Fable 5.1 e61919ebf4 Merge phase5/gpui-tree: slice 2 of the GPUI front end, the channel tree and the members panel as cached panes with per-area signals (plus the shell minors' three preliminaries)
CI / Linux checks (push) Successful in 31m33s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-28 07:13:40 +03:00
faumarayandClaude Sonnet 5.5 9139e50b5e docs/ui.md: the server card's banner has a home in the next slice's list
The table of the Bridge's properties says server_banner is not drawn by the
sidebar's server card and that the voice page and call bar slice takes it;
that slice's item in "What is next" now names it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 04:18:55 +03:00
faumarayandClaude Sonnet 5.5 4141b9b3aa docs/ui.md: the meter and the live runs again on the build with the review's fixes
The release build of bad5312 on my own displays: idle 0.6 % and no pane
rendered, a sample person talking 10 times a second rendered the sidebar and
the members panel 10 times a second and no other pane; against the TeamSpeak 3
development server the double-click join, the password prompt (Join dimmed,
Enter on an empty field and Escape, a wrong password asked again in words, the
right one joining) and the close (status 0, no ghost client), and the TeamSpeak
6 server's tree and panel.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 04:01:28 +03:00
faumarayandClaude Sonnet 5.5 14091c4202 docs: the ui.tree row, every property and callback of the two panes, the long lines
The review of the channel tree slice: the Settings table of docs/ui.md has a
ui.tree row (JSON by server id, written by the GPUI front end only); "The
callbacks and the properties" lists every Bridge property and callback (and
the Nav functions) that channels.slint and members.slint use, with the plan's
13 and 6 named inside them and each with its GPUI counterpart or the slice
that takes it (watch_client, member_action, member_volume and server_banner
included); the tree's banner veil, the one-letter small avatars and the
password prompt's empty field and Escape are described; the two tree pictures
with banners (light and dark) are taken again on the release build of bad5312.
The paragraphs the previous re-wrap left long are wrapped, the CHANGELOG entry
and the spikes report's status say what the review closed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 03:54:35 +03:00
faumarayandClaude Sonnet 5.5 3f7aecfd61 docs: ci.md, wording of the run 1224 note
CI / Linux checks (pull_request) Successful in 32m49s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 03:39:51 +03:00
faumarayandClaude Sonnet 5.5 06478dc13a docs: ci.md says what run 1224's cancellation was (observed, not explained)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 03:37:47 +03:00
faumarayandClaude Sonnet 5.5 36c90c4595 docs: ci.md records what was seen on runs 1225 and 1226 and what was only rehearsed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 03:37:38 +03:00
faumarayandClaude Sonnet 5.5 2cf8bc7fda docs: VoelinProtocol access (ci.md) for the fetch-then-delete key, the runner gate and the fork check; deploy key id 7
ci.md rewrites "VoelinProtocol access" on the model of VoelinGateWay's: the
steps in order, the fork rule in the expression and the script, the release
agent, the four images, the runners that printed the keys, how to look at a run,
what the hardening does not do. The Gitea intro no longer says that pushes and
pull requests are off (the workflow has run on them since 2026-10-12).
building.md and release.md follow; CHANGELOG appended.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 02:55:23 +03:00
faumarayandClaude Sonnet 5.5 0e01b60930 docs: re-wrap three lines the slice's own edits left long
The maximized paragraph of docs/ui.md (the guard sentence joined onto a
line), the sequences bullet of "Shared with the Slint front end", and the
spikes report's shell paragraph. Prose only; no word changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 01:56:39 +03:00
faumarayandClaude Sonnet 5.5 639a173092 docs/ui.md: name the binary of the first meter run and of the live run exactly
Both were release builds of the tree that aa640cf then committed (built just
before it; the commit added tests after), not of a commit of their own.
Prose only: the own-crates result of b27b7c7 applies.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 01:56:02 +03:00
faumarayandClaude Sonnet 5.5 b27b7c7f32 docs/ui.md: the figures of the final code commit and where each run's binary came from
The idle and talking figures are measured again on the release build of
faef132 (97 % of a core at 9.7 frames a second with a sample person talking
ten times a second, of it 91 % the software renderer and 5 % GPUI's thread;
the first, quieter run is kept beside it), the live run names its binary
(aa640cf), and the sample pictures' folder is said to go when the window
closes (checked on a real Alt+F4).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 00:47:23 +03:00
faumarayandClaude Sonnet 5.5 68a1694d7b docs: the channel tree and the members panel, its pictures, figures and records
docs/ui.md: a section for slice 2 (what is on screen, the per-area signals
and cached panes with the three rules GPUI taught, what a change costs, seen
against the TeamSpeak 3 and 6 development servers, the callbacks and the
properties as tables, what differs from the Slint tree and panel), the
switches VOELIN_DEMO_SERVER and VOELIN_DEMO_TALK and the per-pane counters of
the meter, what is shared with the Slint front end, "What is next" (the voice
page and the call bar are next) and "For the next slices" without what this
slice did (cached panes and signals, the pictures), with the click and hover
cost, the missing scrollbar and the three copies that stay in the Slint
crate. The four pictures are the shell at 1440 by 960 under
scripts/gpui-shot.sh on a display of its own. The CHANGELOG and the spikes
report's status say what landed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 00:24:28 +03:00
faumarayandClaude Sonnet 5.5 6b8f933ece Re-wrap the four over-long lines the shell's review named
CHANGELOG.md (the shell's entry), docs/ui.md (the maximized paragraph),
docs/design/gpui-spikes.md (the status paragraph) and the module doc of
voelin-gpui's app.rs: prose only, no word changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:23:36 +03:00
faumarayandClaude Sonnet 5.5 9ab56ec973 voelin-gpui: the maximize guard covers the first two reports only
A window opened to be maximized dropped every windowed report until it
was seen maximized, so a resize the user made before the window manager
answered (or under one that never maximizes, a tiling one) was never
kept. The guard is now a budget of OPENING_REPORTS = 2 windowed reports,
the place the window opened with and the configure an X11 window manager
may send at the map; a maximized report ends it, and the reports after
it are the user's. Tests on the GPUI test platform: the root state keeps
the third report, the shell keeps a resize that follows the two. The
sentence in docs/ui.md says so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 23:22:40 +03:00
faumaray daa2111ea1 Merge remote-tracking branch 'origin/main' into phase5/gpui-shell-minors 2026-10-27 22:50:14 +03:00
faumarayandClaude Fable 5.1 5710aa9f79 docs: building.md says tag, not rev, and warns about cargo update -p; the seam's header names 17.9 (review nits of the pin move)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-27 22:18:48 +03:00
faumarayandClaude Sonnet 5.5 463ce872f2 docs/ui.md: corrections to the minors round's records
Update's description lists the gateways to look up (Update::discover), the
Wayland maximize is said to be expected, not seen (it was not run here), and
three lines of the new text are wrapped like the rest.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 21:55:51 +03:00
faumarayandClaude Sonnet 5.5 fd6bc19c78 docs: the pin is the tag v0.2.0
CHANGELOG.md, "Unreleased": the line that VoelinProtocol's CHANGELOG offers
consumers when they pin (the sign-out lists a key once, Debug of the
messages prints <redacted> for secrets). docs/building.md names the tag, how
a later release is taken and the spikes' own lock; docs/ci.md and
docs/architecture.md name the three crates and the tag, and ci.md says that
the deploy key, the host key and the read check of the CI step are the same
for a tag. docs/session-seam.md: 17.9 records the move (the commits, the lock
edited by hand and why, what "For consumers" meant for the tests, what ran),
and the four sentences that named the old rev name the tag or the pin of
task 34.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 21:17:53 +03:00
faumarayandClaude Sonnet 5.5 4f85b5539e docs: the shell's minors round recorded, with the gate's four risks
docs/ui.md: a paragraph in the shell section for the minors round, the run
under openbox before and after the maximize fix (the same copy of a database
that says maximized: true: not maximized and overwritten with false before,
maximized and kept after), the maximize beside the position caveat of "For the
next slices" with the one race it cannot rule out, and the four risks the gate
found by reading: the server on screen not remembered across restarts, an open
form dropped without asking on a rail click, Hold to talk staying on if voice
drops while held, a tiling compositor's tile stored as the window size.
The spikes report's status paragraph says the shell was gated and its minors
closed on this branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 20:40:06 +03:00
faumarayandClaude Sonnet 5.5 f7ebab0859 docs/ui.md: the ui.window row of the settings table, and assets.rs in the step 9 note
The settings table lacked the key the shell added: ui.window, JSON
{width, height, x?, y?, maximized}, no default, written by the GPUI front end
only. The note on what reads crates/voelin-ui/ui until Slint goes lists
assets.rs's include_bytes! of logo.svg beside the parity test, build.rs and
fonts.rs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 20:08:49 +03:00
faumarayandClaude Sonnet 5.5 a77ccc0415 voelin-ui-vm: the server sequences both front ends ran twice are one
The GPUI shell repeated the Slint crate's connect, observe, gateway lookup,
save and remove of a server, its default nickname, its FallbackSecrets and its
settings opening and key registration. They now live once and both front ends
call them:

- voelin_ui_vm::servers::sequence: connect_voice(_to), observe,
  discover_gateway, gateway_found, select_server, save_bookmark,
  save_and_connect, delete_bookmark, bookmark_form and default_nickname, as
  transitions over the state, the Cx and a Backing (the store, the secrets,
  the identity a connection uses). The commands, the status line and what to
  keep go out through the Update as for every other transition; a new field,
  Update::discover, asks the front end to look a gateway up (the thread hop
  stays with each front end: Later in GPUI, later() in Slint). stream_peer is
  the one input a front end gives (Slint's codecs; GPUI passes none).
- voelin_ui_vm::settings::open_settings and register_keys; a front end adds
  its own key (ui.window, studio.ui) through a function it passes, so Slint's
  settings page still lists what it listed.
- voelin_store::FallbackSecrets (feature keyring) and Store::identity_for.
- voelin-ui: the methods of servers/bind.rs, open_settings and default_secrets
  call them, so their call sites are unchanged; host.rs gets transition_with
  and the discover arm of perform. voelin-gpui: AppState's methods and the
  Backend call them. What cannot move is named in docs/ui.md.

voelin-ui-vm now depends on tracing (the sequences log as the copies did): one
line of Cargo.lock, THIRD_PARTY_NOTICES.md unchanged (scripts/notices.sh
--check clean), cargo deny check clean. The sequences have ten tests over a
fake front end (commands, status, store, secrets, gateways), open_settings and
Store::identity_for one each; the GPUI and Slint suites pass unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 20:05:46 +03:00
faumarayandClaude Sonnet 5.5 806f9c6f2e docs/ui: the shell and swatch pictures at 1440 by 960
The committed pictures were 1438 by 935 (and the form 1280 by 800): taken
on a screen as large as the window, where openbox fits the window and its
frame into the screen. Regenerated the five shell pictures and the two
swatch pictures on a headless X display of 3840 by 2160 (scripts/gpui-shot.sh
under spikes/gpui/headless.sh; the form with xdotool clicks and typing), all
exactly 1440 by 960 and truecolour. docs/ui.md and the script's header now say
the screen must be larger than the window, and how the form was taken.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 19:31:30 +03:00
faumarayandClaude Sonnet 5.5 302524a144 voelin-gpui: a window left maximized is maximized again, and stays remembered so
GPUI asks for a maximized window before it maps it, and an X11 window manager
manages a window only from its map (openbox loses the request), so a window
the last run left maximized opened at its restored size, and the next close
overwrote maximized:true with false.

MainView now zooms the window at its first frame when it was opened to be
maximized and is not by then (zoom toggles on X11, so a maximized one is left
alone). The root state keeps what such a window reports as not the user's
until the window has been seen maximized, so a run that ends first, or one
whose window manager never maximizes, leaves maximized:true as it found it;
a maximized window is kept with the size it returns to (X11 reports the
screen's). GPUI's test platform has no zoom, so the tests count the request
and play the window manager's answer; the X11 behaviour was seen under
openbox on a private Xvfb and is recorded in docs/ui.md. CHANGELOG notes it.

Also wraps the module comment of app.rs that the previous commit left long.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 19:29:29 +03:00
faumarayandClaude Sonnet 5.5 7c0f385f2f docs: a part's notify draws the whole window, not just the part
The records said the shell's parts draw only when what they show changed.
In gpui-pre 0.3.10 a child view embedded with .child(entity) is rendered
on every frame (only Entity::cached and AnyView::cached reuse a subtree),
so a part that is told tells the window, and the window draws every part.
Correct the shell section of docs/ui.md, the status paragraph of the
spikes report and the module comments of the shell and the root state,
and add to "For the next slices" the gate's notes: heavy panes cached and
Update.refresh turned into per-area signals, Update.reloaded ignored and
img() caching by path, SettingChanged for audio and playback not reloaded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 19:12:52 +03:00
faumarayandClaude Sonnet 5.5 8773d8df5b docs/ui.md: the idle figures name the commit they were measured on
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 17:29:56 +03:00
faumarayandClaude Sonnet 5.5 770943cde9 docs/ui: the swatch pictures without the line of state
The window's line of state (the version, the connections, the engine events,
the seconds up) is gone with the shell: the swatch page fills the window, so
the two pictures are made again with the binary of this branch
(scripts/gpui-shot.sh swatch 1440x960, dark and light).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 17:27:07 +03:00
faumarayandClaude Sonnet 5.5 2e961eb411 docs: the GPUI desktop shell (docs/ui.md, CHANGELOG, the spikes report's status)
docs/ui.md, "The GPUI front end": what exists now (the store at start, the
shell's entities, the quiet tick), the shell's section with its pictures (the
empty shell and a server on screen, dark and light, and the server form, made
with scripts/gpui-shot.sh on a headless display), the eleven actions against
the Slint callbacks, the store, the window's place and what the shell leaves
out, the figures idle (0.3 to 0.5 % of a core, 192 MiB, no frame drawn while
nothing happens) and what was seen against the TeamSpeak 3 development server
(connect, mute, disconnect, reconnect, close with no ghost client); the
slice list says the shell is done and the channel tree is next, and "For the
next slices" says what the shell settled (the event task, the tick, the close
grace) and what it found (the focus the root's handlers need, the window
manager's say over the position).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 17:24:56 +03:00
faumarayandClaude Sonnet 5.5 d84b54270c docs/design/gpui-spikes.md: the status paragraph records the foundation's review, gate and minors round
The report's status paragraph said the foundation landed and stopped there, and
that the figures on the page were still 0.8.0's. It now says the foundation was
reviewed and gated the same day (no blocker, no major, six minors), lists the
minors that are closed in the commits after it, points at docs/ui.md "For the
next slices" for the risks left to the slices, and excepts the two video cases
the review ran again on 0.8.1 from "still 0.8.0's".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 13:49:35 +03:00
faumarayandClaude Sonnet 5.5 2e22fd567c docs/media.md: the portal capture no longer needs a tokio runtime to start
The Portal note said `start` needs a tokio runtime because zbus runs on it. Since
the move of ashpd to `async-io` (e325b65) zbus runs every connection on an I/O
thread of its own, whichever thread builds it, and the note in portal.rs says
so (corrected in ed49c28); this record was not among the four the gate listed
and had been left behind. `stop` is the one that needs the runtime, and only to
close the portal session in the background (elsewhere the session closes with
the connection): the note now says both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 13:49:15 +03:00
faumarayandClaude Sonnet 5.5 e5f8821f67 docs/ui.md: "For the next slices", the risks of the gate and the review; the report's quiet-machine figures
The risks the Opus gate and the review of the foundation left to the slices
that meet them, each with where it sits in the code: the engine-event task
drains its channel without yielding, the tick notifies the root every second,
voelin-platform's hotkey portal calls tokio::spawn (start it on the engine's
runtime as Slint's GlobalPtt::start does), PortalCapture::stop closes the
portal session only inside a tokio runtime, gpui-component's ThemeRegistry
observer overwrites VoelinTheme's mapping on any registry change, the parity
test and build.rs read crates/voelin-ui/ui (they move at step 9), system
mode's first frame is Light until the colour-scheme portal answers, the gate's
deviations from the report's mapping table (bg-rail not mapped, one scrim for
three, gpui-base's non-colour tokens not written), and the close grace not
seen end to end until a slice opens sessions.

docs/design/gpui-spikes.md: "the 1440p60 figures were not reproduced on
0.8.1" now carries the review's quiet-machine re-run of the two cases (static
61 fps, raw 59.1 fps, load average 8 to 12, llvmpipe).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 12:31:05 +03:00
faumarayandClaude Sonnet 5.5 5c94b15820 voelin-gpui: the parity test notices a second brush or string in theme.slint
The test compared the brush and string declarations of theme.slint by name
only (one backdrop, one font-family and the mode string), so a second brush or
string token in the Slint file passed unseen while docs/ui.md said a token on
one side only fails the test. It now asserts the brush declarations are
exactly {backdrop} and the strings exactly {mode, font-family}, and a test
adds a brush and a string to a copy of the file (a mutant) and checks both are
named: red with the previous rule ("backdrop-soft goes unnoticed"), green
with this one.

A Rust-only second brush or string is still not seen (tokens.rs has one
gradient and one family that the test cannot enumerate); docs/ui.md says so
instead of promising it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 12:29:02 +03:00
faumarayandClaude Sonnet 5.5 977b942cd0 docs/ui.md: slice 4 points at the report's "Open choices for step 3", which exist
The list of slices sent the chat slice to a section "Emoji" of
docs/design/gpui-spikes.md, which has none (the colour emoji gap is a
paragraph of spike 2). It now names the section "Open choices for step 3" and
the two open choices the chat slice touches there, emoji and links.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 12:26:45 +03:00
faumarayandClaude Sonnet 5.5 5af85b4aa2 docs/design/gpui-spikes.md: the lock figures of the foundation, 292 entries with their two sources
The size paragraph said gpui-kit adds 279 entries (208 new names) to
Cargo.lock. The foundation's lock has 1,321 entries against main's 1,029: 292,
218 of them new names. 279 come from gpui-kit and 13 from voelin-gpui's
`gpui-pre` `test-support` dev-dependency, which ships in no binary (the lock
without that line has 1,308 entries).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 12:25:04 +03:00
faumarayandClaude Sonnet 5.5 ed49c283a2 voelin-platform: zbus on async-io alone in every binary (notify-rust z), and a test for the order of ashpd's callers
ashpd 0.13.13 keeps one session connection per process (a static in its
proxy.rs), and zbus 5.19 picks that connection's executor once, from
Handle::try_current() on the thread that builds it, when both its `tokio` and
`async-io` features are compiled in. The first ashpd caller therefore decided
the executor of every later portal call: a tokio caller first, then a caller
with no runtime (a GPUI foreground task), panics with "there is no reactor
running" (get_property("version") sets up zbus's property cache, which calls
tokio::task::spawn). The merged binary was safe only because GPUI's
colour-scheme call builds the connection before the engine's portal calls.

voelin-platform's notify-rust asks for `z` (async-io) in place of
`z-with-tokio`, and the stand-in portal's zbus dev-dependency for `async-io`
instead of `tokio`: a test binary with both features shows the panic even when
the binaries do not have it. `cargo tree -e features -i zbus` now names
`tokio` nowhere; Cargo.lock loses zbus's tokio edge and tokio's tracing edge
(THIRD_PARTY_NOTICES.md is unchanged).

tests/proxy.rs gets the gate's probe shape on a private dbus-run-session bus
(skipped with a printed reason where none can be made): a tokio caller first,
then a caller with no runtime. It fails with the panic on the tree before this
change, and still did with only notify-rust moved, which is why the
dev-dependency moved too.

The four records that described the move wrongly are corrected:
docs/design/gpui-spikes.md "Dependencies", the comment of
PortalCapture::start, voelin-media's Cargo.toml and CHANGELOG.md (whose
Slint-only sentence goes: the Slint app's zbus connections move to async-io
threads too).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 12:24:19 +03:00
faumarayandClaude Sonnet 5.5 7cabc2c13d docs/ui.md: which of the GPUI tests need a display
The Tests bullet said the tests need no display and then named
tests/launch_failure.rs, one case of which starts the binary on the test
display of VOELIN_X11_TEST_DISPLAY (skipped without it, like the X11 tests of
voelin-media and voelin-platform); the other case needs no display at all.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 10:10:11 +03:00
faumarayandClaude Sonnet 5.5 d3fa8d85f0 docs: the spikes' README and report no longer put the repository on Rust 1.94
Since 5ce5c0d the repository is on 1.95.0, but spikes/gpui/README.md still
said no gpui-kit builds with "the repository's Rust 1.94" and the report's risk
table said "the client is on 1.94". The README now says the 1.94 the
repository used before 5ce5c0d (the E0658 demonstration with TOOLCHAIN=1.94
stays as the historical evidence), the risk row says the client moved to 1.95.0
in 5ce5c0d (seven lints fixed), and the report's "Settled for step 3" sentence
about the same failure names the 1.94 of before that commit too.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 09:42:49 +03:00
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