Skip to content
Notra logoNotra UI
Esc
↑↓navigate↵open⌘Jpreview
On this page

Turn Footer

The agent, model and duration line that closes every assistant turn.

import { OpencodeTurnFooter } from "../components/opencode-turn-footer";
import { OpencodeWindow } from "../components/opencode-window";

export default function OpencodeTurnFooterExample() {
  return (
    <div className="w-full p-6">
      <OpencodeWindow className="gap-[1lh] px-[2ch] py-[1lh]">
        <OpencodeTurnFooter duration="17.8s" />
        <OpencodeTurnFooter agent="Plan" model="GPT-5.6 Sol" />
      </OpencodeWindow>
    </div>
  );
}
$ bunx --bun shadcn@latest add @notra/opencode-turn-footer

OpencodeTurnFooter renders the blue square, the agent and the model under a reply. Leave out duration while the turn is still running.

Prop Default Description
agent Build The agent that answered.
model Writer 0.1 Shown muted after the agent.
duration Wall time of the turn, like 17.8s.
interrupted false Adds an orange interrupted for a turn stopped with Escape.

Used in

OpenCode

A recreation of an OpenCode terminal session with a transcript, the prompt and the sidebar.