1
0
Fork 0
polaris-task-force/src
Z8MB1E f5166c80b6 fix(ai-compose): keep named action instructions in the system prompt
The plugin carries a named action's whole instruction in the system
prompt (Expand, Simplify, Rephrase, Proofread, Summarize, Tone,
Translate), while Compose on richText wraps the field's own system prompt
in buildRichTextSystem, which adds rules demanding lexical JSON and a
blog layout. buildComposeSystem discarded the incoming system prompt and
kept only the block-placeholder paragraph, so every named action reached
the model without its instruction and richText Compose lost the field's
own prompt too.

Keep the caller's prompt and strip only the contradiction: cut at the
plugin's RULES marker, re-append the extracted block-placeholder
paragraph, drop the JSON and layout lines as a backstop in case that
marker is reworded, then append AI_OUTPUT_RULES. The fieldType argument
is no longer needed.

The tests embed the plugin's real Expand, Simplify and Rephrase systems
and assert each instruction arrives intact with the rules appended.
2026-10-19 13:34:37 -04:00
..
app feat(arena): websocket match replication for Ordnance Disposal 2026-10-19 12:27:17 -04:00
arena fix(arena): clamp early-timer catch-up so the tick loop holds 20Hz 2026-10-19 13:12:20 -04:00
assets/images feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
bot feat(bot): add edit modal to /changelog for last-minute copy tweaks 2026-10-15 12:34:18 -04:00
collections feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
components feat(arena): websocket match replication for Ordnance Disposal 2026-10-19 12:27:17 -04:00
hooks feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
lib fix(ai-compose): keep named action instructions in the system prompt 2026-10-19 13:34:37 -04:00
migrations feat(ai): configure Compose model and label via env 2026-10-19 12:13:22 -04:00
permissions feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
scripts feat(analytics): add first-party analytics collector, SDK, rollups, and admin dashboard 2026-10-14 12:12:53 -04:00
tools feat(garage): add vehicle bay schema fields, geometry helpers, and backfill 2026-10-13 16:02:58 -04:00
utils feat(minigames): add Ordnance Disposal (bomperator) multiplayer drill 2026-10-16 00:32:52 -04:00
payload-generated-schema.ts feat(ai): configure Compose model and label via env 2026-10-19 12:13:22 -04:00
payload-types.ts fix(ai-compose): one prose output contract for every field prompt 2026-10-19 13:03:33 -04:00
payload.config.ts fix(ai-compose): keep named action instructions in the system prompt 2026-10-19 13:34:37 -04:00