Skip to content

Glirastes 0.23.0

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
· 52 commits to main since this release
51142ba

Added

  • Chat composer: composer.layout: 'stacked' puts the editor on its own row and the toolbar items in a row under it (div[data-component="composer-toolbar"][data-layout="stacked"] with toolbar-start left and toolbar-end right); the default 'inline' keeps today's single row. components.ComposerToolbar still wins.
  • Chat composer: composer.clarificationChips shows the options of an open clarification as chips above the composer (same answer message as the card; hidden while loading, once answered and without options; disabled while locked); the card then keeps question and free text only (ClarificationCardProps.showOptions). ClarificationChips for own panels; locale key clarificationChipsLabel. Default off.
  • Chat composer: composer.starters (ChatStarter: label, prompt, description, icon, send) shows starter chips above the composer on an empty chat; a click fills the composer and focuses it, send: true sends. Disabled while the composer is locked; suggestions.staticChips are hidden while starters show. ChatStarters for own panels; locale key startersLabel. Default off.
  • Chat composer: composer.hint shows a keyboard hint line under the composer ("↵ Send · ⇧ ↵ New line", the list keys while a completion list is open; aria-hidden, hidden on touch devices). ComposerHint for own composers with ChatComposerInput.completionOpen; RichMentionInputProps.onListOpenChange; locale keys composerHintSend, composerHintNewline, composerHintNavigate, composerHintPick, composerHintClose. Default off.
  • Chat composer: "+" menu rows show an icon and a description (ComposerToolbarItem.description, ChatTriggerDefinition.icon/description; a trigger:<char> button shows the trigger's icon). composer.renderIcon(name, { type, trigger }) renders string icon names of completion entries (new CompletionItem.icon; the existing ChatCommandDefinition.icon and ChatEntityDefinition.icon now reach it) in the default list item and in plusMenu.source rows; plusMenu.source rows now show the entry's description.
  • Assistant: full screen (setMode('fullscreen'), restoreMode()). AssistantShell renders full screen as a modal (the shell is role="dialog" aria-modal, the page inert, body scroll locked, Tab stays inside); Escape (when no completion list, menu or dialog owns it), restoreMode() and the layout shortcut return to defaultMode, mod+I closes. Full screen never becomes the opening layout; an open full screen survives a reload. The conversation keeps a reading width of --cm-chat-max-width (default 960px). It stacks at --cm-chat-fullscreen-z (default 1000); page elements marked data-cm-keep-interactive (toasters, portal roots) stay usable, everything else present before it opens is inert. Label fullscreen (German ships).
  • Assistant: AssistantShell / AssistantWorkspace take modes (default ['sidebar', 'floating'], unchanged header). With 'fullscreen' in it a layout menu (menuitemradio entries Sidebar / Window / Full screen, arrow keys, Escape closes only the menu) replaces the detach/dock button; one entry hides the layout control and shortcut; a layout outside modes falls back. AssistantShellButtonProps gains expanded and controls; labels layout, sidebar, floating, icons fullscreen, history (German ships).
  • Assistant: in full screen AssistantShell shows a chat column (260 px) left of the conversation when the chat keeps several: SessionSwitcher variant="list", the header then names the open chat. A header toggle (aria-expanded, aria-controls) hides and shows it; below 900 px it is a drawer (role="dialog", focus moves in, the conversation is inert, Escape, backdrop or a pick close it). historyPane={false} removes it, a node replaces it. Labels history, showHistory, hideHistory (German ships).
  • SessionSwitcher takes variant="list": an always visible chat list (nav with new chat, "Recent chats", rows newest first with aria-current, rename, delete through the themed confirm dialog, arrow keys / Home / End between the rows; locked while a reply streams). onSelect runs after a pick or a new chat, in both variants. Locale keys chatHistoryLabel, recentChatsLabel (German ships). The dropdown markup is unchanged.
  • Assistant: AssistantShell / AssistantWorkspace take minPageWidth: the docked assistant never grows so wide that the page row keeps less than that (never below minWidth; below narrowWidth it still fills the row). The user's chosen width is kept and comes back on wider windows. Default 0.
  • Chat: a recorded TurnOutcome carries durationMs, the turn's working time (the time its requests ran; a run after an approval adds to the first, the wait for the user does not count), measured in the browser and stored with the outcome in the session store; onTurnEnd and useTurnOutcome receive it. Outcomes stored by older versions have none.
  • Chat: messageFooter (true or MessageFooterConfig copy / sources / duration / stop) adds a footer under each answer (div[data-component="message-footer"]): copy as formatted HTML for Word/Outlook plus plain text, a toggle with the https links the answer cites (Markdown links, source-url parts, tool sources/citations; at most 20), "Done in 3.2 s" under the last answer of a completed turn, and while it runs the elapsed time with a stop button. MessagePartNodes.footer for own MessageParts / useMessageParts layouts; locale keys copyMessageLabel, copiedMessageLabel, copyMessageFailedLabel, messageSourceOneLabel, messageSourcesLabel, messageDurationLabel (German ships). Default off; computed in the browser, nothing is sent.
  • Chat: suggestions.placement: 'message' shows the latest answer's follow-up questions (suggest_followups, or its trailing suggestion list) as buttons under it ([data-element="follow-ups"], role="group" labelled "Ask next"; a click sends) instead of the rotating chip above the composer. Hidden while a turn runs, an approval or clarification is open, after a stop, error or safety stop, under older answers and with suggestions.enabled: false; disabled while the composer is locked. The SuggestionBar and staticChips show nowhere then. Locale key followUpsLabel (German ships). Default 'composer', unchanged.
  • Chat: activityLog.hiddenTools lists model-facing tool names (e.g. ui_action_toast) that never show in the activity log: no step, no summary count, no section split, and they do not hide the typing indicator. The tools still run and their UI actions still fire. Default [].

Changed

  • Types (breaking, type-only): AssistantLayoutMode gains 'fullscreen', AssistantShellAction gains 'mode' and 'history', and AssistantLayout gains the required restoreMode. An exhaustive switch, a Record<AssistantLayoutMode, …> / Record<AssistantShellAction, …> or a hand-built AssistantLayout (a useAssistantLayout mock) needs the new cases and member. Without modes nothing changes at runtime.
  • createLocalSessionStore keeps each chat's unsent composer text in the browser storage (${storageKey}:draft:<id>), so it survives a reload; removed when sent, when the chat is removed, cleared or evicted, and by clearLocalSessionStore. drafts: false turns it off. Own stores can add SessionConfig.draft (ComposerDraftStorage); writes are debounced (300 ms) and flushed on switch, pagehide and unmount; drafts over 20,000 characters are not written.
  • Chat composer: the unsent text belongs to its chat (ComposerDraft). Switching chats shows that chat's draft instead of carrying the text over; the draft survives a remount of the input inside the same provider and is cleared by sending. Pills keep their ids; attachments are not part of a draft. Drafts live as long as the AiChatProvider instance.

Fixed

  • Next.js handler: createAiChatHandler warns once at creation when followups is set without pipeline; the suggest_followups tool exists only in pipeline mode, so the setting did nothing silently before. Tool registration is unchanged.
  • Chat: the SuggestionBar honours suggestions.enabled: false (no follow-up or static chip shows), and a turn that brings no follow-ups drops the previous turn's chips instead of showing them again; the static chips (or none) show then. Follow-ups are read from the latest turn only.
  • Assistant: the sidebar width handle announces (aria-valuemax) and stops (End key, drag) at the widest width that can actually render in the row, instead of maxWidth.
  • Chat composer: useChatComposer() (insertText, setDraft, chatAbout, clear, focus) also fills the plain chat input (no completion, no attachments); mentions arrive there as their text.
  • Chat composer: onCompletionSelect returning true also removes the typed trigger and query when the handler put text or a pill before them (setText, insertMention at the start); after a rebuild only a single whole-word occurrence is removed (inserted text such as #bug-7 is never cut), several remove nothing.