aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/assistant/test_presets.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 12:15:23 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 12:15:23 +0100
commit80306b3a3ad59e3a06a7e694c69be3ada976ff03 (patch)
tree6d9652b779203a45ce3715770c5de25ba37ca0bf /desktop/assistant/test_presets.js
parent4736a1a80ba984d3dfb9ff3bcfef6b63b570c6a1 (diff)
downloadquickshell-80306b3a3ad59e3a06a7e694c69be3ada976ff03.tar.gz
quickshell-80306b3a3ad59e3a06a7e694c69be3ada976ff03.zip
feat(assistant): catalog IPC for deck-it, presets sent as written
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/assistant/test_presets.js')
-rw-r--r--desktop/assistant/test_presets.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/desktop/assistant/test_presets.js b/desktop/assistant/test_presets.js
index e4a18f4..c2cbcf3 100644
--- a/desktop/assistant/test_presets.js
+++ b/desktop/assistant/test_presets.js
@@ -32,9 +32,11 @@ assert.deepStrictEqual(labels(files("image")), ["Describe", "Extract text", "Wha
assert.deepStrictEqual(labels(files("video")), []);
assert.deepStrictEqual(labels([]), []);
-// Every prompt asks for the document's language.
-for (const p of P.DEFAULTS)
- assert.ok(P.prompt(p).endsWith(" Answer in the language of the document."), p.label);
+// A prompt is sent as written; the defaults ask for the document's language.
+for (const p of P.DEFAULTS) {
+ assert.strictEqual(P.prompt(p), p.prompt, p.label);
+ assert.ok(p.prompt.endsWith(" Answer in the language of the document."), p.label);
+}
// A saved list is used when valid; anything else reads as the defaults.
const mine = [{ label: "Mine", prompt: "Do it.", kinds: ["pdf"] }];