Vibary.ai
← Vibe Coding

Stop Generation Cut

Halting a stream folds the caret away, closes the partial answer with a hairline, and states that it stopped.

aiminimalcalminteraction · finite · intermediate · ~0.5s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

354 lines · react + motion only
import { useEffect, useState } from "react";
import { motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Stop Generation Cut
 *
 * The halt frame of a streaming answer: the caret stops blinking and
 * collapses, a hairline rule closes the partial text, and a quiet

About this pattern

The other half of a streaming answer: what happens when the reader has seen enough and hits the halt control. Left alone, a cut stream looks like a crash — the words simply quit mid-sentence and the caret keeps blinking over nothing. Here the caret folds down from the baseline, a hairline sweeps shut under the last line, and a small note settles below to say the halt was deliberate. Everything after the click is fast and monotonic, because the reader made a decision and the interface should agree with it rather than mourn it.

Halting a streamed answerCancelled generationInterrupted assistant replyPartial output state

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Summarise the supplier contract and flag anything unusual.
    The renewal runs another twelve months at the same rate, with one clause worth a second look.
    Ask a follow-up
    AI assistant

    A halt control replaces send while a reply streams, and the cut reply keeps whatever had arrived.

Related patterns