fix(moves): HUD plate uses the Academy prompt or the move name, not the description

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
tfrere
2026-09-10 08:54:00 +02:00
parent 5a85e867a0
commit 023172c8a7
+3 -1
View File
@@ -316,7 +316,9 @@ export async function loadCustomPolicy(ref, { ort, onProgress = () => {} } = {})
const slot = slotForManifest(manifest);
const kind = manifest?.kind ?? "perpetual";
const academy = manifest?.academy && typeof manifest.academy === "object" ? manifest.academy : null;
const title = academy?.prompt || manifest?.description || name;
// HUD plate text: the Academy prompt when there is one, else the name
// (descriptions are paragraphs, too long for the chip).
const title = academy?.prompt || name;
const base = { kind, slot, name, title, author, academy, ref: String(ref), actionScale };
if (slot === "script") {