Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
201678b
desktop: gate instant uploads with a cached health probe
Peter7896 Aug 3, 2026
892c87c
fix: exclude cold connection setup from upload probes
bellabaelfire Sep 8, 2026
818dec2
fix: cancel upload probes before recording starts
bellabaelfire Sep 8, 2026
3c56a88
fix: keep short upload estimates monotonic
bellabaelfire Sep 8, 2026
f700d6e
fix: migrate upload health endpoint to Effect HttpApi
bellabaelfire Sep 8, 2026
20020d7
fix: generate upload health desktop bindings
bellabaelfire Sep 8, 2026
0fc3b9f
fix: verify upload probes and isolate health state
bellabaelfire Oct 7, 2026
621b109
test: run upload health regressions in CI
bellabaelfire Oct 7, 2026
de6e58b
style: inline upload estimate formatting arguments
bellabaelfire Oct 7, 2026
4e3393b
fix: wrap upload details and support keyboard tooltips
bellabaelfire Oct 7, 2026
c16aa38
fix: bound probe lifetimes and coalesce refreshes
bellabaelfire Oct 7, 2026
3ac541b
fix: scope API quality limits to managed storage
bellabaelfire Oct 7, 2026
43417ff
fix: explain quality limits for healthy API estimates
bellabaelfire Oct 7, 2026
1afdd13
fix(desktop): bind health limits to video creation context
bellabaelfire Oct 7, 2026
3a4d409
fix(desktop): preserve auth when health identity is unavailable
bellabaelfire Oct 7, 2026
0ce29fd
fix(desktop): retain Instant capture exclusions until stop completes
bellabaelfire Oct 7, 2026
413826a
fix(desktop): hold upload probes through recording shutdown
bellabaelfire Oct 7, 2026
4808d2f
fix(desktop): move the complete probe pause into shutdown task
bellabaelfire Oct 7, 2026
89c31d0
fix(desktop): preserve upload health through recording transitions
bellabaelfire Oct 7, 2026
1af0ad6
fix(desktop): release predecessor after restart admission
bellabaelfire Oct 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ jobs:
- name: Typecheck
run: bun run typecheck

- name: Test desktop upload health
run: |
bun run --cwd apps/desktop vitest run src/utils/create-upload-health.test.ts src/utils/upload-health.test.ts
bun run --cwd apps/web test __tests__/unit/desktop-upload-health-route.test.ts __tests__/unit/desktop-upload-health.test.ts __tests__/unit/desktop-video-create.test.ts

mobile:
name: Mobile
runs-on: ubuntu-latest
Expand Down Expand Up @@ -332,6 +337,7 @@ jobs:
cargo test --locked -p cap-recording --lib -- --test-threads=1
cargo test --locked -p cap-enc-ffmpeg
cargo test --locked -p cap-desktop --lib render_frame_event
cargo test --locked -p cap-desktop --lib upload_health::
env:
LD_LIBRARY_PATH: ${{ format('{0}/target/native-deps/lib:{0}/target/debug:{0}/target/{1}/debug', github.workspace, matrix.settings.target) }}

Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tauri-plugin-notification = "2.2.0"
tauri-plugin-os = "2.2.0"
tauri-plugin-process = "2.2.0"
tauri-plugin-shell = "2.2.0"
tauri-plugin-single-instance = { version = "2.2.0", features = ["deep-link"] }
tauri-plugin-single-instance = "2.2.0"
tauri-plugin-store = "2.2.0"
tauri-plugin-updater = "2.9.0"
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "v2" }
Expand Down Expand Up @@ -189,8 +189,14 @@ nix = { version = "0.29.0", features = ["fs"] }

[dev-dependencies]
tauri = { workspace = true, features = ["test"] }
tokio = { workspace = true, features = ["test-util", "net", "io-util"] }
wgpu = { workspace = true, features = ["noop"] }

[[test]]
name = "deep_link_cold_start"
path = "tests/deep_link_cold_start.rs"
harness = false

[[test]]
name = "gpu_device_health"
path = "src/gpu_device_health.rs"
4 changes: 4 additions & 0 deletions apps/desktop/src-tauri/src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ pub async fn play_recording_start_sound(cue: StartCue, gate: cap_recording::Reco
recording_start_sound::play(cue, gate).await;
}

pub async fn play_recording_start_sound_for_admission(cue: StartCue) -> Result<(), String> {
recording_start_sound::play_for_admission(cue).await
}

fn play_audio(bytes: &'static [u8]) {
use rodio::{Decoder, OutputStream, Sink};
use std::io::Cursor;
Expand Down
7 changes: 6 additions & 1 deletion apps/desktop/src-tauri/src/deeplink_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ pub struct DeepLinkActionExecutor {
}

impl DeepLinkActionExecutor {
#[cfg(test)]
pub(crate) fn from_sender(tx: std::sync::mpsc::Sender<DeepLinkAction>) -> Self {
Self { tx }
}

pub fn new(app: &AppHandle) -> Self {
let (tx, rx) = std::sync::mpsc::channel::<DeepLinkAction>();
let app_handle = app.clone();
Expand Down Expand Up @@ -120,7 +125,7 @@ impl DeepLinkActionExecutor {
}
}

pub fn handle(app_handle: &AppHandle, urls: Vec<Url>) {
pub fn handle<R: tauri::Runtime>(app_handle: &AppHandle<R>, urls: Vec<Url>) {
trace!("Handling deep actions for: {:?}", &urls);

let actions: Vec<_> = urls
Expand Down
9 changes: 6 additions & 3 deletions apps/desktop/src-tauri/src/general_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,13 +597,16 @@ impl GeneralSettingsStore {

pub fn get(app: &AppHandle<Wry>) -> Result<Option<Self>, String> {
match app.store("store").map(|s| s.get("general_settings")) {
Ok(Some(raw)) => {
GeneralSettingsSnapshot::load(Some(raw)).map(|snapshot| Some(snapshot.settings))
}
Ok(raw) => Self::from_stored_value(raw),
_ => Ok(None),
}
}

pub(crate) fn from_stored_value(raw: Option<Value>) -> Result<Option<Self>, String> {
raw.map(|raw| GeneralSettingsSnapshot::load(Some(raw)).map(|snapshot| snapshot.settings))
.transpose()
}

// i don't trust anyone to not overwrite the whole store lols
pub fn update(app: &AppHandle, update: impl FnOnce(&mut Self)) -> Result<(), String> {
let Ok(store) = app.store("store") else {
Expand Down
Loading