From 80306b3a3ad59e3a06a7e694c69be3ada976ff03 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 12:15:23 +0100 Subject: feat(assistant): catalog IPC for deck-it, presets sent as written Co-Authored-By: Claude Opus 5.5 --- desktop/assistant/test_presets.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'desktop/assistant/test_presets.js') 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"] }]; -- cgit v1.2.3