diff --git a/src/components/frontend/personnel/NpcConversation.tsx b/src/components/frontend/personnel/NpcConversation.tsx index a50bb757..7ef9c71c 100644 --- a/src/components/frontend/personnel/NpcConversation.tsx +++ b/src/components/frontend/personnel/NpcConversation.tsx @@ -281,8 +281,12 @@ export function NpcConversation({ } // Nothing to animate for an empty line, and a reduced-motion device skips - // the animation outright. - const animate = typewriter && total > 0 && !prefersReducedMotion(); + // the animation outright. Only the NPC's spoken lines type: choice lead-ins, + // event lines, descriptive narration and end closings are the interface's + // own voice, and they land whole so the footer never waits on prose the + // player is not being spoken to by. + const animate = + typewriter && node.type === "dialogue" && total > 0 && !prefersReducedMotion(); // A clip paces the reveal: the text finishes with the read, so the two do // not drift apart on a long line. const durationMs = diff --git a/src/lib/npc-dialogue/AGENTS.md b/src/lib/npc-dialogue/AGENTS.md index 3efff83e..9006cdd9 100644 --- a/src/lib/npc-dialogue/AGENTS.md +++ b/src/lib/npc-dialogue/AGENTS.md @@ -139,7 +139,9 @@ instead of breaking the line. ## Typing animation -Lines type themselves out. `DialogueText` takes a `reveal` count and truncates the +Only the NPC's spoken lines type (`node.type === "dialogue"`); choice lead-ins, +event lines, descriptive narration and end closings land whole, so a choice +footer never waits on a lead-in. `DialogueText` takes a `reveal` count and truncates the **rendered** strings, never the source, so a half-typed line can never show `{gre` or an unclosed `**`. `visibleLength(text)` is the matching count (markup costs nothing, an image or countdown costs one) and is what pacing and "is it finished"