Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Desktop: pictures can be dropped on the chat in the Windows window (the shell's own drop handler is off, the page gets the drop); the drop box is animated

Niko12212325b2ee2678
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index 83d4a97f8..54c7c3e10 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -876,7 +876,10 @@ fn run_embedded() {
fn open_window(app: &tauri::App, port: u16) -> Result<(), Box<dyn std::error::Error>> {
let origin = format!("http://127.0.0.1:{port}");
let url = origin.parse().expect("a valid loopback URL");
- let builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::External(url)).title("Strata").inner_size(1440.0, 920.0).min_inner_size(900.0, 600.0);
+ // The shell's own file-drop handler is off: with it on, Windows hands a dropped file to the shell and the page never sees it, so pictures
+ // could not be dropped on the chat (QA report 1, item 4). With it off the page gets ordinary drag and drop events (apps/host DropZone), the
+ // same as in a browser, on every system.
+ let builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::External(url)).title("Strata").inner_size(1440.0, 920.0).min_inner_size(900.0, 600.0).disable_drag_drop_handler();
// WebKitGTK (2.50 to 2.52 at least) dereferences a null pointer in AcceleratedBackingStore::update in its UI process when a page calls
// document.startViewTransition (the web process asks the UI process to enter accelerated compositing, and the backing store is not
// there). The page itself does not call it on that engine (apps/host/src/lib/router.ts), and this line keeps any other script from doing
diff --git a/apps/host/src/styles/app.css b/apps/host/src/styles/app.css
index 5c615af72..a84219508 100644
--- a/apps/host/src/styles/app.css
+++ b/apps/host/src/styles/app.css
@@ -7452,6 +7452,13 @@ textarea {
.chatcol { position: relative; }
.dropzone { position: absolute; inset: 8px; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--st-accent); border-radius: var(--st-r-lg); background: color-mix(in srgb, var(--st-surface) 88%, var(--st-accent) 12%); color: var(--st-ink); pointer-events: none; }
.dropzone span { color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
+/* A calm sign that the drop will be taken: the box fades in, its dashed edge breathes, the clip bobs. */
+.dropzone { animation: dropzone-in .16s ease-out both, dropzone-edge 1.4s ease-in-out .16s infinite; }
+.dropzone .st-icon, .dropzone svg { animation: dropzone-bob 1.2s ease-in-out infinite; }
+@keyframes dropzone-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
+@keyframes dropzone-edge { 50% { border-color: color-mix(in srgb, var(--st-accent) 40%, transparent); } }
+@keyframes dropzone-bob { 50% { transform: translateY(-3px); } }
+@media (prefers-reduced-motion: reduce) { .dropzone, .dropzone .st-icon, .dropzone svg { animation: none; } }
/* The chat's project folder, above the message box (round 8, item 4) */
.folderchip { display: inline-flex; align-items: center; align-self: flex-start; max-width: 100%; margin: 0 0 6px 6px; border-radius: 8px; color: var(--st-ink-muted); font-size: var(--st-fs-sm); }
diff --git a/apps/host/tests/split-qa2-fields.test.mjs b/apps/host/tests/split-qa2-fields.test.mjs
index bf5b7a79b..52735d959 100644
--- a/apps/host/tests/split-qa2-fields.test.mjs
+++ b/apps/host/tests/split-qa2-fields.test.mjs
@@ -65,3 +65,11 @@ test('O02: the screenshot Download button saves the picture and then says so', a
assert.match(source, /downloadSnapshot\(data\);\n\s+pushToast\('success'/);
assert.match(source, /pushToast\('error', tr\('The screenshot was not saved'\)/);
});
+
+test('item 1: the desktop window leaves file drops to the page, and the drop box is animated', async () => {
+ const rust = await readFile(new URL('../../desktop/src-tauri/src/main.rs', import.meta.url), 'utf8');
+ assert.match(rust, /\.min_inner_size\(900\.0, 600\.0\)\.disable_drag_drop_handler\(\);/);
+ const css = await readFile(new URL('../src/styles/app.css', import.meta.url), 'utf8');
+ assert.match(css, /\.dropzone \{ animation: dropzone-in/);
+ assert.match(css, /prefers-reduced-motion: reduce\) \{ \.dropzone/);
+});