Commits
Today
♻️ refactor: simplify wire, server calls, net/share/voice and GUI state; fix ~60 bugsAhmet Kaan Gümüş · 03e6686
♻️ refactor: simplify wire, server calls, net/share/voice and GUI state; fix ~60 bugs Wire (ALPN yumush/9): permission collapsed to is_member/is_moderator/is_admin/is_owner, Suspension enum, admin_actions! macro, Field::Attachments, char-count message limit, Close::on, datagram Gate→Pace, Tolerant CC sliding window. Server: handlers take User (Me enum gone), request.rs → call/shared.rs, GetSettings served directly, publish::direct for relay/stats without the DB lock, disconnect cleanup first, zombie conn close, rooms Left/Why enums, release publish ordering + rollback, forge timeouts, argon2 off the lock, DM delete on user delete, forwarded attachment deletes, backups in ms. Suspend and timeout replace each other, so Account's single Suspension is always the truth. Client: crate::worker (Worker/supervise), net receive.rs + discard() off-lock drops, share/session split into send/watch, voice sound.rs + pipewire pw.rs, atomic config/cache writes, instance lock, embed SSRF filter, update loop fix, Chat split into Session/Admin/PollDraft with one Armed enum, one network handler (no handle_hidden), keys.rs table, SAFE_EXTENSIONS for cached attachments, many GUI state fixes. Palette removed: every view reads style::Tokens directly. Clippy clean apart from argument-count lints. Tooling: harness lib.sh (refuses a STATE path too long for pipewire sockets), per-port scope name, focus ring off in niri.kdl, PID-safe traps, imports.sh in CI, workspace deps consolidated, client thiserror dropped.
2026-11-30
🐛 fix: shares recover faster from bad links. QUIC's Cubic cut its window on every random loss (2% loss capped a share near 1.4 Mbit): a loss-tolerant wrapper only reacts when RTT is up 25 ms over its floor, loss tops 10% in a second, or congestion is persistent (GCC's 10% loss band); the sender's rate scale follows the same rule. A relay pause now holds a viewer on its layer and resumes with a recovery frame off the last acked frame instead of a keyframe; paused viewers get no resends. The viewer skips frames older than a keyframe or recovery frame instead of NACKing them, counting them as loss (which pushed sharer FEC to 30%) and stalling the recovery frame behind them. Up-probes start after 5 clean seconds (was 10).Ahmet Kaan Gümüş · d485dbd
🐛 fix: shares recover faster from bad links. QUIC's Cubic cut its window on every random loss (2% loss capped a share near 1.4 Mbit): a loss-tolerant wrapper only reacts when RTT is up 25 ms over its floor, loss tops 10% in a second, or congestion is persistent (GCC's 10% loss band); the sender's rate scale follows the same rule. A relay pause now holds a viewer on its layer and resumes with a recovery frame off the last acked frame instead of a keyframe; paused viewers get no resends. The viewer skips frames older than a keyframe or recovery frame instead of NACKing them, counting them as loss (which pushed sharer FEC to 30%) and stalling the recovery frame behind them. Up-probes start after 5 clean seconds (was 10). netem, 40 s impairment, avg of 2 runs, freeze s / fps / p50 ms (before -> after): flap 19.5/8.1/180 -> 5/12.6/126, after-phase fps 16.6 -> 22; jitter 9/11.3/178 -> 5/17.4/160; 3% random loss 8.5/11.3/94 -> 0.5/25.7/130; shallow 9/12.7 -> 4/14.7; collapse to 800 kbit 21.5/5.8/354 -> 20/5.9/305 (capacity-bound: lowest rungs of screen and camera together exceed the link)
🐛 fix: shares hold up on bad networks. A slow or bloated link used to queue seconds of stale video (0.9 s median, 1.5 s p90, ~20 s of freezes per 40 s on a 3 Mbit bufferbloated link). Now: - relay and sender lane share one Link gate (common::datagram): when a path's RTT rises 150 ms over its floor or quinn's datagram queue holds over 250 ms, stop sending video until it drains (2 s cap), then resume on a fresh keyframe - watcher measures queuing from raw transit against a 30 s floor (was offset-relative over 240 frames, which absorbed standing queues and misfired when the clock offset moved) - on congestion the watcher jumps straight to the rung that fits 80% of peak goodput; random loss is ignored unless the 3 s mean stays over 5% (shallow-buffer congestion) - failed up-probes double the wait before the next probe (10 s up to 60 s); the watcher waits for a switch to land instead of a fixed hold - playout delay falls proportionally after a spike instead of 1 ms per 4 frames (was ~40 s to recover) netem matrix (40 s impairment, 2 runs each, base vs fix, p50 latency / frozen s): bloat 868/19 -> 94/3, shallow 284/20 -> 67/9, 800 kbit collapse 921/36 -> 354/22, jitter+loss 411/28 -> 178/9, 4 Mbit uplink p90 949 -> 149, flapping 722/29 -> 180/20; clean calls unchanged. Also: rustfmt, two new clippy lintsAhmet Kaan Gümüş · 3e9d442
🐛 fix: shares hold up on bad networks. A slow or bloated link used to queue seconds of stale video (0.9 s median, 1.5 s p90, ~20 s of freezes per 40 s on a 3 Mbit bufferbloated link). Now: - relay and sender lane share one Link gate (common::datagram): when a path's RTT rises 150 ms over its floor or quinn's datagram queue holds over 250 ms, stop sending video until it drains (2 s cap), then resume on a fresh keyframe - watcher measures queuing from raw transit against a 30 s floor (was offset-relative over 240 frames, which absorbed standing queues and misfired when the clock offset moved) - on congestion the watcher jumps straight to the rung that fits 80% of peak goodput; random loss is ignored unless the 3 s mean stays over 5% (shallow-buffer congestion) - failed up-probes double the wait before the next probe (10 s up to 60 s); the watcher waits for a switch to land instead of a fixed hold - playout delay falls proportionally after a spike instead of 1 ms per 4 frames (was ~40 s to recover) netem matrix (40 s impairment, 2 runs each, base vs fix, p50 latency / frozen s): bloat 868/19 -> 94/3, shallow 284/20 -> 67/9, 800 kbit collapse 921/36 -> 354/22, jitter+loss 411/28 -> 178/9, 4 Mbit uplink p90 949 -> 149, flapping 722/29 -> 180/20; clean calls unchanged. Also: rustfmt, two new clippy lints
2026-11-28
✨ feat: stage strip orders cameras first then screens, oldest to newest (server stamps Share.started_ms); strip fills its measured width, +N only when tiles don't fitAhmet Kaan Gümüş · 8c8fe48
✨ feat: stage strip orders cameras first then screens, oldest to newest (server stamps Share.started_ms); strip fills its measured width, +N only when tiles don't fit
2026-11-27
🐛 fix: viewers start at the streamer's target instead of 1080p30 (60 fps screenshare reachable), camera reopen gets layer demand again, camera picks highest reachable fps, real OS fullscreen with Esc to exit, pill and dock show target quality, codec in stats, gpu video rowAhmet Kaan Gümüş · b97746eBrowse files
2026-11-26
⚡ perf: server NACK retransmit, RPS loss recovery (edith c4111899), adaptive playout, delay-based quality adapt, static frame skip, voice 32k + loss-driven FEC, no voice echo, single-copy frames to GPUAhmet Kaan Gümüş · a2e75c8
⚡ perf: server NACK retransmit, RPS loss recovery (edith c4111899), adaptive playout, delay-based quality adapt, static frame skip, voice 32k + loss-driven FEC, no voice echo, single-copy frames to GPU Harness 1440p60 AV1 Vk, base vs new: - share viewer latency 109 -> 34 ms - share viewer cpu 30 -> 14 % - share fps at 2% drop 55.9 -> 57.9, nacks recover loss - voice up/down 35.6/41.6 -> 24.2/26.5 kbps, loopback 302 -> 188 kbps Harness: metrics behind YUMUSH_METRICS, talker linked straight into harness-mic.
2026-11-25
♻️ refactor: one clean schema, integer ids and one transaction per callAhmet Kaan Gümüş · 22b1bb7
♻️ refactor: one clean schema, integer ids and one transaction per call The database layer is rebuilt on turso with one STRICT schema file in place of the migration list, integer ids, explicit created_at columns and settings, log actions and snippet polls stored as bitcode. A single connection runs every call inside one BEGIN IMMEDIATE transaction and events are published only on success. SQL lives only in db/, one file per table, through four helpers and one row reader; disk work for attachments moves to files.rs. Session tokens are stored hashed. Fixes case sensitive login against case insensitive uniqueness, logout leaving the connection signed in, user deletion failing inside a lone DM call, deleted DMs keeping their voice room, kicking non members, builders leaving owned groups ownerless, half applied multi step writes and events sent for failed calls. A stale database file now refuses to start instead of failing later.
♻️ refactor: validation lives on the call and the client calls directlyAhmet Kaan Gümüş · 7bb542d
♻️ refactor: validation lives on the call and the client calls directly Each call validates its own fields in Call::validate, run once by the client before sending and once by the server before handling. GUI code sends call structs straight through net.call, so the hundred pass through wrappers in net/mod.rs are gone. Dead code and duplicated logic found by an audit of the new network modules are removed.
♻️ refactor: one client media owner, datagram v2 and typed callsAhmet Kaan Gümüş · c69c3ca
♻️ refactor: one client media owner, datagram v2 and typed calls Voice, shares and the mic test live in one client Media owner guarded by the link epoch, so a stale join never installs after a reconnect and a blip keeps the capture source. Datagrams become a Packet enum with fixed little endian headers, derived fragment layout and bounds checked decode; the server peeks three bytes to route video. Calls start moving to typed Call structs whose reply type and gate come from the type, beginning with the user domain. Share throughput unchanged at 59.4 fps.
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room ownerAhmet Kaan Gümüş · 700e2a4
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room owner A connection now authenticates once with Hello/Welcome; login, logout and account switches reconnect instead of mutating auth mid connection. The server actor and its state copies are replaced by a Hub of clients with presence transitions and kicks, events fan out through one publish path that encodes once and never blocks, and voice plus shares live in one Rooms owner with a single leave path. Media control moves to Down::Media.