Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(desktop): route file drops through HTML5 (#3083)

Max98ff39946164
diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json
index 44f48a185..ea4151341 100644
--- a/desktop/src-tauri/tauri.conf.json
+++ b/desktop/src-tauri/tauri.conf.json
@@ -22,6 +22,7 @@
"visible": false,
"center": true,
"resizable": true,
+ "dragDropEnabled": false,
"titleBarStyle": "Overlay",
"trafficLightPosition": { "x": 12, "y": 24 },
"hiddenTitle": true
diff --git a/desktop/src-tauri/tests/shell_boundaries.rs b/desktop/src-tauri/tests/shell_boundaries.rs
index 711a1b374..ab1ee570b 100644
--- a/desktop/src-tauri/tests/shell_boundaries.rs
+++ b/desktop/src-tauri/tests/shell_boundaries.rs
@@ -414,6 +414,16 @@ fn window_frames_are_restored_before_show_without_document_or_remote_authority()
}
}
+#[test]
+fn the_main_window_leaves_file_drops_to_html5_handlers() {
+ let window = &config()["app"]["windows"][0];
+ assert_eq!(
+ window["dragDropEnabled"],
+ Value::Bool(false),
+ "the main window must not intercept file drops with Tauri's native handler"
+ );
+}
+
#[test]
fn product_bundles_have_an_explicit_private_runtime_gate() {
let cargo = read_to_string(&crate_dir().join("Cargo.toml"));