RetroMessage

Mac OS 9 chat transcript parts: a scrolling message thread, user and assistant messages built from AI SDK-style parts, and copy/retry actions.

Installation

npx shadcn@latest add "https://nostalgia-ui.com/r/retro-message.json"

Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).

Import

import { RetroMessage } from "@/components/ui/retro-message"

Usage

import {
  RetroMessageThread,
  RetroMessage,
  RetroMessageActions,
} from "@/components/ui/retro-message"
import { RetroThinking } from "@/components/ui/retro-thinking"
import { RetroToolCall } from "@/components/ui/retro-tool-call"

const { messages, status, regenerate } = useChat()

<RetroMessageThread streaming={status === "streaming"} className="h-[480px]">
  {messages.map((message, i) => {
    const live = i === messages.length - 1 && status === "streaming"
    return (
      <RetroMessage
        key={message.id}
        message={message}
        streaming={live}
        renderTool={(part) => <RetroToolCall part={part} />}
      >
        {message.role === "assistant" && !live && (
          <RetroMessageActions message={message} onRetry={() => regenerate()} />
        )}
      </RetroMessage>
    )
  })}
  {status === "submitted" && <RetroThinking />}
</RetroMessageThread>

Conversation

My desktop is a mess. Can you tidy it up?

searchFilesDone
moveItemsDone

Done. I moved 12 things you haven't opened since spring into a folder called Old Stuff, and left the 6 you used this week where they were.

If you'd like this to happen every Friday, save this as a script in AppleScript:

applescript
tell application "Finder"
  move (every file of desktop whose modification date < ((current date) - 30 * days)) to folder "Old Stuff" of desktop
end tell

Ask something and the reply types in behind the insertion caret. Scroll up while it streams and the thread lets go; a New messages button brings you back. ⌘-period or Escape stops it. Hover a reply for Copy and Try Again.

Custom Content

Today, 9:41 AM
Is there room on my Zip disk for the photos?

Yes. The Zip disk has 61 MB free and the photos come to 48 MB, so you'll have 13 MB to spare.