Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/apm_cli/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ def preview(ctx, script_name, param, verbose):
# Show original and compiled commands in panels
_rich_panel(command, title=" Original command", style="blue")

# Auto-compile prompts to show what would be executed
compiled_command, compiled_prompt_files = script_runner._auto_compile_prompts(
# Auto-compile prompts to show what would be executed.
# preview only needs the command and compiled prompt file list.
compiled_command, compiled_prompt_files, *_ = script_runner._auto_compile_prompts(
command, params
)

Expand Down Expand Up @@ -177,7 +178,7 @@ def preview(ctx, script_name, param, verbose):
logger.progress("Original command:")
click.echo(f" {command}")

compiled_command, compiled_prompt_files = script_runner._auto_compile_prompts(
compiled_command, compiled_prompt_files, *_ = script_runner._auto_compile_prompts(
command, params
)

Expand Down
Loading