From 4cd76a66213c125d0347b89d0709d562efb1f6b6 Mon Sep 17 00:00:00 2001 From: Felipe Ferrari Date: Tue, 9 Jun 2026 23:07:04 +0200 Subject: [PATCH 1/2] fix(preview): unpack all three values returned by _auto_compile_prompts _auto_compile_prompts() returns a 3-tuple: (compiled_command, compiled_prompt_files, runtime_content) The preview() command was unpacking only 2 values in both its rich-UI path and its fallback except (ImportError, NameError) path, causing apm preview to always crash with: ValueError: too many values to unpack (expected 2) Fix: add _ to capture the unused runtime_content in both call-sites. _execute_script_command already unpacks all three values correctly. Fixes: apm preview