Repository navigation
Releases
Releases · chainmatics/glirastes
Glirastes 0.29.0
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 (itsdata-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 asplaceholderin 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 optionalRichMentionInputpropliveTextandVoiceInputAddonproponLiveTranscript; the legacymentionscomposer keeps the'inline'bar. Unchanged apps: nothing changes:'inline'stays the default and its DOM is unchanged; the plain textarea gets anaria-labelwith the placeholder text (its accessible name is unchanged).
Glirastes 0.28.0
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
glirastesViewContexteven if a view registered before it left the queue.AiChatProviderfreezes 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 inonQueueChangeandqueue.items):queue.storagenever gets it, aviewContextfield 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 },byMessagenot sent) and so is the server. The copy is read only (deeply frozen: changingQueuedMessage.viewContextthrows), and the bundled transport cleans what it sends again right before sending with the cleanerregisterViewContextinstalls (a cleaned copy stays byte-identical; a changed or forged one, also passed to itssendMessagedirectly, is cleaned or dropped; with nothing ever registered on the page no field).ChatTransport.sendMessagehas a new optional fieldviewContextin its first argument, set only when a view context was frozen: a transport of your own takes this field instead ofcurrentViewContext()(which is the view at send time, so a queued message would carry the wrong one) and puts it into its body asglirastesViewContext: { version: 1, current: viewContext }, or ignores it; a transport whose parameter declares its ownviewContextfield of another type no longer compiles until it is renamed; and a wrapper that passes the message object on keeps it; calling the transport withoutAiChatProvidersends 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 throughsend,submit,submitWithResultorChatStartersand 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 thesendMessageargument ({ 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 addscurrentViewContext()when sending should take the passedviewContextinstead. Size for an app that never registers anything (bun build --minify, React and the AI SDK external):AiChatProviderwith 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
Added
- View context, browser side:
useViewContext(entry | null)(glirastes/react) andregisterViewContext(source, entry | null)/currentViewContext()(glirastes/browser) let a page declare what the user has open (ViewContextEntryofglirastes/contracts: a record and/or a selection of a declared entity type in one entry, optionallabel,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 asglirastesViewContext: { 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); callregisterViewContextfirst or send after the commit.currentViewContext()creates the shared registry when there is none; sending does not. When it is sent, the field replaces aglirastesViewContextthe app puts intobodyExtras. 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 passnull), or setviewContext: falseon 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 addscurrentViewContext()itself;ChatTransportis 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 throughregisterViewContext, soAiChatProviderwith the Vercel transport grows by about 0.4 KB minified (0.15 KB gzip, measured withbun 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 forentityLinks.verifyMentionsyet; the runtime container keeps the server side off untilchat.viewContext; withpiiShielda 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.sendNowBehaviordefaults 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 approvalsendNowDuringApprovalapplies 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), socoloron[data-part="wave-container"](or any ancestor) themes it; the element stays[data-element="waveform"](nowaria-hidden, 24 px high). Withprefers-reduced-motionthe bars step instead of gliding. Styles that sized or colored the oldspanbars 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: whileviewContextis on (the default),createAiChatHandlersends<view-contextand</view-contextin the text of user messages (and the file names of their attachments) to the model as<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<typed before the name becomes&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 customstreamHandler, 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. Thefilenameof a file part is escaped too, in the part itself (providers such as@ai-sdk/openaipass 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<in thefilenameof 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<, 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 nameview-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 bymaxBodyBytes: 1 MB by default, but 50,000,000 bytes by default withattachments.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 nameview-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. WithviewContext: false(and in the runtime container, which sets it) nothing changes, since no block can be sent.
Glirastes 0.26.1
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
Added
glirastes doctorcheckreact-markdown(E-SETUP-109, warning only): a non-test source file importsglirastes/reactorglirastes/embed, dependencies are installed (glirastesis found undernode_modulesfrom the app folder upwards) andreact-markdownis 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, onAiChatProvider,VercelAiChatand<glirastes-chat>) and theRichMentionInputpropplaceholderOnFocus:falsehides the placeholder of the pill composer as soon as the editor has focus, the earlier look. Passed on throughuseChatComposerInput().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 onmouseenter/mouseover. Not needed for the usual case, see Changed. The listbox ([data-component="mention-dropdown"]) carriesdata-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, onAiChatProvider,VercelAiChatand<glirastes-chat>) and theRichMentionInputproppointerActivation(defaulttrue):falserestores the keyboard-only list (no pointer or scroll handling,onActivatedoes nothing, nodata-active-source, no hover look). Passed on throughuseChatComposerInput().inputProps.
Changed
- The console warning without react-markdown names the package and no longer recommends
npm install. - The active entry of the
@//completion list (RichMentionInputin mention mode, the default composer withchatInteractionsorcompletionProviders) follows the pointer: real pointer movement (pointermove, ormousemovewhere 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, soisSelected,data-selected,aria-selectedandaria-activedescendantmove 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 customcomponents.DropdownItemrenderers without a change (found by theoptionPropsid, else by row order). The built-in stylesheet (also inglirastes/embed) gives list rows and entity action buttons a hover look equal to their selected look, only whiledata-active-source="pointer"and inside@media (hover: hover); a scroll of the list under a resting pointer sets the source back tokeyboard, so the row that scrolled under the pointer is not marked.composer.pointerActivation: false(orpointerActivation={false}onRichMentionInput) restores the earlier behaviour. - The placeholder of the pill composer (
RichMentionInputin mention mode, the default composer withchatInteractionsorcompletionProviders) 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: falsekeeps 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 (provenancemention). The type comes from the argument'sentityor, for an entity action's target, the action's entity (new optionalPendingChatCommand.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 followsmentions.serialize:enabled: falsekeeps the plain line exactly as before,maxLabelLengthbounds 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 andparseChatCommandMessageare unchanged.
Fixed
- With
entityLinks.mentionMarkers: 'markdown'the raw text of an answer (while react-markdown loads, aftermarkdown.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.markdownWithMentionMarkersescapes only what can start inline Markdown in a label (\ ` * _ [ ] < | ~) and now also&, soAT&Tin a label is no longer read as an entity;- . ( ) ! # + { } >are no longer escaped. Known limit: with remark-gfm awww./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:runDirectCommandnever sent the tool wording. In a managed turn it now writes the transientdata-tool-presentationpart ahead of the step, on the fresh command and on its approved continuation, in the same shape as the model path (new optionRunDirectCommandOptions.toolPresentation, passed bycreateAiChatHandler). Without a managed turn there is no wording and no part, as before. createLocalSessionStorenamed 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 inglirastes/embed). AheaderTitlethat 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 aftercompositionend, or betweencompositionstartandcompositionend).
Glirastes 0.25.0
Added
- Declared
@sources:mentionsin.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. Withdeclaredonly these appear in@;tools refresh/tools checkreport every other derivable search asmention-source-candidatewith the entry to paste. Declared sources come first in the@list, in their order. New findingsmention-source-candidate,mention-source-invalid,mention-source-undeclared-type,mention-type-follows-identity,mention-type-ambiguous(all warnings). Withoutmentionsthe 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),mentionContextonAiChatProvider/VercelAiChatand 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.presetTypepresets 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 onChatEntityData,ChatEntityDefinitionand the overrides; one list or one per BCP-47 tag) and the canonical type; the marker keeps the canonical type. Works inMentionInput,RichMentionInput(new propcompletionPreset) and own composers onuseChatComposerInput.CompletionSelectKindgains'query'(replace the typed query withinsertTextand 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 } }, typeCompletionLimits, also inglirastes/embedthroughconfig.chatInteractions) andcreateCompletionSearch(providers, { limits }). Defaults stay 8 per provider and 12 in total;totalwithout a value is the larger of 12 andperProvider. 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 owncompletionProvidersincluded; each search getsperProvideraslimit(a derived@search also aslimitParam), entity types share it in turn, type suggestions stay outside the caps.@'sperProvideralso sizes the argument field's entity search (searchEntity, 8 before and without it).limitPerProvider/maxResultsofcreateCompletionSearchnow reach 100 / 200 (were 20 / 50). createAiChatHandleroptionviewContext(server side of the view context; on by default,falseturns it off,nullcounts 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 optionchat.viewContextcomes. The handler readsglirastesViewContext: { version: 1, current: ViewContextEntry[] }(another version or shape is ignored;byMessageis reserved), keeps withsanitizeViewContextonly entries of entity types the request's tools declare (outputEntities/inputEntities, before intent scoping, narrowed bytypes), at mostmaxEntries, facts only for a type with a schema infacts, 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-contextin 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 withmaxEntriesand thefactsconfig. WithpiiShield, the values (ids, labels, routes, fact values; not entity types or keys) go through the shield before serializing, like tool results (oneanonymizeResultcall, counted in the audit asanonymize-resultand intotalToolCalls): 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 againstViewContextEntrySchemaagain: 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 customstreamHandler. Guardrails and the app's input check do not see the view context.hideIdsdoes 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, andhistorymust 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 setviewContext: false. Not yet: browser side,chat.viewContextof the runtime container, facts schemas from the generated artifact, view context records counting as seen forverifyMentions, 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-fileinstead offile. Arguments, "Open" and the action ids follow (file.files.delete→media-file.files.delete), sohidden: trueand other patches in.glirastes/chat-interactions.jsonunder 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 thatmentions.sourcesalready has) is not adopted: every search involved keeps its route type, as before, with amention-type-ambiguouswarning; no entity of before disappears. Only apps with such a declaration are affected;mention-type-follows-identitynames each type, see the migration indocs/chat-interactions.md. mergeChatInteractions(and socreateChatInteractionsHandler) nameshidden: truepatches 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 withchat 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 withoutlabelis 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:123searched every type fortask:123before, nowtaskfor123.- Completion search (command ranking, type filter) also folds letters without a Unicode decomposition:
ł ø đ ð ħ ı æ œ þand their upper-case forms (wlascicielfindsWłaściciel). Plain ASCII and German compare as before. - Derived entity labels carry every language of
languagesin.glirastes/tools.json(the reviewed singular of ...
Glirastes 0.24.2
Added
AssistantShell: the backdrop color of the history drawer is the CSS variable--cm-history-backdrop(defaultrgba(17, 24, 39, 0.3), unchanged). Set it on:rootor the shell element, no selector of higher specificity needed.AssistantShell/AssistantWorkspace:classNames.historyBackdropfor the backdrop of the full-screen chat drawer ([data-element="history-backdrop"]). Without it the backdrop has noclass, 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-backdropor[data-element="history-backdrop"].my-backdropafterstyles.css, orunstyled. 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-expandedon[data-action="history"]holds for the built-in toggle (withrenderButtonthe app sets its button's attributes). Docs: after the drawer closes, focus is on the chats toggle, so arenderButtontooltip 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 },canonicalcomputed 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') andmaxLabelLength(8-120, default 120) undermentions.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/orselection: { type, ids }, at least one of them, so a list view needs no single record;label,facts,unsaved,route),ViewContextEntrySchema/ViewContextSchemafor the shape of sanitized entries in trusted, stored data (no copy of the input promised; lists andselection.idsover 10,000 items are refused before any item is checked), andsanitizeViewContext(input, { declaredTypes, factsSchemas, policy })for untrusted input: invalid entries and fields are dropped, never rejected, anddroppedreports 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 atmaxDropCount(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 withescapeJsonAngles(comment block) orescapeJsonForBlock(tag block).resolveViewContextPolicyresolves the coming server optionviewContext(enableddefaulttrue,types,historydefault'none',maxEntries,factswithfalseper type or for all;falseturns it off) and throws on an invalid one before any input is read.
Changed
glirastes stt workletlists the copied file in an existing.gitignoreonce (/public/audio-worklet-processor.js, or the--outpath relative to the root), asglirastes initdoes; it never creates a.gitignore, and--no-gitignoreskips 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.gitignorethat cannot be read or written is a warning only; the copy still succeeds with exit 0. The--jsonoutput has a new fieldgitignore(added,listed,none,skipped,failed).glirastes upgrade reportcan match upgrade notes in.css,.scss,.sassand.lessfiles: only notes that opt in withfiles: ["style"]inaffectedWhen/adoptedWhen, and only theirpatterns(an@importofglirastes/react/styles.cssis no code import); every other note matches code files as before. The scan also skipsstorybook-static,.docusaurusand.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 whenNODE_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 legacymentionsconfig (search/resolveresults), completion items,addActiveMention,RichMentionInputaddMention/insertMention/setValuewith 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. Withrawnothing 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 withraw, by an own client or inonBeforeSendis read as before (bubble and mo...
Glirastes 0.24.1
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 asLive \+ 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 8span[data-element="markdown-skeleton-line"], a width estimated from the source (at most 40 characters per line, inch, 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 insideAiChatProvider, while no turn runs (the chat is notsubmittedorstreaming), 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-,+,=or1./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, withunstyledand 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-paddingand--cm-markdown-skeleton-max-width. The panel stylesheet adds a pulse, off underprefers-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 finishedpreloadMarkdown()(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 owncomponents.Markdownis not affected.
Glirastes 0.24.0
Added
AssistantShell/AssistantWorkspaceslots, 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.historyPanealso 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 ortextareaoutside the column, else to an element markeddata-glirastes-composeror a text input inside it, else to the chats toggle;close('toggle')to the chats toggle; a staleclose()does nothing).historyTitle(node, function orfalse) replaces[data-element="history-title"];classNames.historystyles the column.icons.newChat,icons.rename,icons.deletereach the shell's own session switchers. New typesAssistantModeMenuRenderProps,AssistantModeMenuEntry.SessionSwitchertakesicons(SessionSwitcherIcons:newChat,rename,delete;DEFAULT_SESSION_SWITCHER_ICONS); the default "+" stays the text character,newChat: falsedrops 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 ofisSessionChangeBlocked ?? isLoading); when the lock applies is unchanged.- CLI:
glirastes stt worklet [--out <dir>] [--root <path>] [--json]copies the audio worklet voice input needs intopublic/(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 initchainsglirastes stt worklet &&in front ofpredevandprebuildfor Next.js, Vite and Create React App apps (new or existing scripts; existing commands stay) and lists/public/audio-worklet-processor.jsin 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 checkvoice-workletfor apps that use voice input (voice: { enabled: true },VoiceInputAddon,VoiceInputButton,RecordedSttAdapter,DeepgramSttAdapter,useDeepgramTranscription). It passes only when the file exists underpublic/at each literalworkletUrlpath, or at/audio-worklet-processor.jswhen 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--outfolder 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 literalvoice: { enabled: true }only.- STT:
AudioWorkletLoadError(url,cause),isAudioWorkletLoadErrorandAUDIO_WORKLET_UNAVAILABLEinglirastes/reactandglirastes/stt;SttSessionSnapshot.errorCode('audio-worklet-unavailable'), also onuseSttanduseDeepgramTranscription.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_planitems, else that the question is not answered yet), with the newbudgetStopTextskeysdone,open,openUnanswered,continueHint,continueTypedHint(English and German ship). The stream writes adata-budget-stoppart ({ v: 1, continuable }) before the notice. - Chat: a "Continue" button (
<button data-action="continue-after-stop">, locale keycontinueButton, German now "Weitermachen") under the latest answer that ended at a continuable stop. It resends the history withglirastesContinuation: '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 gets400.ChatTransport.continueAfterBudgetStop,ChatContextValue.continueAfterBudgetStop,MessagePartNodes.continuation;onFinishreportscontinuation: 'budget', metrics a normalturn.finished. preloadMarkdown()inglirastes/reactstarts 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).AiChatProvidernow calls it when it mounts, unlesscomponents.Markdownorcomponents.MessageBubbleis set (an own bubble built onuseMessagePartsstill renders the default Markdown: callpreloadMarkdown()yourself) ormarkdown={{ preload: false }}(newChatMarkdownOptions.preload, defaulttrue): 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, itsconsole.warnnow appears at provider mount. Locale keymarkdownLoadingLabel(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 withapproval_subject_not_foundwhen 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 inapprovalSubject.refsfor a reference). Each id counts againstmaxSubjectsPerCall(more arelimit) andmaxLookupsPerTurn; 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 (blockandrecheckrefuse).MAX_PART_SUBJECTSis 100 (was 20). Without a server part the browser types each id of a declared list too.glirastes tools refreshreports a composite key with a list argument asapproval-subject-invalid. - Voice button (
VoiceInputAddon,VoiceInputButton) and retry button show icons (inline SVG) with localizedaria-labelandtitleper state (idle, connecting, recording, transcribing, failed) instead of the wordsmic,stopandretry; 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.workletUrlnow reaches an own adapter passed asvoice.adapter(SttProviderAdapter.acceptsWorkletUrl,connect({ workletUrl })):RecordedSttAdapterandDeepgramSttAdapteruse it when their constructor sets none (the constructor option wins). For an adapter that does not declareacceptsWorkletUrlthe chat warns once in the console that the URL is ignored and how to pass it to the constructor.useStttakesworkletUrl.- 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 forglirastes/reactandglirastes/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...
Glirastes 0.23.0
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"]withtoolbar-startleft andtoolbar-endright); the default'inline'keeps today's single row.components.ComposerToolbarstill wins. - Chat composer:
composer.clarificationChipsshows 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).ClarificationChipsfor own panels; locale keyclarificationChipsLabel. 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: truesends. Disabled while the composer is locked;suggestions.staticChipsare hidden while starters show.ChatStartersfor own panels; locale keystartersLabel. Default off. - Chat composer:
composer.hintshows 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).ComposerHintfor own composers withChatComposerInput.completionOpen;RichMentionInputProps.onListOpenChange; locale keyscomposerHintSend,composerHintNewline,composerHintNavigate,composerHintPick,composerHintClose. Default off. - Chat composer: "+" menu rows show an icon and a description (
ComposerToolbarItem.description,ChatTriggerDefinition.icon/description; atrigger:<char>button shows the trigger's icon).composer.renderIcon(name, { type, trigger })renders string icon names of completion entries (newCompletionItem.icon; the existingChatCommandDefinition.iconandChatEntityDefinition.iconnow reach it) in the default list item and inplusMenu.sourcerows;plusMenu.sourcerows now show the entry'sdescription. - Assistant: full screen (
setMode('fullscreen'),restoreMode()).AssistantShellrenders full screen as a modal (the shell isrole="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 todefaultMode, 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 markeddata-cm-keep-interactive(toasters, portal roots) stay usable, everything else present before it opens is inert. Labelfullscreen(German ships). - Assistant:
AssistantShell/AssistantWorkspacetakemodes(default['sidebar', 'floating'], unchanged header). With'fullscreen'in it a layout menu (menuitemradioentries 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 outsidemodesfalls back.AssistantShellButtonPropsgainsexpandedandcontrols; labelslayout,sidebar,floating, iconsfullscreen,history(German ships). - Assistant: in full screen
AssistantShellshows 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. Labelshistory,showHistory,hideHistory(German ships). SessionSwitchertakesvariant="list": an always visible chat list (navwith new chat, "Recent chats", rows newest first witharia-current, rename, delete through the themed confirm dialog, arrow keys / Home / End between the rows; locked while a reply streams).onSelectruns after a pick or a new chat, in both variants. Locale keyschatHistoryLabel,recentChatsLabel(German ships). The dropdown markup is unchanged.- Assistant:
AssistantShell/AssistantWorkspacetakeminPageWidth: the docked assistant never grows so wide that the page row keeps less than that (never belowminWidth; belownarrowWidthit still fills the row). The user's chosen width is kept and comes back on wider windows. Default 0. - Chat: a recorded
TurnOutcomecarriesdurationMs, 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;onTurnEndanduseTurnOutcomereceive it. Outcomes stored by older versions have none. - Chat:
messageFooter(trueorMessageFooterConfigcopy/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-urlparts, toolsources/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.footerfor ownMessageParts/useMessagePartslayouts; locale keyscopyMessageLabel,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 withsuggestions.enabled: false; disabled while the composer is locked. TheSuggestionBarandstaticChipsshow nowhere then. Locale keyfollowUpsLabel(German ships). Default'composer', unchanged. - Chat:
activityLog.hiddenToolslists 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):
AssistantLayoutModegains'fullscreen',AssistantShellActiongains'mode'and'history', andAssistantLayoutgains the requiredrestoreMode. An exhaustiveswitch, aRecord<AssistantLayoutMode, …>/Record<AssistantShellAction, …>or a hand-builtAssistantLayout(auseAssistantLayoutmock) needs the new cases and member. Withoutmodesnothing changes at runtime. createLocalSessionStorekeeps 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 byclearLocalSessionStore.drafts: falseturns it off. Own stores can addSessionConfig.draft(ComposerDraftStorage); writes are debounced (300 ms) and flushed on switch,pagehideand 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 theAiChatProviderinstance.
Fixed
- Next.js handler:
createAiChatHandlerwarns once at creation whenfollowupsis set withoutpipeline; thesuggest_followupstool exists only in pipeline mode, so the setting did nothing silently before. Tool registration is unchanged. - Chat: the
SuggestionBarhonourssuggestions.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 ofmaxWidth. - 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:
onCompletionSelectreturningtruealso removes the typed trigger and query when the handler put text or a pill before them (setText,insertMentionat the start); after a rebuild only a single whole-word occurrence is removed (inserted text such as#bug-7is never cut), several remove nothing.