Skip to content

v1.34.0 — Status glyphs, approval waits and a quieter composer

Choose a tag to compare

@robritacca-dotcom robritacca-dotcom released this 22 Nov 14:30
· 193 commits to main since this release

A chat that shows its state more clearly: the status dots draw a tick, a cross or a prompt, every reply keeps its status line, and a card waiting on the reader says so on the line and on the button that opens the chat. Nothing published was removed.

Agent status

  • AgentStatus and AgentStatusMark draw a glyph for the three states that ask something of the reader. done is a tick, error is a cross, and waiting is a prompt whose cursor breathes. They replace the solid fill. A glyph is drawn in dot by dot only when the state is reached on screen; an indicator that mounts already there shows it standing.
  • AiButton shows the same glyphs in its icon slot for waiting, done and error.

Chat

  • Every reply that thought keeps its status line. One AgentStatus owns the line from the first step to the tick beside "Thought for Ns", with or without a trace to open. A failed reply ends on the cross.
  • useTurnAwaiting(waiting, key), new in rift-ds/chat: a card that waits on the reader, such as a proposed change with Confirm still to press, calls it. The reply's status line then reads "Waiting for approval", and useChatAgentState() returns waiting, both from one record, so the line and the button that opens the chat always agree.
  • ChatWidget awaitingApprovalLabel sets that line's words.
  • ChatWidget logo takes a node as well as an image src, so the header mark can be an inline SVG that reads the theme's tokens.
  • ChatWidget composerGlow passes Composer's aiGlow through.
  • createChatHandler's contextBlock receives the conversation as a second argument, for a context block that answers what the visitor named as well as where they are.

Composer

  • aiGlow takes "streaming", and it is the new default. The gradient ring lights only while a response streams, and a focused composer keeps the plain selected border, so the ring means the agent is at work and nothing else. aiGlow as true is the earlier look, with the ring on focus too. false never lights it.

Chat cards

  • The shared card recipe has more room. The edge, the gap under a title block, the gap above the buttons and the fact list's rows and columns each step up, across ActionCard, ActionReadout, InterruptCard, QuestionCard, MessageCard, SourceTrail, ToolCall and UsageCard.

Changed

  • Composer's ring no longer shows on focus by default. It used to be off unless you set aiGlow, and with aiGlow it lit on focus and while streaming. Now every composer lights it while streaming, and only aiGlow={true} lights it on focus.
  • Finished and waiting status dots look different. done and error no longer fill solid and twinkle, and waiting no longer breathes every dot: each draws its glyph. A pattern passed by name still runs while waiting.
  • A chat reply's status line stays. A reply with no trace used to drop the line when the answer began.
  • Chat cards are a little taller, from the roomier recipe.

Upgrading

Nothing to change in most apps. If you set aiGlow on a Composer and want the ring on focus, it still works as before. If you never set it and do not want a ring while a response streams, pass aiGlow={false}, or composerGlow={false} on ChatWidget.

npm install rift-ds@1.34.0