Repository navigation
v1.34.0 — Status glyphs, approval waits and a quieter composer
·
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.
doneis a tick,erroris a cross, andwaitingis 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,doneanderror.
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 inrift-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", anduseChatAgentState()returnswaiting, both from one record, so the line and the button that opens the chat always agree.- ChatWidget
awaitingApprovalLabelsets that line's words. - ChatWidget
logotakes a node as well as an image src, so the header mark can be an inline SVG that reads the theme's tokens. - ChatWidget
composerGlowpasses Composer'saiGlowthrough. createChatHandler'scontextBlockreceives the conversation as a second argument, for a context block that answers what the visitor named as well as where they are.
Composer
aiGlowtakes"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.aiGlowastrueis the earlier look, with the ring on focus too.falsenever 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 withaiGlowit lit on focus and while streaming. Now every composer lights it whilestreaming, and onlyaiGlow={true}lights it on focus. - Finished and waiting status dots look different.
doneanderrorno longer fill solid and twinkle, andwaitingno longer breathes every dot: each draws its glyph. Apatternpassed by name still runs whilewaiting. - 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