From 565fd70d08dd46639ff99b9cb198134e054eae68 Mon Sep 17 00:00:00 2001 From: 0xallam Date: Mon, 25 May 2026 17:28:37 -0700 Subject: [PATCH] Drop prescriptive guidance from image-rejection placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The replacement text was telling the model "view_image is unsupported on this scan; do not call it again" — which is wrong when the rejection was format-specific (SVG rejected, JPEG would have worked). Shorten to a neutral description of what happened; let the model decide whether to retry with a different format or skip the asset. Co-Authored-By: Claude Opus 4.7 (1M context) --- strix/core/sessions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/strix/core/sessions.py b/strix/core/sessions.py index 472da18..28bdf71 100644 --- a/strix/core/sessions.py +++ b/strix/core/sessions.py @@ -19,10 +19,7 @@ def open_agent_session(agent_id: str, path: Path) -> SQLiteSession: return SQLiteSession(session_id=agent_id, db_path=path) -_IMAGE_REJECTED_TEXT = ( - "[image rejected by the model — view_image is unsupported on this scan; " - "do not call it again, continue without visual inspection]" -) +_IMAGE_REJECTED_TEXT = "[image rejected by the model]" async def strip_latest_image_from_session(session: Session) -> bool: