fix: catch the more common tool-skip case — short reply, no tool call (v0.57.2)

The previous fix's looksLikeUnstructuredRecipe only fires when the model
spells the whole recipe out as a numbered/bulleted list — it does nothing
for a short reply that just *claims* a draft exists ("Voici une recette
de Bœuf Bourguignon... brouillon à vérifier ci-dessous") without ever
calling the tool, which is what the user actually hit.

Detecting the model's claimed compliance is fragile (varies by phrasing/
model), so instead detect intent from the user's own message — the same
noun+verb pattern ("recipe"+create/make/... or "recette"+créer/fais/...)
the system prompt's own createRecipe examples already describe. Forces
the retry whenever there's no tool call AND either signal fires.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-20 19:46:52 +02:00
parent 6ec9b65c24
commit f6214e60df
5 changed files with 41 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "epicure",
"version": "0.57.1",
"version": "0.57.2",
"private": true,
"scripts": {
"dev": "pnpm --filter web dev",