Accept both %-wrapped and non-wrapped variable arguments in act

Merged
MI
8mo ago
+12-7

[!NOTE]
Low Risk
Small, localized string-substitution and prompt-text changes; main risk is accidental over-replacement of argument strings if variable keys overlap with normal text.

Overview
act argument variable substitution now supports both %name% placeholders (preferred) and legacy unwrapped name replacement, avoiding the previous nested-comprehension behavior that could duplicate/over-replace arguments.

The LLM build_act_observe_prompt instructions are updated to ask for variables to be wrapped in %…%, and the package version is bumped to 0.5.11.

Written by Cursor Bugbot for commit 9ce4efd1ec2fdec05cba940bcd8c370d0e49af87. This will update automatically on new commits. Configure here.


Summary by cubic

Accept both %-wrapped and plain variable placeholders in act arguments for reliable substitution and fewer mismatches. Updated the act prompt to ask for %-wrapped variables, and bumped the package to 0.5.11.