Skip to content

Releases

Glirastes 0.29.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:46
8300622

Added

  • voice.recordingBar.variant: 'composer': while recording, the live words stand in the editor where the text goes instead of in a bar, a compact waveform ([data-component="recording-bar"][data-variant="composer"], 4.5rem wide) sits next to the mic, the mic button stops (its data-state="recording") and Escape cancels; there is no cancel or stop button. In an empty editor the words take the place of the placeholder ([data-element="placeholder"][data-live] in the pill composer, textarea[data-live] with the words as placeholder in the plain one), below a typed draft they show as [data-element="live-transcript"]; the newest 240 characters (120 in the one-row textarea). The words stay out of the value until Stop, as before; screen readers hear them through a hidden live region. New optional RichMentionInput prop liveText and VoiceInputAddon prop onLiveTranscript; the legacy mentions composer keeps the 'inline' bar. Unchanged apps: nothing changes: 'inline' stays the default and its DOM is unchanged; the plain textarea gets an aria-label with the placeholder text (its accessible name is unchanged).

Glirastes 0.28.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 13:49
da8db47

Changed

  • View context bound to the message: a message carries the view context of the moment the user sends it, also while it waits in the queue. In 0.27.0 the bundled transport read the view context when the request went out, so a queued message carried the view of its send time (known limit of 0.27.0); now a message queued at one view goes out with that view after the user or the model navigated elsewhere, and a message sent with nothing registered goes without glirastesViewContext even if a view registered before it left the queue. AiChatProvider freezes a cleaned copy when the user sends: a typed message, send/submit, <glirastes-chat> send(), a starter, follow-up or clarification chip and a direct / command when sent (at once or queued); a command form, also of a queued command, when submitted; an entity action and the "continue" message after a cut-off answer at the click. An edit of a queued message keeps the view context of the moment it was queued (remove it and send again for the view open now). The copy stays in memory (QueuedMessage.viewContext, new optional field, also in onQueueChange and queue.items): queue.storage never gets it, a viewContext field a storage returns is dropped, and a queued message restored after a reload goes without one. The bundled transport sends only the copy the message carries and no longer reads the registry when it sends; the wire format is unchanged ({ version: 1, current }, byMessage not sent) and so is the server. The copy is read only (deeply frozen: changing QueuedMessage.viewContext throws), and the bundled transport cleans what it sends again right before sending with the cleaner registerViewContext installs (a cleaned copy stays byte-identical; a changed or forged one, also passed to its sendMessage directly, is cleaned or dropped; with nothing ever registered on the page no field). ChatTransport.sendMessage has a new optional field viewContext in its first argument, set only when a view context was frozen: a transport of your own takes this field instead of currentViewContext() (which is the view at send time, so a queued message would carry the wrong one) and puts it into its body as glirastesViewContext: { version: 1, current: viewContext }, or ignores it; a transport whose parameter declares its own viewContext field of another type no longer compiles until it is renamed; and a wrapper that passes the message object on keeps it; calling the transport without AiChatProvider sends one only when passed. No code change needed: an app on the bundled transport that registers its view as before (useViewContext, registerViewContext), also with an own composer that sends through send, submit, submitWithResult or ChatStarters and with the queue on (maxSize, autoFlush), only bumps the version; what changes in behaviour is that a queued message carries the view of the moment it was queued and one restored after a reload goes without view context. Unchanged apps: nothing changes: with nothing registered the sendMessage argument ({ text } or { text, files }), the request body, the queue storage and <glirastes-chat> send() are as before. Behaviour change against 0.27.0 for apps that register a view context: a queued message carries the view of the moment it was queued instead of the send time, one restored after a reload goes without, and a transport of your own that adds currentViewContext() when sending should take the passed viewContext instead. Size for an app that never registers anything (bun build --minify, React and the AI SDK external): AiChatProvider with the Vercel transport and <glirastes-chat> (glirastes/embed) each grow by about 0.74 KB minified (0.18 KB gzip) over 0.27.0. Known limit kept: an automatic continuation the AI SDK starts from the running request can repeat the field of the first send, which the server ignores.

Glirastes 0.27.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 13:07
8332f1c

Added

  • View context, browser side: useViewContext(entry | null) (glirastes/react) and registerViewContext(source, entry | null) / currentViewContext() (glirastes/browser) let a page declare what the user has open (ViewContextEntry of glirastes/contracts: a record and/or a selection of a declared entity type in one entry, optional label, facts, unsaved, route). Nothing is read from the page or the URL. The bundled Vercel transport (VercelAiChat, useVercelAiChatTransport, <glirastes-chat>) sends it with every new user message as glirastesViewContext: { version: 1, current } when the cleaned snapshot is not empty, read at send time, cleaned and bounded in the browser with the contract (sanitizeViewContext, VIEW_CONTEXT_LIMITS: 8 entries in the order the sources first registered, 50 ids per selection with at most 100 looked at, labels of at most 60 characters); the server checks it again and stays the authority (a selection of a type it does not declare is dropped, the entry stays when it has an entity). Every new user message carries it, including the "continue" message after a cut-off answer, the answer to a clarification and a direct / command (the server adds no block for the last two). Continuations that start after the stream ended (approval resume, continueTurn, budget "Continue") carry none; an automatic continuation the AI SDK starts from the running request (an approval answered or a UI outcome written while the answer streams) can repeat the field of the first send, also an entry unregistered since, which the server ignores for every continuation (no block, model input unchanged). An update and a send in the same event handler send the previous entry (the hook registers after its commit); call registerViewContext first or send after the commit. currentViewContext() creates the shared registry when there is none; sending does not. When it is sent, the field replaces a glirastesViewContext the app puts into bodyExtras. React runs child effects first, so a page registers before its layout; past 8 entries the first 8 are sent and a parent's entry can be dropped. In development the console names each source whose entry is not sent as registered (once per source and reason, never a value). To turn it off: register nothing (or pass null), or set viewContext: false on the server (createAiChatHandler). There is no switch per chat instance: two chats on one page share the registry, and only their server endpoints can turn it off separately. A transport of your own sends nothing unless it adds currentViewContext() itself; ChatTransport is unchanged. Unchanged apps: nothing changes: while no page registers anything no field is sent, so the request body, the model input and the server block are byte-identical; the transport reaches the cleaning code only through registerViewContext, so AiChatProvider with the Vercel transport grows by about 0.4 KB minified (0.15 KB gzip, measured with bun build, React and the AI SDK external) for an app that never registers anything. The view context goes only to the app's chat route, never to the Platform, telemetry, logs or storage. Known limits: a queued message carries the view of the moment it is sent, not of the moment it was queued (binding to the message follows); a view context record does not count as seen for entityLinks.verifyMentions yet; the runtime container keeps the server side off until chat.viewContext; with piiShield a label over 60 characters is still cut before the shield sees it (see 0.25.0), so keep personal data out of long labels.

Changed

  • Behaviour change: "Send now" in the queue sends right away. queue.sendNowBehavior defaults to 'abort': sendNow(id) (and the queue's "Send now" button) stops the running answer and sends the message at once; that stop does not pause the queue. Before, the default 'next' only moved the message to the head, so with one queued message the button did nothing visible until the answer ended. sendNowBehavior: 'next' keeps the old behaviour. With an open approval sendNowDuringApproval applies as before.
  • Editing a queued message (ChatQueue): the text field takes the focus with the caret after the text, Enter saves (Shift+Enter breaks the line, not while composing with an IME), Escape cancels, and after save or cancel the focus returns to the message's Edit button.
  • The recording waveform (RecordingBar, AiTriggerButton) shows the recent loudness as thin bars that fill the width and scroll from right to left, newest on the right, with a dotted baseline for silence and the oldest side fading out. Before, six bars moved with one level. It is drawn on a canvas in the text color (currentColor), so color on [data-part="wave-container"] (or any ancestor) themes it; the element stays [data-element="waveform"] (now aria-hidden, 24 px high). With prefers-reduced-motion the bars step instead of gliding. Styles that sized or colored the old span bars no longer apply. No API change; still no second microphone (it reads the recorder's stream).

Security

  • Look-alike <view-context> tags in user text: while viewContext is on (the default), createAiChatHandler sends <view-context and </view-context in the text of user messages (and the file names of their attachments) to the model as &lt;view-context (escapeTagInText, as for <memory>): the tag in its ASCII spelling, in any case, also with whitespace, zero-width characters or a soft hyphen between < and the name or around the /, and <view-context-…>; an &lt; typed before the name becomes &amp;lt; so the two stay apart. The model still reads the text. It applies to every user message of the history sent to the model (string content and text parts), also on a continuation and with the answer to a clarification, after the PII shield and the guardrails (the PII shield and the intent classification of the pipeline mode get the text as the user wrote it, they see no file names; the guardrails, a custom streamHandler, the chat and the stream get the text and file names as the user wrote them). The block the SDK renders stays as it is. Messages the SDK writes itself are never escaped: the seen-objects memo, the chat memory, the view context block, the budget continuation and the final summary instruction. The filename of a file part is escaped too, in the part itself (providers such as @ai-sdk/openai pass it on for PDFs) and in its placeholder text; the content of files is not. Not verified against the real service: whether the OpenAI API accepts &lt; in the filename of a file part; no locally installed provider refuses the name. Not caught: full-width or look-alike characters (<, homoglyphs, other hyphens), a line break or an invisible character inside the name, control and bidi characters between < and the name (such as U+0001, U+007F, U+0085, U+200E, U+202E, U+2066), in text and file names (issue #218), entities such as &#60;, a tag split across two text parts or two messages, the content of file attachments, the tool call arguments of an approval continuation, the imitated header text without tags, chat memory notes and summaries, tool results and assistant text. Either way the block grants no permission: the server checks types, ids and facts on its own. Text without the name view-context (any case) is returned unchanged without a scan; in text with it, the pattern's rule that a < before 64 or more whitespace or zero-width characters counts as a tag still applies (over-escaping). Known limit: such text with many < and whitespace costs about 0.2 to 0.8 s of CPU per MB on Node, bounded by maxBodyBytes: 1 MB by default, but 50,000,000 bytes by default with attachments.enabled, where one such request can take roughly 10 to 40 s. Unchanged apps: the model input changes only for user text or a file name that contains the name view-context (any case): there for every tag the pattern matches, including the over-escaped < before 64 or more whitespace or zero-width characters; text and file names without the name and everything else, the block and the system prompt included, are byte-identical. With viewContext: false (and in the runtime container, which sets it) nothing changes, since no block can be sent.

Glirastes 0.26.1

Choose a tag to compare

@github-actions github-actions released this 25 Nov 09:49
ab6f8de

Fixed

  • Approval card: a chat attachment id (att_…) in the arguments of a write call, such as a client action that hands an attached file to the app, is named by the file name the user attached (from the file part, or its [attachment <id>: <name>] placeholder) instead of the warning that no name is known in this conversation. An id only the assistant wrote stays unknown.

Glirastes 0.26.0

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
2c0d7fb

Added

  • glirastes doctor check react-markdown (E-SETUP-109, warning only): a non-test source file imports glirastes/react or glirastes/embed, dependencies are installed (glirastes is found under node_modules from the app folder upwards) and react-markdown is not, so every chat answer would show its raw Markdown source. Offline file lookup, no module resolution: under Yarn Plug'n'Play and before dependencies are installed the check is left out.
  • composer.placeholderOnFocus (ComposerConfig, on AiChatProvider, VercelAiChat and <glirastes-chat>) and the RichMentionInput prop placeholderOnFocus: false hides the placeholder of the pill composer as soon as the editor has focus, the earlier look. Passed on through useChatComposerInput().inputProps.
  • MentionDropdownItemProps.onActivate (optional): a custom @// list item can make its entry the active one itself (as the arrow keys do, without scrolling the list). Call it only on real pointer movement, never on mouseenter/mouseover. Not needed for the usual case, see Changed. The listbox ([data-component="mention-dropdown"]) carries data-active-source="pointer" while the active entry is the one under the pointer, else "keyboard" (arrow keys, new results and any scroll of the list, wheel or trackpad, set it back until the pointer really moves again). composer.pointerActivation (ComposerConfig, on AiChatProvider, VercelAiChat and <glirastes-chat>) and the RichMentionInput prop pointerActivation (default true): false restores the keyboard-only list (no pointer or scroll handling, onActivate does nothing, no data-active-source, no hover look). Passed on through useChatComposerInput().inputProps.

Changed

  • The console warning without react-markdown names the package and no longer recommends npm install.
  • The active entry of the @// completion list (RichMentionInput in mention mode, the default composer with chatInteractions or completionProviders) follows the pointer: real pointer movement (pointermove, or mousemove where no pointer events fire, by at least 1 CSS pixel; the compatibility mouse event of a pointer event is not counted again) over a result or an entity action button makes it the active entry, so isSelected, data-selected, aria-selected and aria-activedescendant move with it and Enter or Tab picks it; arrow keys go on from there. It changed only by keyboard before, so an item with a hover style showed two marked rows and Enter picked the keyboard row. A list that opens, scrolls or re-renders under a resting pointer keeps the keyboard entry (mouseenter/mouseover, a move of less than 1 CSS pixel and the first event after the list opened or its results changed only record the position); touch movement is ignored; pointer activation does not scroll the list. Works for custom components.DropdownItem renderers without a change (found by the optionProps id, else by row order). The built-in stylesheet (also in glirastes/embed) gives list rows and entity action buttons a hover look equal to their selected look, only while data-active-source="pointer" and inside @media (hover: hover); a scroll of the list under a resting pointer sets the source back to keyboard, so the row that scrolled under the pointer is not marked. composer.pointerActivation: false (or pointerActivation={false} on RichMentionInput) restores the earlier behaviour.
  • The placeholder of the pill composer (RichMentionInput in mention mode, the default composer with chatInteractions or completionProviders) stays visible while the empty editor has focus, until text or a pill is in it, like a native placeholder. It disappeared on focus before; composer.placeholderOnFocus: false keeps that.
  • The label line of a direct command (a / command or entity action run without the model) carries mention markers: {{mention:command:<id>:<label>}} for the command and {{mention:<type>:<id>:<label>}} for each picked object, written with the canonical marker writer. The sent message shows them as pills instead of the plain text /Label @Name, and the approval card names an object the user picked instead of warning that no name is known for its id (provenance mention). The type comes from the argument's entity or, for an entity action's target, the action's entity (new optional PendingChatCommand.valueTypes). A value without a picked label, an argument without an entity type, an id with : and an id or type the marker writer refuses stay plain text. The line keeps its 200-character limit and is never cut inside a marker (labels are shortened inside the marker, down to 8 code points; otherwise plain text). It follows mentions.serialize: enabled: false keeps the plain line exactly as before, maxLabelLength bounds the marker labels, labels: 'raw' is not applied (always canonical, a raw label could break the command message). Old messages with a plain line show as before. On later turns the model reads the markers, so it sees the command and object ids as for any mention (it saw them before in the command's tool call). No server change: the wire format and parseChatCommandMessage are unchanged.

Fixed

  • With entityLinks.mentionMarkers: 'markdown' the raw text of an answer (while react-markdown loads, after markdown.loadingTimeoutMs, or without react-markdown) showed the escapes the SDK puts into mention labels: Abstimmung \- Wochenaktion. The raw text now shows the labels as they read; backslashes the answer itself wrote stay. markdownWithMentionMarkers escapes only what can start inline Markdown in a label (\ ` * _ [ ] < | ~) and now also &, so AT&amp;T in a label is no longer read as an entity; - . ( ) ! # + { } > are no longer escaped. Known limit: with remark-gfm a www./https:///e-mail text in a label still becomes a link, as before.
  • After a confirmed direct / command the chat showed the raw tool name: runDirectCommand never sent the tool wording. In a managed turn it now writes the transient data-tool-presentation part ahead of the step, on the fresh command and on its approved continuation, in the same shape as the model path (new option RunDirectCommandOptions.toolPresentation, passed by createAiChatHandler). Without a managed turn there is no wording and no part, as before.
  • createLocalSessionStore named a chat that began with a direct / command after the raw <!--glirastes:command …--> marker. The derived title now drops command and clarification markers and <!-- context: … --> blocks, as the message bubble does, so the visible label line becomes the title. Titles already stored are not changed.
  • The shell's title rule in styles.css (one line with ellipsis, flex: 1, 600 weight) also styled every [data-element="title"] inside the shell: the titles of the command argument form, the chat queue, the session switcher and the pipeline timeline. It now only reaches the header's own title ([data-element="header"] > [data-element="title"], same specificity as before, also in glirastes/embed). A headerTitle that nests its own [data-element="title"] deeper than the header no longer gets that rule.
  • Enter that commits an IME composition (Japanese, Chinese, Korean input) sent the message or picked the selected @// list entry; Tab picked it too. RichMentionInput (plain and mention mode) and the plain chat textarea now leave every key of an open composition to the IME (isComposing, keyCode 229 as Safari fires it after compositionend, or between compositionstart and compositionend).

Glirastes 0.25.0

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
68b717d

Added

  • Declared @ sources: mentions in .glirastes/tools.json (policy: "derived" | "declared", sources.<type>: { tool, queryParam, idField?, labelField?, itemsPath?, descriptionField?, limitParam?, label?, aliases? }, ignore, acknowledgedTypes). The key is the entity type of the tool's declared identity, whose id, name and path are the defaults. With declared only these appear in @; tools refresh / tools check report every other derivable search as mention-source-candidate with the entry to paste. Declared sources come first in the @ list, in their order. New findings mention-source-candidate, mention-source-invalid, mention-source-undeclared-type, mention-type-follows-identity, mention-type-ambiguous (all warnings). Without mentions the generated list is as before, except for the type change under Changed.
  • @ list ordered by context: useMentionContext({ preferredTypes, presetType }) below the provider (the call rendered last wins: nested over its ancestors, a later sibling or later mount over earlier ones), mentionContext on AiChatProvider / VercelAiChat and on <glirastes-chat>. Preferred groups come first, the others in declared order. This is the host indication the planned view context will feed; no second channel.
  • Type filter: @<type>:<text> searches one entity type. Typing after @ suggests matching types first (group "Filter by type", at most 3); a pick sets @<name>: and keeps the list open. presetType presets the filter on a bare @ (not inside an IME composition; on its end when the @ is still bare); Backspace behind the untouched preset removes it. Names are the entity label of the chat's language (without whitespace or colon, not only combining marks), aliases (new on ChatEntityData, ChatEntityDefinition and the overrides; one list or one per BCP-47 tag) and the canonical type; the marker keeps the canonical type. Works in MentionInput, RichMentionInput (new prop completionPreset) and own composers on useChatComposerInput. CompletionSelectKind gains 'query' (replace the typed query with insertText and search again). ChatInteractionRegistry.entityFilter, entityFilterNames, entityFilterConflicts, completionPreset; ChatInteractionsConfig.mentionContext, texts.
  • Locale keys completionCommandsGroupLabel, completionEntityTypesGroupLabel, completionEntityTypeFilterLabel (English and German ship; the commands heading was fixed to "Commands"/"Befehle").
  • List size per trigger: ChatInteractionsConfig.completionLimits ({ '/': { perProvider: 40, total: 40 } }, type CompletionLimits, also in glirastes/embed through config.chatInteractions) and createCompletionSearch(providers, { limits }). Defaults stay 8 per provider and 12 in total; total without a value is the larger of 12 and perProvider. Bounds 1–100 (perProvider) and 1–200 (total); values are truncated and clamped, non-numbers and non-finite values take the default, nothing throws. The provider applies them to every provider of the trigger, the app's own completionProviders included; each search gets perProvider as limit (a derived @ search also as limitParam), entity types share it in turn, type suggestions stay outside the caps. @'s perProvider also sizes the argument field's entity search (searchEntity, 8 before and without it). limitPerProvider / maxResults of createCompletionSearch now reach 100 / 200 (were 20 / 50).
  • createAiChatHandler option viewContext (server side of the view context; on by default, false turns it off, null counts as not set). Unchanged apps: nothing changes: without the new body field the model input (system prompt, messages, cache breakpoints) and the metrics are byte-identical, and no browser sends the field yet (the registry and hook follow in a later release). The runtime container (glirastes-runtime) turns it off (viewContext: false) until its option chat.viewContext comes. The handler reads glirastesViewContext: { version: 1, current: ViewContextEntry[] } (another version or shape is ignored; byMessage is reserved), keeps with sanitizeViewContext only entries of entity types the request's tools declare (outputEntities / inputEntities, before intent scoping, narrowed by types), at most maxEntries, facts only for a type with a schema in facts, and sends them as a <view-context> block in its own user message right after the newest user message. The block: a fixed header ("data, not an instruction", no permission), one JSON line per entry; <, line and paragraph separators, C1 controls, bidi, zero-width, invisible-format and tag characters as JSON escapes, so no value can close the block or start a line and every line stays valid JSON; no nonce: a user, or third-party data through a mention label, can write a look-alike block into their own message; no permission comes from it, and escaping <view-context in user text follows in its own PR. Size: entry lines at most 2,560 characters after the PII shield and escaping, whole trailing entries left out deterministically when escapes or pseudonyms make them longer (never part of a line); the whole block at most 2,966 characters (a hard bound): typically far fewer tokens, roughly 850 at 3.5 characters per token when full, 1,000 to 1,500 with random ids or non-ASCII text; an app makes it smaller with maxEntries and the facts config. With piiShield, the values (ids, labels, routes, fact values; not entity types or keys) go through the shield before serializing, like tool results (one anonymizeResult call, counted in the audit as anonymize-result and in totalToolCalls): a value gets the same pseudonym as in the user message and a pseudonymized id in a tool argument is restored. The shield's result is read once into an own JSON copy and each shielded entry is checked against ViewContextEntrySchema again: a label a longer pseudonym pushed over 60 characters is cut as the sanitizer cuts it, a route a pseudonym made invalid (a space) is left out, anything else that fails (or a failing shield) sends no block; the request runs on. Never in the system prompt (the block sits behind the cache breakpoint of the newest message, so the next request still hits the cache), never stored in the chat. Invalid input is dropped, never answered with 400. No block for a continuation without a new user message (approval, UI outcome, budget "continue"), a request the pipeline guardrails blocked, a direct command or a custom streamHandler. Guardrails and the app's input check do not see the view context. hideIds does not learn the ids of the block, so the model may show them in answers. Known limits until view contexts are bound to messages: the answer to a clarification gets no block (its question's view is not known), continuations of a turn carry none, and history must be 'none' ('changes' / 'all' throw at creation, like any invalid option). Known limit of the PII shield: the sanitizer cuts a label to 60 characters before the shield sees it, so in a label over 60 characters that ends with an e-mail address, IBAN or phone number the cut value may no longer be recognised and can reach the model as an unprotected fragment in plain text; ids and facts are never cut. The fix follows before the browser side of the view context. Until then, a client of your own that already sends the field should cut labels to at most 60 characters itself, or set viewContext: false. Not yet: browser side, chat.viewContext of the runtime container, facts schemas from the generated artifact, view context records counting as seen for verifyMentions, metrics of the drop counts.

Changed

  • A derived @ entity takes the type, id field and name field its search tool declares by identity at the searched list (exactly one declaration with a single id), instead of the singular of the route: media-file instead of file. Arguments, "Open" and the action ids follow (file.files.delete → media-file.files.delete), so hidden: true and other patches in .glirastes/chat-interactions.json under the old type or action id no longer apply: a hidden action shows again until the patch is renamed. A declared type that another derived search also ends up with (or that mentions.sources already has) is not adopted: every search involved keeps its route type, as before, with a mention-type-ambiguous warning; no entity of before disappears. Only apps with such a declaration are affected; mention-type-follows-identity names each type, see the migration in docs/chat-interactions.md.
  • mergeChatInteractions (and so createChatInteractionsHandler) names hidden: true patches for command ids, entity types and action ids that are not derived in a second console warning; they hide nothing. Both warnings, also the existing one for stale patches, now start with chat interaction overrides (.glirastes/chat-interactions.json or the overrides passed in code): instead of .glirastes/chat-interactions.json:, since the overrides may come as an object from code.
  • A derived @ entity without a reviewed singular is still named after its route (/api/files → "File") when its type follows the declared identity (media-file); a declared source without label is named the same way, after its type only when its path names no type (/search).
  • @<name>:<text> narrows the search to one entity type also without any new configuration, whenever the text before the first colon is a type's label, alias or canonical type: @task:123 searched every type for task:123 before, now task for 123.
  • Completion search (command ranking, type filter) also folds letters without a Unicode decomposition: ł ø đ ð ħ ı æ œ þ and their upper-case forms (wlasciciel finds Właściciel). Plain ASCII and German compare as before.
  • Derived entity labels carry every language of languages in .glirastes/tools.json (the reviewed singular of ...
Read more

Glirastes 0.24.2

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
87f5fb3

Added

  • AssistantShell: the backdrop color of the history drawer is the CSS variable --cm-history-backdrop (default rgba(17, 24, 39, 0.3), unchanged). Set it on :root or the shell element, no selector of higher specificity needed.
  • AssistantShell / AssistantWorkspace: classNames.historyBackdrop for the backdrop of the full-screen chat drawer ([data-element="history-backdrop"]). Without it the backdrop has no class, as before. The shipped backdrop color comes from a rule of specificity (0,2,0), so a single class does not override it: use .my-backdrop.my-backdrop or [data-element="history-backdrop"].my-backdrop after styles.css, or unstyled. The column and drawer states (data-drawer="true", hidden, inert, role="dialog", backdrop only while open) are now documented as stable and pinned by a test; aria-expanded on [data-action="history"] holds for the built-in toggle (with renderButton the app sets its button's attributes). Docs: after the drawer closes, focus is on the chats toggle, so a renderButton tooltip that opens on focus catches the next Escape.
  • glirastes/contracts: the mention marker grammar {{mention:type:id:label}} and its canonical profile: canonicalMentionLabel(label, { id?, maxLength? }), parseMentionMarkers(text) ({ type, id, label, canonical, span }, canonical computed on first read; the same matches as the reader before, linear also on 100,000 unterminated markers), serializeMentionMarker, isMentionMarkerType, isMentionMarkerId, MENTION_MARKER_MAX_LABEL_LENGTH (120). The React chat and the server's marker count read with it instead of two copies of one regex; what they read is unchanged.
  • MentionSerializationConfig.labels ('canonical' default, 'raw') and maxLabelLength (8-120, default 120) under mentions.serialize.
  • Contracts: the view context contract in glirastes/contracts, for the coming view context feature (nothing uses it yet). ViewContextEntry (entity: { type, id } of a declared entity type and/or selection: { type, ids }, at least one of them, so a list view needs no single record; label, facts, unsaved, route), ViewContextEntrySchema / ViewContextSchema for the shape of sanitized entries in trusted, stored data (no copy of the input promised; lists and selection.ids over 10,000 items are refused before any item is checked), and sanitizeViewContext(input, { declaredTypes, factsSchemas, policy }) for untrusted input: invalid entries and fields are dropped, never rejected, and dropped reports reason codes with counts only (field reasons only for kept entries); unknown keys are ignored without being enumerated. Characters follow the mention marker policy: labels are canonical mention labels of at most 60 code points, fact strings go through the same display cleaning, and an id or route with a hidden, control, unassigned or separator character is invalid (never cleaned). Bounds (VIEW_CONTEXT_LIMITS): 8 entries, 50 selection ids, ids exactly as sent (isEntityIdValue, no surrounding whitespace, nothing the policy removes, else dropped; a composite key as a list of 2 to 4 parts; duplicates compared by NFC); routes as a decoded path (no %, ;, query, hash, scheme, host or dot segment; non-ASCII letters allowed); facts of at most 2 KB kept only when the value as sent passes a schema of their entity type (Zod or JSON schema validator), cleaned, and validated again when cleaning changed them; 2.5 KB for all entries, where a long selection is cut to the ids that fit before an entry is dropped; every drop count stops at maxDropCount (1,000,000): it is exact up to 1,000,000 dropped and a lower bound only when more are dropped. Ids and fact strings keep delimiters as data: a renderer must write entries as JSON escaped with escapeJsonAngles (comment block) or escapeJsonForBlock (tag block). resolveViewContextPolicy resolves the coming server option viewContext (enabled default true, types, history default 'none', maxEntries, facts with false per type or for all; false turns it off) and throws on an invalid one before any input is read.

Changed

  • glirastes stt worklet lists the copied file in an existing .gitignore once (/public/audio-worklet-processor.js, or the --out path relative to the root), as glirastes init does; it never creates a .gitignore, and --no-gitignore skips the step. A ! negation of the path counts as the developer's decision and is left alone, CRLF line ends are kept, and a path gitignore would read as a pattern ([, ], *, ?, \, trailing whitespace) gets no entry. A .gitignore that cannot be read or written is a warning only; the copy still succeeds with exit 0. The --json output has a new field gitignore (added, listed, none, skipped, failed).
  • glirastes upgrade report can match upgrade notes in .css, .scss, .sass and .less files: only notes that opt in with files: ["style"] in affectedWhen/adoptedWhen, and only their patterns (an @import of glirastes/react/styles.css is no code import); every other note matches code files as before. The scan also skips storybook-static, .docusaurus and .cache.
  • Behaviour change: a picked mention is sent with its canonical label (mentions.serialize.labels: 'canonical', the default). Before, the label went raw into the marker: an entity name with }} ended the marker early, and one with a <!--context:…--> or <!--glirastes:clarification …--> comment reached the model while the bubble hid it (or made the message parse as a clarification answer); line breaks, bidi controls, zero-width, tag characters and variation selectors reached the model unseen. The label is what the chip shows, so the model now reads what the user sees there; the type and id come from the app and are not shown in the chip, as before (only hostile ones are refused). Ordinary labels, including emoji, flags, Persian, Arabic, Devanagari and Japanese names, ids and types are sent byte-identical (differential tests against the release before). The stored message text changes only in these cases: NFC (decomposed text is composed); whitespace at the start and end is trimmed; each run of control characters (also tab and line breaks) and line/paragraph separators becomes one space (NBSP, U+202F, U+3000 and runs of spaces stay); { } <! --> --!> become { } ‹! --› --!›; removed are format characters and default ignorables (bidi controls, zero-width space, word joiner, BOM, soft hyphen, U+034F, Hangul fillers, Khmer U+17B4/17B5, tag characters, variation selectors) except one ZWJ between two emoji, one ZWJ/ZWNJ between two letters of a joining script (Arabic, Syriac, Thaana, Indic, Sinhala, Khmer, Myanmar, Mongolian, Meetei Mayek, Chakma, Tai Tham, Sundanese, Newa, Limbu, Kayah Li …; the ZWJ of a legacy Malayalam chillu at word end; ZWJ/ZWNJ between Latin, Greek, Cyrillic, Han, Kana or Hangul letters is removed), the tags of the 🏴 England, Scotland and Wales flags (other tag runs are removed, the 🏴 stays), one VS15/VS16 after an emoji-capable character (after a digit, # or * only in a keycap), one IVS after a Han ideograph and one Mongolian FVS after a Mongolian letter; also removed are private use characters (icon fonts in names), noncharacters, U+2800 and lone surrogates (unassigned code points stay); a label over 120 code points is cut at a grapheme boundary to at most 119 and … (a label that would be a bare … becomes the id; never empty); only the first 4096 code points of a label (and of the label a slug is derived from) are read, before any normalisation; removal and NFC repeat until nothing changes, and a crafted label that still changes after 8 passes loses every remaining hidden character, also the joiners and selectors the rules would keep; an empty result becomes the id. A mention whose type or id carries hostile characters is sent without a marker, so the model loses the id: control characters (also tab and newline), line/paragraph separators, format characters, default ignorables, private use, unassigned or noncharacters, U+2800, lone surrogates, }, {{, <!, -->, --!> (a type also with : or over 200 UTF-16 units); the emoji, flag and joining-script exceptions apply to labels only, an id with such characters is refused, and whether a code point is unassigned depends on the engine's Unicode version (an older engine refuses an id with a code point it does not know). The token the user saw stays as typed (@acme), none of the mention's label or id enters the text, the context block does not list it, and the chat warns once per type in the console, only when NODE_ENV === 'development' (static text, no type, id or label). Spaces, single < > {, /, @, +, capitals and non-ASCII letters in ids and types, and : in ids, stay valid, as before; a type with : is refused. Such a mention can come from the legacy mentions config (search/resolve results), completion items, addActiveMention, RichMentionInput addMention/insertMention/setValue with app-built mentions, and stored drafts or queued messages. Each token occurrence is now replaced once, in one pass over the typed text: before, a label that contained a later mention's token (x @bob y) got that marker nested inside it. The context block lists the canonical label. Queued messages and restored drafts are serialized the same way when sent. mentions: { serialize: { labels: 'raw' } } restores the old format; maxLabelLength (8-120; 1-7 means 8) cuts shorter, any other value means 120. With raw nothing is validated or changed in the label, but the one-pass replacement applies too (no nested markers). Known limits: an id with : is written as before and every reader splits it at the first colon (the model gets the whole text); text stored before, written with raw, by an own client or in onBeforeSend is read as before (bubble and mo...
Read more

Glirastes 0.24.1

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
628ba75

0.24.0 was tagged but never published (its release preflight found an unreleased note); 0.24.1 is the first published 0.24 and contains everything listed under 0.24.0.

Fixed

  • A chat rendered in the browser before react-markdown had loaded (a reload with createLocalSessionStore, session.load, any history passed in) showed each Markdown text as its raw source for a moment (a list as one flat paragraph, escapes such as Live \+ v2), then the layout jumped. Such a text now shows skeleton lines: div[data-element="markdown-skeleton"][data-state="loading"][aria-busy="true"] inside [data-component="markdown"], with up to 8 span[data-element="markdown-skeleton-line"], a width estimated from the source (at most 40 characters per line, in ch, wrapping so it never widens a narrower container) and a visually hidden loading text for screen readers (not announced). The rule: the skeleton shows only on a client render inside AiChatProvider, while no turn runs (the chat is not submitted or streaming), for a text Markdown could show differently from its raw text (any of a backslash, ` * _ [ ] < > & | ~ # : @, a line break, carriage return, tab or NUL, the zero-width mention marker characters, leading whitespace, a leading -, +, = or 1./1), www. in any case; every text when entity links are on; syntax added by an app's own remark plugins is not recognised, such text stays raw until rendered, as before), and only until react-markdown has loaded. Everything else shows the raw text as before: plain text ("OK", "/Open Overview", a sentence), every bubble while a turn runs (also history that mounts during it), text rendered outside the provider (print, renderToStaticMarkup), server rendering and the hydration render. A bubble keeps what it showed first until Markdown renders, also when a turn starts or ends meanwhile (an approval pause or the moment between continuation requests is not loading: bubbles mounting then get the skeleton, the paused turn's bubbles keep their raw text, both visible at once); it decides again only when its text no longer starts with the text it decided for. While a skeleton shows, the text of its [data-component="markdown"] is the loading label instead of the source; the source is not in the DOM. The copy button copies the source as before; selecting across a skeleton and pressing Ctrl+C copies the hidden label. Its size is inline, so it takes space in a bubble sized by its content, with unstyled and in own layouts; adjust it with --cm-markdown-skeleton-color, --cm-markdown-skeleton-line-height, --cm-markdown-skeleton-gap, --cm-markdown-skeleton-radius, --cm-markdown-skeleton-padding and --cm-markdown-skeleton-max-width. The panel stylesheet adds a pulse, off under prefers-reduced-motion. Server HTML and regular hydration are unchanged (raw text, then Markdown). Declared difference: whenever React builds the chat's messages on the client instead of hydrating them (after a hydration error in the same root or Suspense boundary, before or after the chat, or for a Suspense boundary React renders on the client), a message whose text needs Markdown shows the skeleton instead of the raw source until the renderer has loaded. A finished preloadMarkdown() (or the provider's preload) also lets the first hydration in a page keep server-rendered Markdown without showing its source in between; before, only renders after the renderer had been loaded by an earlier one did. Tests that read the text of such a [data-component="markdown"] right after render now see the label and wait for the rendered Markdown. An own components.Markdown is not affected.

Glirastes 0.24.0

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
4703901

Added

  • AssistantShell / AssistantWorkspace slots, all opt-in (an app that sets none of them gets the same DOM, behaviour and styles): showModeMenu={false} drops the layout menu and its key handling while 'fullscreen' stays a mode; renderModeMenu({ modes, current, setMode, label, title, entries }) draws an own layout control in its place. historyPane also takes a function, rendered as a component of its own (hooks inside belong to it; pass a stable function and switch panes inside it, it is not remounted when its identity changes), that gets { open, drawer, close } (AssistantHistoryPaneProps), so an own column can close the drawer below 900 px (close() moves focus to the first editor or textarea outside the column, else to an element marked data-glirastes-composer or a text input inside it, else to the chats toggle; close('toggle') to the chats toggle; a stale close() does nothing). historyTitle (node, function or false) replaces [data-element="history-title"]; classNames.history styles the column. icons.newChat, icons.rename, icons.delete reach the shell's own session switchers. New types AssistantModeMenuRenderProps, AssistantModeMenuEntry.
  • SessionSwitcher takes icons (SessionSwitcherIcons: newChat, rename, delete; DEFAULT_SESSION_SWITCHER_ICONS); the default "+" stays the text character, newChat: false drops it, other empty values keep it. useSessionLock() returns { visible, sessionChangeBlocked, locked } (SessionLockState), the rule the built-in switcher follows, for an app's own session controls (instead of isSessionChangeBlocked ?? isLoading); when the lock applies is unchanged.
  • CLI: glirastes stt worklet [--out <dir>] [--root <path>] [--json] copies the audio worklet voice input needs into public/ (or --out), served at /audio-worklet-processor.js; an identical copy is left alone, the source map comment is dropped. The file is also a package export, glirastes/react/audio-worklet-processor.js.
  • glirastes init chains glirastes stt worklet && in front of predev and prebuild for Next.js, Vite and Create React App apps (new or existing scripts; existing commands stay) and lists /public/audio-worklet-processor.js in an existing .gitignore (it creates none). A React app without one of them gets a note on how to serve the file.
  • glirastes doctor: new check voice-worklet for apps that use voice input (voice: { enabled: true }, VoiceInputAddon, VoiceInputButton, RecordedSttAdapter, DeepgramSttAdapter, useDeepgramTranscription). It passes only when the file exists under public/ at each literal workletUrl path, or at /audio-worklet-processor.js when none is set. Without the file or a copy script it fails (E-SETUP-034, provide-audio-worklet) and names the fix; a package.json script that copies it but has not run yet is a warning (run-audio-worklet-copy), as are a copy into another --out folder and an absolute worklet URL (verify-audio-worklet-url). Apps without voice input get no check. Known limit: voice use is detected from the glirastes voice symbols and a literal voice: { enabled: true } only.
  • STT: AudioWorkletLoadError (url, cause), isAudioWorkletLoadError and AUDIO_WORKLET_UNAVAILABLE in glirastes/react and glirastes/stt; SttSessionSnapshot.errorCode ('audio-worklet-unavailable'), also on useStt and useDeepgramTranscription. VoiceInputButtonProps.adapter.
  • Locale keys voiceStartAriaLabel, voiceStopAriaLabel, voiceConnectingAriaLabel, voiceTranscribingAriaLabel, voiceCancelAriaLabel, voiceFailedText, voiceUnavailableText (German ships).
  • Chat handler: the stop notice after a limit now says what was done (activity labels of the turn's successful app tool calls, never arguments or results) and what is open (the open update_plan items, else that the question is not answered yet), with the new budgetStopTexts keys done, open, openUnanswered, continueHint, continueTypedHint (English and German ship). The stream writes a data-budget-stop part ({ v: 1, continuable }) before the notice.
  • Chat: a "Continue" button (<button data-action="continue-after-stop">, locale key continueButton, German now "Weitermachen") under the latest answer that ended at a continuable stop. It resends the history with glirastesContinuation: 'budget'; the handler continues the same turn with a fresh budget, tells the model which tool calls already ran, and answers a repeated call of a non-read-only tool attempted before the stop (same tool and normalized arguments, successful or failed) with a tool error instead of running it or asking for approval (fail closed). The guard also covers the approval and UI outcome requests after the continuation; in a managed turn a refusal counts as a tool error. Each continuation gets a fresh per-request budget (up to 4x per question; no policy switch yet); a typed follow-up is a new turn without the guard. At most 3 continuations per turn; an invalid one gets 400. ChatTransport.continueAfterBudgetStop, ChatContextValue.continueAfterBudgetStop, MessagePartNodes.continuation; onFinish reports continuation: 'budget', metrics a normal turn.finished.
  • preloadMarkdown() in glirastes/react starts loading the default Markdown renderer (react-markdown). Every call returns the same promise; it never rejects (without react-markdown the chat shows plain text, as before) and is safe on the server; once it has resolved (also through the provider's preload), even the first render in a page that shows a message, including its hydration, shows Markdown right away (before, the module-wide renderer was loaded by that first render, which showed the raw text once; later renders already showed Markdown). AiChatProvider now calls it when it mounts, unless components.Markdown or components.MessageBubble is set (an own bubble built on useMessageParts still renders the default Markdown: call preloadMarkdown() yourself) or markdown={{ preload: false }} (new ChatMarkdownOptions.preload, default true): react-markdown is downloaded right at mount, also while a floating chat is still closed and in apps that use the provider headless (before, when the first message rendered). Without react-markdown installed, its console.warn now appears at provider mount. Locale key markdownLoadingLabel (optional; English "Loading message…", German ships).

Changed

  • Server approval subjects cover arguments that hold a list of ids (memberIds: ['u1', 'u2']): each distinct id is its own looked-up subject with the semantics of a single id (named when found, the call refused with approval_subject_not_found when one does not exist, not checkable with its reason on a timeout or error). All of them keep the argument's path, so the card shows one line "User: Ann, Bob" and the browser no longer warns about the same ids from its history. A list is declared like a single id ({ type: 'user', args: 'memberIds', role: 'reference' }, named in approvalSubject.refs for a reference). Each id counts against maxSubjectsPerCall (more are limit) and maxLookupsPerTurn; cache, recheck, PII shield rehydration and the v2 subject digest index the list in input order, duplicates dropped. An empty list names no record. A list with an entry that is no id, more than 100 ids, or a list inside a composite key gets no server subject and is never a passed check (block and recheck refuse). MAX_PART_SUBJECTS is 100 (was 20). Without a server part the browser types each id of a declared list too. glirastes tools refresh reports a composite key with a list argument as approval-subject-invalid.
  • Voice button (VoiceInputAddon, VoiceInputButton) and retry button show icons (inline SVG) with localized aria-label and title per state (idle, connecting, recording, transcribing, failed) instead of the words mic, stop and retry; the recording bar's cancel and stop buttons use the chat locale instead of fixed German labels. Tests that found the button by its text use the aria-label or [data-component="voice-input-addon"].
  • voice.workletUrl now reaches an own adapter passed as voice.adapter (SttProviderAdapter.acceptsWorkletUrl, connect({ workletUrl })): RecordedSttAdapter and DeepgramSttAdapter use it when their constructor sets none (the constructor option wins). For an adapter that does not declare acceptsWorkletUrl the chat warns once in the console that the URL is ignored and how to pass it to the constructor. useStt takes workletUrl.
  • The fixed system note sent while the browser reports UI action outcomes (UI_OUTCOME_SYSTEM_NOTE, glirastes/contracts) gains one sentence: Do not announce a UI action in text before you call it; say what happened once its outcome is reported. Before, a model often wrote an interim sentence such as "Ich hebe den Auftrag hervor." before the UI tool call, and when the browser then refused the action that sentence stayed above the failure text. It is an instruction to the model, not a guarantee. Only requests that use the outcome protocol (the default for glirastes/react and glirastes/embed) get the note; the system prompt of those requests changes once, so a cached prompt prefix is rebuilt.
  • Runtime: the default local budget allows 10 model steps per turn (was 6) and 60,000 input tokens (was 40,000), also in the runtime container. Typical read-plus-planning tasks need 7 steps and stopped one step short of the answer; every step resends the turn, so 10 steps need about 50,000 input tokens. Tool calls (8), time and cost limits are unchanged. Apps that rely on the old values set localLimits: { maxModelSteps: 6, maxInputTokens: 40_000 } (container: limits.*).

Fixed

  • Voice input no longer fails silently when the audio worklet cannot be loaded (404): the chat shows a localized alert (span[role="alert"][data-element="voice-error"], `voiceUnavailable...
Read more

Glirastes 0.23.0

Choose a tag to compare

@Piwo96 Piwo96 released this 25 Nov 09:06
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.