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++
Monitor: saving the screenshot says so (it is in the Downloads folder) or says it failed
Niko12217572afc5bf66
diff --git a/apps/host/src/components/SnapshotDialog.tsx b/apps/host/src/components/SnapshotDialog.tsxindex 32450e3c3..7568ed73b 100644--- a/apps/host/src/components/SnapshotDialog.tsx+++ b/apps/host/src/components/SnapshotDialog.tsx@@ -1,5 +1,16 @@import { tr } from '../lib/i18n';+import { pushToast } from '../lib/store';import { Btn, Dialog, Icon } from './ui';+/** Saves the picture and says so: a download gives no sign of its own in some windows (QA O02), so a short message follows it. */+export function saveSnapshotWithNotice(data: string) {+ try {+ downloadSnapshot(data);+ pushToast('success', tr('Screenshot saved'), tr('It is in your Downloads folder.'));+ }+ catch {+ pushToast('error', tr('The screenshot was not saved'), tr('Try again, or take a screenshot of this window instead.'));+ }+}export function downloadSnapshot(data: string) {const encoded = data.slice(data.indexOf(',') + 1);const bytes = Uint8Array.from(atob(encoded), character => character.charCodeAt(0));@@ -22,7 +33,7 @@ export function SnapshotDialog({ open, data, pending, error, onClose, onRetry }:}) {const caption = 'My local AI performance with Strata';const project = 'https://github.com/Niko1221/Strata';- return <Dialog open={open} title={tr("Monitor screenshot")} onClose={onClose} actions={<><Btn onClick={onClose}>{tr("Close")}</Btn><Btn icon="download" variant="primary" disabled={!data || pending} onClick={() => downloadSnapshot(data)}>{tr("Download")}</Btn></>}>+ return <Dialog open={open} title={tr("Monitor screenshot")} onClose={onClose} actions={<><Btn onClick={onClose}>{tr("Close")}</Btn><Btn icon="download" variant="primary" disabled={!data || pending} onClick={() => saveSnapshotWithNotice(data)}>{tr("Download")}</Btn></>}><div className="snapshot-preview" aria-busy={pending}>{tr(pending ? <p className="small muted" role="status">{tr("Preparing your screenshot\u2026")}</p> : data ? <img src={data} alt={tr("Captured Strata Monitor readings")}/> : <div><p className="inline-error" role="alert">{tr(error || 'Screenshot could not be prepared.')}</p><Btn onClick={onRetry}>{tr("Try again")}</Btn></div>)}</div>diff --git a/apps/host/tests/split-qa2-fields.test.mjs b/apps/host/tests/split-qa2-fields.test.mjsindex 86bb223b0..bf5b7a79b 100644--- a/apps/host/tests/split-qa2-fields.test.mjs+++ b/apps/host/tests/split-qa2-fields.test.mjs@@ -58,3 +58,10 @@ test('F08: the message box stops at 30% of the window height (44 to 180 px) andassert.match(css, /\.composer \.st-composer textarea \{ max-height: clamp\(44px, 30dvh, 180px\); overflow-y: auto; \}/);assert.match(await readFile(new URL('../src/screens/Chat.tsx', import.meta.url), 'utf8'), /composerCap\(window\.innerHeight\)/);});++test('O02: the screenshot Download button saves the picture and then says so', async () => {+ const source = (await readFile(new URL('../src/components/SnapshotDialog.tsx', import.meta.url), 'utf8')).replace(/\r\n/g, '\n');+ assert.match(source, /onClick=\{\(\) => saveSnapshotWithNotice\(data\)\}>\{tr\("Download"\)\}/);+ assert.match(source, /downloadSnapshot\(data\);\n\s+pushToast\('success'/);+ assert.match(source, /pushToast\('error', tr\('The screenshot was not saved'\)/);+});