Issue #3586659 by kotekirkitadze, annmarysruthy, Adrianm6254: State the {{...

Follows the investigation in #3586659.

What this changes

Two lines in AiAutomatorFieldConfig.php:

  1. The Automator Prompt description now states that the Base Field is only included when the prompt references {{ context }}.
  2. The Placeholders available details element is '#open' => TRUE instead of collapsed.

Why

The issue was reported as Base Field content being silently dropped when the Base Field and Target Field are both long-text. That turned out not to be the case — @annmarysruthy diagnosed it first, and rendering the prompt actually sent to the provider confirms it:

  • prompt without the variable → provider receives the instruction only
  • same prompt with {{ context }} → provider receives instruction + Body

Nothing is dropped. In Basic mode the prompt is a Twig template, so the Base Field arrives only if the template asks for it.

The form does document this, but the section listing the variables is collapsed by default and sits below the prompt textarea, so it tends to be read after the prompt is written, if at all. The description said nothing.

Scope

Both changes are in the shared field-config form alter, so they apply to every automator type rather than patching individual plugins. No behaviour change — form text and one element property only.

Rewriting the 20 bare Enter a prompt here. placeholder strings would also help, but it is cosmetic and affects only some plugins, so I have kept it out of this MR.

Testing

Verified on Drupal 11.4.5 with ai 1.4.7: description renders on the Automator Prompt field and the placeholders section is expanded on page load.

Merge request reports

Loading