b4c0e00a4fcc0287d0bb32fd7cb0d8b286af73ed
239
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5193ef1d4f | ui: configure allow-remote=root in .npmrc for npm 12+ (#32158) (#32196) | ||
|
|
b19f1d9e63 |
ui: add search_chats tool (#32051)
* ui: add search_chats tool * add from_timestamp / to_timestamp * ui: search_chats review fixes - keep search_chats disabled on import, copy tool policy on fork - stream messages without attachment payloads, one transaction for time ranges - keep the output within budget, cut whole messages from the older end - reject impossible date-times, quote titles and attachment names - typed readOnly tables, move localIsoString to formatters as formatLocalIso Assisted-by: Claude (Opus 5.5 Medium) --------- Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com> |
||
|
|
d90cfd4a9b |
ui: install llama-brand from a GitHub tarball instead of git (#32112)
npm 11.20 refuses git dependencies by default (EALLOWGIT), so npm ci failed on fresh installs. Pin llama-brand to the same commit through an HTTPS tarball, which also adds an integrity hash to the lockfile. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
7bcbc04fbf |
ui: move js sandbox setting out of "developer" (#32054)
* ui: move js sandbox setting out of "developer" * make js sandbox enabled by default |
||
|
|
1d81992784 |
ui: keep downloads in Discover during search and fix their progress with a draft (#31467)
* ui : keep downloads in Discover sidebar during search, sort base-org repos first
- Show the sticky Downloading section regardless of an active search query
- Order search results so repos published by their base model's org lead
Assisted-by: Claude (Opus 5.5 Medium)
* server : throttle download progress per file
Files of a download run in parallel threads, but progress updates were
throttled with one shared timer. A small draft sidecar reports far more
often than the main weights, so it took nearly every slot and the main
file's updates, including the first one carrying its total size, were
dropped until the draft finished. The UI then showed the draft's progress
first and restarted from 0% for the model.
Throttle each file on its own and always pass a file's first update.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: list a downloading repo once and match base orgs case-insensitively
A search hit that is downloading already shows under Downloading, so the
results leave it out. Base model orgs compare without case, as the hub
treats them.
Assisted-by: Claude (Opus 5.5 Medium)
* server : tell clients a download stopped on request
When a client paused or cancelled a download, every other client following
/models/sse got a bare download_failed and could not tell it from an error,
so the web UI showed "Download failed" for a pause made in the Llama app.
A stop asked for through unload or delete now fails with {"stopped": true}.
Deleting a paused download, which has no instance left, now sends
model_remove as deleting a running one does, so other clients drop its row.
Assisted-by: Claude (Opus 5.5 Medium)
* ui : follow downloads other clients start, pause or cancel
A download another client started (e.g. the Llama app) already showed up
from the feed; it now also picks up the sidecars the list reports for it.
A stop another client asked for reads as a pause instead of a failure, and
a removal clears the download row even when the list does not carry it yet.
Assisted-by: Claude (Opus 5.5 Medium)
|
||
|
|
bd717e08f3 |
ui: take the logo and favicons from the llama-brand package (#32039)
* ui : take the logo and favicons from llama-brand The web UI's logo mark and favicons now come from llama-brand, added as a dev dependency from GitHub and pinned to a commit, so the UI draws the same icon as the README cover instead of its own copy of an older one. Logo.svelte inlines the brand's icon and fills it with currentColor, and the PWA asset generator starts from the brand's web favicons, which carry their own margin and optical centring, so the UI's colouring and padding script, its test and its logo.svg go. Assisted-by: Claude (Opus 5.5 Medium) * ui : follow llama-brand's master instead of a pinned commit Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
adde94c11b |
ui: open the virtual keyboard in the chat editor on Android (#32060)
CodeMirror takes text input through EditContext on Chrome for Android only, and there the chat editor never brings up the virtual keyboard. The editor now always takes its input through contenteditable, as on desktop and iOS. A press in the input box outside the text also focuses the editor, in the collapsed form too, so the whole box is a tap target again as the textarea was. |
||
|
|
b5cb8f6f47 |
ui: keep a hidden sidebar from intercepting clicks again (#32035)
The hidden desktop strip relied on inherited `visibility: hidden` to keep its content from catching clicks. Since the sidebar's sections fold (#31936), an open section's CollapsibleRegion sets `visibility: visible` again, and its rows' context-menu triggers carry an inline `pointer-events: auto`, so they caught clicks meant for the page. Make the hidden strip's content inert, which no descendant can undo, and add a client test that hit-tests the hidden sidebar's area. Fixes #31971 Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
2b66bfbf71 |
ui: show audio in Discover for models whose mmproj has an audio encoder (#31837)
* ui: show audio in Discover for models whose mmproj has an audio encoder Discover took audio only from the pipeline tag, so omni models tagged any-to-any, such as Gemma 4 and LFM 3 Omni, showed vision but never audio, though their mmproj carries an audio encoder. Read the encoders from the mmproj's GGUF metadata instead: a ranged read of its first 64 KB, once per repo, for clip.has_vision_encoder and clip.has_audio_encoder. The Discover list and details now show audio when either the pipeline tag or the mmproj says so. Assisted by: Claude (Opus 5.5 Medium) * ui: take Discover modalities from the mmproj's encoders in one place Review fixes for the mmproj header read: - drop vision for audio-only mmprojs: the converter writes clip.has_vision_encoder only when true, so a header read in full without it has no vision encoder; a header cut short leaves vision as it was - accept only a 206 to the ranged read, so a server that ignores Range never streams the whole mmproj - encode the mmproj path in the resolve URL - derive the list and details modalities with one HuggingFaceService helper, so both views agree - point the key comment at tools/mtmd/mtmd-impl.h, where the keys live now Assisted-by: Claude (Opus 5.5 Medium) * ui: keep a gated repo's mmproj from being read again on every mount A gated, private or missing mmproj answers 401, 403 or 404 to every read, so caching nothing made each mount of its Discover row request it again and log an error. Cache it as unknown instead: no audio, and vision from the mmproj being there, as before the header was read. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
7592b61d3b |
ui: move Models, MCP and Settings to a sidebar footer (#32022)
* ui : move Models, MCP and Settings to a sidebar footer The sidebar's actions split in two: New chat, Search and Projects stay at its top, and Models, MCP and Settings move to a footer at its bottom, under a thin rule, in the expanded sidebar and its collapsed strip alike. On a phone the footer keeps clear of the home indicator, and Models stays desktop-only as before. The search dialog still lists every action. Assisted-by: Claude (Opus 5.5 Medium) * ui : group the sidebar footer in an inset surface The design system gains inset-group-surface, for rows grouped inside a glass panel: white on the light glass and a faint tint of the text colour on the dark one, with the sidebar's own ambient edge, no inner highlight, a faint wide shade under it and the card radius. It is matte-glass pointed at its own component tokens, like the sidebar and chat form surfaces, and reads as part of the panel: no tight contact shadow or solid border like a button, no inset shade like a field. The sidebar footer uses it in place of the rule above Models, MCP and Settings. DESIGN.md and the Surfaces page document it. Assisted-by: Claude (Opus 5.5 Medium) * ui : give the sidebar's logo button the add button's key look Whenever the sidebar shows, open or peeking, its logo button takes the same key as the chat form's add button (matte-key, white in light mode, a light tint in dark), in place of its own muted fill. While the sidebar is hidden the logo has no fill and no shadow, and hover and focus never change the fill. It keeps its round shape and its own size. Assisted-by: Claude (Opus 5.5 Medium) * ui : put search in a round key at the top of the phone sidebar On a phone the sidebar's Search row moves to a round key at the right end of its top row, across from the logo, with the same key look as the logo and the chat form's add button. It opens search as the row did. Desktop keeps the Search row. Assisted-by: Claude (Opus 5.5 Medium) * ui : size the phone sidebar for a thumb and list its footer with the actions On a phone the sidebar's actions and rows are 48px tall at 17px, flush one under the other with 16px corners, its section headings 15px and grey, and its groups 28px apart. MCP and Settings join the top actions there: the footer is a desktop pattern. Assisted-by: Claude (Opus 5.5 Medium) * ui : mark the selected sidebar row with a tinted inset surface Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the phone sidebar's round keys white on the grey page Assisted-by: Claude (Opus 5.5 Medium) * ui : open Settings and MCP as pages on a phone, dialogs elsewhere On a phone the sidebar opens them at #/settings and #/mcp-servers, with the menu key and a title like any phone page. Pinned under the status bar, Settings' section tabs fill the screen above them in the page's colour. Assisted-by: Claude (Opus 5.5 Medium) * ui : open a phone sidebar's pages behind it, settled before they slide back A tap in the phone sidebar now opens its page while the current one is still aside and slides back once it has rendered, instead of swapping pages mid-slide. The slid page's fixed bars are pinned again as the page under them changes, the lock ends with the slide itself, and a phone's new chat shows its form and greeting at once, without the move and entry they have on a desktop. Assisted-by: Claude (Opus 5.5 Medium) * ui: style the sidebar footer group and the selected row with master's classes until the design system lands Assisted-by: Claude (Opus 5.5 Medium) * ui: add GlassKey with master's styles for the phone sidebar's round keys Assisted-by: Claude (Opus 5.5 Medium) * ui: center the top edge of a new chat's form on the screen The form rested 42px below the middle up to 2xl and 6px above it past that; one drop, from the resting card's height, now puts its top edge on the middle at every width from md up. Assisted-by: Claude (Opus 5.5 Medium) * ui: round the sidebar's action rows concentric with the footer group The sidebar stacks four surfaces: the page, the sidebar, the footer group inset in it and a row in the group. app.css now names the group's radius and padding, and derives the row radius from them (16px less 4px), so the footer's rows run parallel to its corners; the actions at the top of the sidebar share that radius. The footer moves to its own component, the README documents the pattern, and a client test holds the rule on the rendered footer. A selected action row was bg-accent, the same grey as a hovered row in light and darker than the footer's fill in dark, so it read as hovered or not at all; it is now raised and edged, while a hover only tints. Assisted-by: Claude (Opus 5.5 Medium) * ui: import demo chats through the Settings page on a phone A phone opens Settings as a page now, not a dialog, so the demo harness waited for a dialog that never came and every phone demo with traces failed; it now imports through whichever of the two opens. Assisted-by: Claude (Opus 5.5 Medium) * ui: count the sidebar's rows from their items in the surface test The test expected three footer rows and two top actions, which the stacked PRs change as they add Projects, Library and Servers; it now expects as many rows as the sidebar has items. Assisted-by: Claude (Opus 5.5 Medium) * ui: add a line on Meta+Enter off macOS too The chat form takes Meta+Enter as Ctrl+Enter and leaves the newline to the editor, but the editor bound only Mod-Enter, which is Ctrl off macOS, so on Linux Meta+Enter neither sent nor added a line. This failed the client test on CI's Linux runners, on master too. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
281e7dad7c |
ui: gather chats into named groups in the sidebar (#32012)
* ui: let a menu action open a submenu Group and project pickers open as flyouts from a chat's menus. Master's menu list has no submenus, so bring them back next to its tooltips, with a close callback for picks made inside them. Assisted-by: Claude (Opus 5.5 Medium) * ui : store groups and let conversations join them Groups live in their own IndexedDB table (schema version 2) with a name. groupsStore creates, renames and deletes them; deleting a group keeps its chats, out of any group. A conversation records the group it is sorted into, and a group picked before the first message is kept pending and applied when the conversation is created. Assisted-by: Claude (Opus 5.5 Medium) * ui : show each group as a sidebar section Every group is a sidebar section next to Pinned and Recent, folding, showing its first six chats and dragged into place like them. A chat dropped on a group joins it and leaves Pinned; dropped on Recent, it leaves its group. Recent is called Ungrouped once a group exists, and its menus create a group in a small naming dialog; so does a right-click anywhere in the list that no row or heading takes, down to the empty space under the last section. A group's heading starts a new chat in it, and its menus rename or delete it; deleting keeps its chats, back in Ungrouped. Assisted-by: Claude (Opus 5.5 Medium) * ui : move chats into groups from their menus A chat's menus, in the sidebar and on right-click, move it into a group or take it out of its group. Desktop menus show a searchable group flyout whose New group entry names a group in the group dialog and moves the chat into it; a phone gets a picker dialog instead, which creates a group from what is typed. Assisted-by: Claude (Opus 5.5 Medium) * ui: open the group picker from a phone's hold menu The hold menu is anchored to the row, so it showed the desktop flyout, which ran off the left edge of the screen and whose New group closed without naming one. On a phone, Move to group now opens the picker dialog, as intended. Assisted-by: Claude (Opus 5.5 Medium) * ui: open a new chat in a tab of its own With conversation tabs on, New chat from the sidebar, a group's heading or the shortcut replaced the open chat's tab. It now adds a tab, as the tab bar's "+" does, and the open chat keeps its own. Assisted-by: Claude (Opus 5.5 Medium) * ui: list a phone's groups under the picker's search On a phone the picker fills the screen, and its grid spread the rows over the height, so the list sat in the middle. It is now a column: the list starts under the search and scrolls in the rest of the screen. Assisted-by: Claude (Opus 5.5 Medium) * ui: fix gaps in chat groups found in review - A phone shows a group heading's New chat and menu, and the Ungrouped heading's menu, which were reachable only by hover or right-click. - A pinned chat moved into a group from its menu leaves Pinned, as a drag onto the group already did, so the move shows. - Only the sidebar's New chat, a group's New chat and the new-chat shortcut open a new tab; stepping past the last chat, search and the models drawer show the new-chat screen in the current tab again. - An export carries each chat's group, and an import sorts the chat into the group of that id or name, or creates it; a group the file does not carry is dropped. - The group picked with a group's New chat survives leaving the new-chat tab and coming back. - A phone's menus skip any submenu in the shared menu list, not only the group one. - Deleting a group forgets its section's place and fold. - Groups load newest first by creation, so a rename no longer moves one after a reload. - groupsStore looks groups up in a map and answers which live group a chat is in, for the three places that checked it by hand. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep a forked chat in its source chat's group A fork copied the working directory but not the group, so it landed in Ungrouped. Assisted-by: Claude (Opus 5.5 Medium) * ui: move a chat with its whole fork family between groups Moving a chat into a group, or out of one, takes its parents and its children along, so a fork tree never splits across sidebar sections. A pinned member that joins a group leaves Pinned with the rest. Group sections render the tree with its depth, as Ungrouped does. * ui: show the group name prompt as a small centered card on phones The new and rename group prompt opened full screen on a phone, like a large dialog. It is now built on the alert dialog, as the chat rename prompt is, so a phone shows it as a card in the middle of the screen. Its Cancel is a plain button, so Enter in the name field saves. Assisted-by: Claude (Opus 5.5 Medium) * ui: space a phone's group sections like Ungrouped On a phone a group or Pinned section put its first chat right under the heading, where Ungrouped leaves a row gap. They now leave the same gap, and the sections sit a little further apart than the rows inside them. Assisted-by: Claude (Opus 5.5 Medium) --------- Co-authored-by: Pascal <admin@serveurperso.com> |
||
|
|
90e3841d9f | ui: show settings save button even while focused (#32010) | ||
|
|
54cde7106a |
ui: expand the chat form into a large editor for longer messages (#31973)
* ui: expand the chat form into a large editor for longer messages The chat form expands into a large editor once a message has markdown beyond plain paragraphs or reaches four lines, and a Maximize button in its top-right corner toggles it by hand. The expanded form starts around half the screen height and grows with the text up to the space below the tabs bar, animating its height by mirroring the editor's content height. On a new chat the expanded form keeps the collapsed form's top edge and the greeting only fades out, waiting for a collapse to settle before it fades back in. In a conversation the messages follow the form as it grows, so the latest one stays in view above it. Assisted-by: Claude (Opus 5.5 Medium) * ui: make the expanded chat form a full-screen sheet on phones In the expanded editor Enter adds a line and Cmd/Ctrl+Enter sends. On a phone the expanded form is a full-screen sheet with no corners or border. The page around it and Safari's bars take its colour, and the sidebar's logo button and the working-directory chip step aside while it is open. It moves by relative offsets and a clip on the main thread, so its edges, text, actions and chip stay in step in every engine, and its content keeps the collapsed card's places and widths, so nothing reflows when it settles. Expanding does not focus the editor on a phone. On a new chat on desktop the form is lifted by its sticky bottom offset instead of a translate, and the expanded size is built on the collapsed card's real height, so its top edge holds still through any sequence of quick toggles. Assisted-by: Claude (Opus 5.5 Medium) * ui: hide the phone menu toggle and the sheet's focus edge while expanded On a phone the menu toggle rides on the page, above the chat form: it now fades out while the expanded form covers the screen, and comes back when it collapses. The expanded sheet also drops the glass rim and inner ring, so focusing the editor no longer outlines the whole screen. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the expanded phone sheet clear of the status bar The expanded chat form fills the screen on a phone, under the status bar an installed app draws over the page. Its text now starts below the bar (pt-safe) and its collapse button sits below it too (top-safe-2.5). Assisted-by: Claude (Opus 5.5 Medium) * ui: hide the phone's context gauge while the chat form is expanded The gauge pinned to the phone's top right sat over the expanded sheet's collapse key. Like the menu toggle across from it, it now fades out while the expanded form covers the screen and comes back when it collapses. Assisted-by: Claude (Opus 5.5 Medium) * ui: lift the expanded phone sheet's actions above the iOS keyboard Assisted-by: Claude (Opus 5.5 Medium) * ui: move the chat form with a short, quick drift, without sliding after it lands Its position transition came back on before the browser had laid out the new position, so it slid the form there after the fade; the drift is now 10px each way and quicker. Assisted-by: Claude (Opus 5.5 Medium) * ui: style the expanded chat form with master's surfaces until the design system lands Assisted-by: Claude (Opus 5.5 Medium) * ui: tighten the expanding chat form after review - Expand on markdown only in finished lines: a lone `-`, `#` or `1.` on the line being typed no longer opens the large editor. - Show "Cmd/Ctrl+Enter to send" by the send button while expanded. - Move the expansion state, the phone sheet and the held collapsed height into useChatFormExpansion, and the sheet's geometry into pure functions. - Drop the working-directory chip's phone animation, which never ran since the phone chip moved to the + menu. - Clearing or sending mid-move cancels the sheet's animation. - A click only continues at the end of the text when it lands below it. - Reuse ActionIcon for the toggle and INPUT_CLASSES for the card, derive the centered form's offset from its drop, name the shared easing and fade. - The greeting owns its fade behind the expanded form. - MarkdownEditor's view is reactive, so following its content starts once it exists. Assisted-by: Claude (Fable 5.2) * ui: keep the expanded chat form to the message being written - The form expands on its own only for what is written or pasted, and another conversation starts collapsed: a restored draft no longer opens the large editor, or the phone sheet, on arriving at a chat. - In the expanded editor the pickers open by the line being written, above it or, short of room, below, instead of above the form's top edge. - The sidebar's swipe is off while the phone sheet covers the screen. - The send hint shows only beside the send button, where the row has room. - The inner area keeps master's focus shadow, except on the phone sheet. - The card and the form's position honour reduced motion. - The phone greeting's place accounts for the wrapper it is counted from. - The sheet's animation tolerates the form going away mid-move. Assisted-by: Claude (Fable 5.2) * ui: turn the typed pickers off on phones, and scroll long messages - On a phone, typing `/` or `@` opens no picker for now: each mobile browser moves the page its own way as the keyboard opens, so a list by the form can not stay clear of the text being written. A note marks it for later. - The editor scrolls inside the form again: MarkdownEditor's own box sat between the input and the editor without taking its height, so a message longer than the form ran under the actions instead of scrolling. Assisted-by: Claude (Fable 5.2) * ui: settle the expanding chat form's review findings - A phone expands the form only by hand: the sheet switching in mid-typing moves the text under the keyboard. - The typed pickers are off wherever a finger is the main pointer, not below a viewport width, so a narrow desktop window keeps them and an iPad loses them. The prompt picker opened from the + menu floats by the sheet's actions on a phone. - A message put back after a failed send expands the form again. - Only the left button moves the caret from a click below the text. - The sheet's fill is one token, used by the sheet, the page and Safari's bars. - The collapsed-height hold is its own module and no longer finds the editor's elements by class name. - Shorter comments. Assisted-by: Claude (Sonnet 5.5) * ui: keep a one-line message on the chat form's actions row On a desktop the main chat form is a single pill while its message is one line: the add button, the text, then the model selector and send. A second line, or a line that wraps beside the actions, brings back the two rows, and they stay until the text is shorter than where it wrapped, so the wider row can not flip it straight back. The editor stays mounted: the actions join the text's row by CSS alone. The single row's corners are `--chat-form-single-row-radius` in app.css, a pill by default; the "Scrapbook / ChatForm single row" story shows the real form with other radii. Assisted-by: Claude (Opus 5.5) * ui: give the one-line chat form 1.25rem corners Assisted-by: Claude (Opus 5.5) * ui: pick the working directory from the + menu on desktop too The chip under the chat form is gone: the + menu offers the working directory everywhere but a phone's chat, whose header shows it. The menu item names the directory once one is set, and the picker gains a row to clear it, which the chip's X used to do. Assisted-by: Claude (Opus 5.5) * ui: put the single-row chat form behind a Display setting "Single-row chat form for short messages", on by default. Assisted-by: Claude (Opus 5.5) * ui: send the chat form on Enter, and add a line with Shift or Ctrl/Cmd Enter sends wherever the caret is, the expanded editor and code blocks included; Shift+Enter and Ctrl/Cmd+Enter add a line, continuing lists and quotes. With "Send message on Enter" off the two swap as before. The expanded editor's send hint and the code-block rule are gone with it. Assisted-by: Claude (Opus 5.5) * ui: start the chat form on the row layout it will settle on Assisted-by: Claude (Opus 5.5) * ui: show a set working directory under the chat form again On desktop the chip under the form is back once a directory is set, and the + menu offers the directory only until then. Assisted-by: Claude (Opus 5.5) * ui: add a line on Enter with an on-screen keyboard A phone's Return has no Shift, so on a touch screen Enter adds a line and the send button sends, as "Send message on Enter" turned off does; on a desktop Enter still sends. Assisted-by: Claude (Opus 5.5) |
||
|
|
ac007054e7 |
ui: use a live-preview markdown editor for the chat form input (#31955)
* ui: use a live-preview markdown editor for the chat form input Replace the contenteditable rich input with a CodeMirror editor that shows the markdown source of the block being edited and renders every other block through the MarkdownContent pipeline and stylesheet, so they match chat messages. Plain text types exactly as before, the value stays the exact markdown source, and mention links show as atomic badges. The editor lives in a shared MarkdownEditor component, and the highlight.js theme loader is shared between MarkdownContent and SyntaxHighlightedCode. The old rich input, its tokenizer, source history and their tests go away. Assisted-by: Claude (Opus 5.5 Medium) * ui: give the production build more memory, note what mdsvex is for The single-bundle build now includes CodeMirror and runs past Node's default heap limit on CI runners. Raise it in the build script, so local and CI builds behave the same on every platform. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the live preview's blocks while only the cursor moves Moving the cursor re-walked the syntax tree and rebuilt every block's decoration. Keep the blocks with the decorations and rebuild only when the text changes or the cursor enters another block. Assisted-by: Claude (Opus 5.5 Medium) * ui: point the chat form story at the editor and drop the engraved placeholder until the design system lands Assisted-by: Claude (Opus 5.5 Medium) * ui: name the markdown editor for screen readers CodeMirror's content is a textbox with no name of its own, so the chat form input was announced as an unnamed text box, and could not be found by its name as the old input could. It takes an aria-label, its placeholder by default, which makes the chat form's "Type a message..." again. Assisted-by: Claude (Opus 5.5 Medium) * ui: format the chat form input's classes Assisted-by: Claude (Opus 5.5 Medium) * ui: share the markdown styles and diagram drawing between messages and the editor The editor and MarkdownContent each @imported markdown-content.css into their own <style>, so the bundle carried two scoped copies of it. Both now render into a MarkdownSurface, the one element that carries the stylesheet; the few rules for MarkdownContent's own template elements are global under .markdown-content. Drawing mermaid and svg blocks and the actions of their header buttons move to markdown-diagrams.ts, so the editor's rendered blocks can draw diagrams the same way messages do. Assisted-by: Claude (Opus 5.5 Medium) * ui: harden the live preview editor after review - onChange skips only the editor's own syncs from `value`, marked by an annotation, instead of reporting only edits that carry a user event - Enter and the mention badges ask the syntax tree whether they are in code, so ~~~ fences and indented code count, and a closing fence ends a block - a picked mention is one undoable edit, through replaceText - rendered blocks draw mermaid and svg diagrams with their header buttons, a $$ math block with blank lines renders as one block, and a link reference definition stays raw instead of rendering to nothing - rendered blocks render again when the mention path settings change - a drag in a rendered block selects its text and copy takes it, across blocks; a click still opens the block - the block margins are the ones a chat message renders (each heading is a first child there), checked by a test; the blank lines after a raw block are its gap - the tree comes from syntaxTree, without forcing a full parse on every edit - placeholder, label, extensions, mention widgets and render key follow prop changes after mount, through compartments - the editor uses the markdown language alone, which drops the html, css and javascript parsers markdown() pulls in for html tag completion (-70 KB gzip) Assisted-by: Claude (Opus 5.5 Medium) * ui: pin the CodeMirror packages and set the build heap in .npmrc The new dependencies are pinned like the rest of package.json. The build heap moves from a node call on vite's bin path to npm's node-options, so the build script is plain `vite build` again and the setting reaches it on every platform. Assisted-by: Claude (Opus 5.5 Medium) * ui: update the live preview block by block and estimate block heights An edit used to build every block's decorations and widgets again, which the editor then compared one by one. The previous decorations, and the mention badges of raw blocks, now move through the edit, and only the blocks whose range, text, raw or rendered state, or gap changed get new ones; the texts of the blocks an edit left alone are reused instead of sliced again. A test drives random edits, cursor moves and focus changes and checks each result against a full build. Rendered blocks report the height they were last measured at, or a guess from their text, so CodeMirror's height map for blocks off screen in a long document stays close and scrolling stays steady. Assisted-by: Claude (Opus 5.5 Medium) * ui: skip the editor's redundant syncs, reconfigures and theme reloads - syncing `value` compares it with the text the editor last reported or synced, so a keystroke coming back through onChange no longer serializes the document again - the prop effects reconfigure the editor only when a prop changed, not once more right after it is created (which rebuilt the whole preview) - loadHighlightTheme leaves the theme's style element alone while the mode stays, so a message or an editor mounting no longer restyles the whole page Tests check that typing in one block leaves the other rendered blocks without a single DOM mutation, and that mounting reconfigures nothing. Assisted-by: Claude (Opus 5.5 Medium) * ui: simplify the live preview to a plain rebuild in three small modules Rebuilding the decorations of every block on an edit measures the same as patching only the changed ones (0.09 ms against 0.11 ms per keystroke at 200 blocks, 0.9 ms against 1.1 ms at 2000), and equal widgets keep their DOM either way, so the incremental update and its test go. - markdown-blocks.ts collects the document's blocks, markdown-block-widget.ts renders one, markdown-live-preview.ts decides which ones show raw text - one bounded cache holds a block's HTML and its measured height - the render key is a plain option: a new one reconfigures the preview, which keeps the editor's focus - MarkdownEditor follows its props with one helper instead of five effects Assisted-by: Claude (Opus 5.5 Medium) * ui: keep setext headings raw in the live preview editor `test` over `---` is a setext heading, so the preview rendered it as an h2 and the underline vanished once the cursor left the block. The editor now shows a setext heading's text as typed at all times, like a link reference definition. Assisted-by: Claude (Opus 5.5 Medium) * ui: add a setting to turn the live markdown preview off "Live markdown preview in the message input" (General) is on by default. Off, the input shows the plain markdown text, with file mention badges still in place; switching it takes effect without a reload. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
0a94a3f289 |
ui : retry opening the sidebar when a demo imports its traces (#31952)
A cold dev server reloads the page once it has optimized its dependencies, and that reload can land right after the harness opened the phone sidebar, closing it again before Settings is clicked. Repeat the pass over the menu keys up to three times while Settings is not reachable. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
610f7ab40a |
ui: make the app feel native on phones (#31949)
* ui: reveal the mobile sidebar by sliding the page aside On a phone the sidebar now stays put under the page, and the page slides right to uncover it, as a rounded card with the card border. The menu button rides on the page; a swipe from the left edge opens the sidebar, and a swipe back or a tap on the page closes it. Assisted-by: Claude (Opus 5.5 Medium) * ui: polish the mobile sidebar reveal and add a hold menu to rows Holding a conversation row on a phone opens its action menu anchored to the row, in place of the hidden three-dot trigger. The page no longer widens the document when it slides aside, so iOS stops panning it on the first open. The page and sidebar backgrounds start in the page color and blend into the sidebar tint as the sidebar opens, following a drag frame by frame, and a theme-color tag follows them for the browser bars. The sidebar's contents fade in on a log curve and scale up slightly, and sit at the same inset as the menu toggle, which now uses a two-line icon in a filled circle. Assisted-by: Claude (Opus 5.5 Medium) * ui: pin the context gauge on phones and lock the slid-aside page On a phone the context gauge leaves the chat form for the top right of the chat screen, in a round button across from the menu toggle. Both take the scroll-down button's frosted look. While the sidebar is out, and until the page is fully back in place, the page neither scrolls nor takes taps; a tap or drag on it still closes the sidebar. Assisted-by: Claude (Opus 5.5 Medium) * ui: open the mobile sidebar with a swipe from anywhere A rightward swipe from anywhere on the page now opens the phone sidebar too, beside the edge swipe that competes with the browser's own back and forward gesture. It starts after a short sideways move, skips text fields and content that scrolls sideways, and keeps the page from scrolling under it. Letting go opens or closes the sidebar past 30% of the way or on a flick. The top buttons and the chat form now hold their place on screen while the page is slid aside, instead of jumping to the far ends of a scrolled conversation. Assisted-by: Claude (Opus 5.5 Medium) * ui: hide the model org name on mobile unless a setting keeps it A phone's model selector is narrow, so it now drops the organization from model names by default. A new Display setting, "Show organization name on mobile", brings it back; it applies only while the organization name is shown at all. Assisted-by: Claude (Opus 5.5 Medium) * ui: close the mobile sidebar before following a tap in it On a phone, picking a conversation, New chat, Search, MCP or Settings in the open sidebar now slides it shut first and acts 180ms later, so the page or dialog appears once the sidebar is out of the way. With the sidebar already closed, or on a desktop, the action runs at once. Assisted-by: Claude (Opus 5.5 Medium) * ui: make the app feel native on phones and run it under the status bar Applies the mobile-native checklist: no tap highlight or landscape text inflation, instant taps on buttons and links, no label selection or callout on a held control, hover styles only where a pointer can hover, and 16px textareas on phones so focusing them does not zoom the page. The page now runs under the notch (viewport-fit=cover), so the installed iOS app tints its status bar from the page and the sidebar. The menu toggle, the context gauge, the sidebar and the top of the chat and models pages pad themselves clear of it, and the locked, slid page reaches down by the status bar's height, which iOS leaves out of it. Assisted-by: Claude (Opus 5.5 Medium) * ui: add a viewport height readout for debugging on phones With VITE_DEBUG set, a dev build shows the window, viewport unit and safe-area heights, and the elements that reach past the window's bottom and make the page scroll. It is loaded on demand, so production builds leave it out. Assisted-by: Claude (Opus 5.5 Medium) * ui: fill the screen from launch in the installed iOS app iOS 26 gives an installed app with viewport-fit=cover and a translucent status bar a viewport short of that bar (WebKit bug 301108), clipping the bottom of the page and lifting the chat form, but only while the page is shorter than the screen. In the installed app the page now reaches the screen plus the status bar, capped at the screen, so it gets the full screen from the start without ever scrolling. Assisted-by: Claude (Opus 5.5 Medium) * ui: raise the phone's corner controls in the installed app The installed app's status bar already sets the menu toggle, the context gauge and the open sidebar's logo apart from the screen's edge, so they sit just below it rather than a full 1rem lower. They share one value, which stays at 1rem below the inset in a browser tab. Assisted-by: Claude (Opus 5.5 Medium) * ui: add safe-area utilities for what is pinned to a screen edge The page runs under the status bar and over the home indicator, which an installed iPhone app always shows. New pt-safe, pb-safe, top-safe and bottom-safe utilities, each with a spacing step (pt-safe-12 is 3rem plus the top inset), keep pinned content clear of them instead of hand-written calc()s. A --safe-area-bottom joins --safe-area-top, and the chat screen and Models page use pt-safe-12. Assisted-by: Claude (Opus 5.5 Medium) * ui: open search in a full-height drawer on phones A phone used to leave for the /search page. It now opens the same search as the desktop dialog, in a bottom drawer that fills the screen below the status bar. Keyboard shortcuts, the Enter hint and the keyboard highlight stay on desktop, and so does the models manager, as in the phone sidebar. Assisted-by: Claude (Opus 5.5 Medium) * ui: show every dialog full screen on phones, clear of the status bar A phone now shows every dialog full screen, whatever size it asks for on a desktop, instead of each full-screen dialog repeating its own classes. Its top and bottom borders take the status bar's and the home indicator's height, transparent, so an installed app's dialogs keep their content clear of both with no change to their padding. The attachment preview, which has its own full-screen content, pads itself and lowers its close button the same way. Assisted-by: Claude (Opus 5.5 Medium) * ui: fade the page out under the status bar of the installed app on phones Assisted-by: Claude (Opus 5.5 Medium) * ui: show search in the full-screen dialog on phones instead of a drawer Assisted-by: Claude (Opus 5.5 Medium) * ui: start a phone page's title a row below the corner controls Assisted-by: Claude (Opus 5.5 Medium) * ui: pin the slid page's bottom bars against the screen in the installed iOS app Assisted-by: Claude (Opus 5.5 Medium) * ui: cast a soft shadow from the slid page onto the phone sidebar Assisted-by: Claude (Opus 5.5 Medium) * ui: hide the scroll-down key at the real bottom on iOS and show it only well above Assisted-by: Claude (Opus 5.5 Medium) * ui: fade the status-bar fade out as the page slides aside for the sidebar Assisted-by: Claude (Opus 5.5 Medium) * ui: draw the slid page's shadow above its rounded frame, so it follows the corners Assisted-by: Claude (Opus 5.5 Medium) * ui: show a phone chat's title and working directory at the top, and pick it in a drawer Assisted-by: Claude (Opus 5.5 Medium) * ui: give iOS Safari a solid top and fade the bottom of the screen on phones Assisted-by: Claude (Opus 5.5 Medium) * ui: let iOS Safari find the top strip, which it skips when it takes no taps Assisted-by: Claude (Opus 5.5 Medium) * ui: lengthen the top fade and lift the chat form a little in phone browsers Assisted-by: Claude (Opus 5.5 Medium) * ui: give iOS Safari's bottom toolbar the page's colour, not the chat form's Assisted-by: Claude (Opus 5.5 Medium) * ui: draw the phone's context gauge key like the menu key across from it Assisted-by: Claude (Opus 5.5 Medium) * ui: confirm opening the phone sidebar, its hold menu and its rows with a haptic tap Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the screen-edge fades on the page as it slides aside for the sidebar Fading them out with the slide made the page flicker; the rounded frame over the slid page already clips them at its corners. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the working directory chip optional for hosts with their own trigger The phone layout opens the picker from the chat's header, so ChatForm hides the chip there. Master's version of the chip has no such switch; bring it back. Assisted-by: Claude (Opus 5.5 Medium) * ui: style layer 5's additions with master's tokens until the design system lands Assisted-by: Claude (Opus 5.5 Medium) * ui: drop the design system's stylesheets and fonts from app.css until it lands Assisted-by: Claude (Opus 5.5 Medium) * ui: keep master's font stacks until the design system brings its fonts Assisted-by: Claude (Opus 5.5 Medium) * ui: restore master's colour palette in app.css until the design system lands Resolving the safe-area commit took the design system's app.css, which drops the palette for its token files and aliases the shadcn names to semantic tokens. With the tokens gone those aliases point at themselves, so every colour went invalid: transparent surfaces and currentColor borders. Assisted-by: Claude (Opus 5.5 Medium) * ui: center alert dialogs on phones instead of sliding them up as drawers An alert is a short question, not a drawer: on a phone it is now a centered card, 90% of the screen wide and as tall as its text, scrolling only past the screen's height. It zooms in as on desktop, and its footer drops the margin the sheet needed. Assisted-by: Claude (Opus 5.5 Medium) * ui: space the working directory drawer for a phone The drawer reused the popover's compact picker: Browse sat against the search field, the divider ran past the rows and each row had its own inset. In the drawer the picker now takes the header's inset, gives Browse room, lines its rows up with the search results and sizes its text for a phone. Assisted-by: Claude (Opus 5.5 Medium) * ui: tap the haptic engine when a message sends, and once per hold A phone now confirms a sent message by feel, at the moment the send goes through (not on every press of the button), and before any await, so it still runs inside the tap or keypress that iOS needs to play its tick. The hold that opens a row's menu now taps the engine from the long-press hook itself, once: the hook vibrated and the row tapped as well, which buzzed twice on Android. Assisted-by: Claude (Opus 5.5 Medium) * ui: name the gauge dial sizes, the chat form's bottom offset and the sidebar fade Review follow-ups: the context gauge dial reads its grid, radius, stroke and track from one table per size instead of ternaries; the chat form's distance from the screen's bottom per platform and the sidebar content's fade duration are named constants. The viewport debug readout moves out of src, next to the tests, as it is a debug tool the app only loads in a dev build. Assisted-by: Claude (Opus 5.5 Medium) * ui: say why the microphone can't record instead of failing silently A llama-server opened over plain HTTP on the local network or over Tailscale is not a secure context, where browsers hide the microphone, so a tap on the mic did nothing but log to the console. The button now shows a crossed-out mic in the warning tone with the reason in its tooltip, and a tap says it in a toast, as a phone shows no tooltip. A start that fails names the browser's reason (access denied, no microphone, in use by another app) the same way, and the next tap tries again. The recorder passes the browser's error on instead of replacing it with a generic one. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
b39680c41a |
ui: fold, preview and rearrange the sidebar's sections (#31936)
* ui : fold the sidebar's conversation sections Pinned and Recent conversations fold under their heading. The whole heading row is the toggle; its chevron follows the title, shows on hover and stays while the section is folded. Folded sections are remembered across reloads. Assisted-by: Claude (Opus 5.5 Medium) * ui : show a sidebar section's first six chats Pinned and Recent list their first six chats and end with a Show more row that opens the whole section; Show less, sticking to the bottom of the sidebar while the section scrolls under it, closes it back. The expanded sections last for the session. Assisted-by: Claude (Opus 5.5 Medium) * ui : rearrange the sidebar's sections and chats by dragging Pinned and Recent can be dragged by their title. The real section follows the pointer, tinted like the sidebar's resize handle and edged with a faint border, the other sliding aside as it passes; let go, it glides from there into its new slot. The order is remembered across reloads, and a section never moved keeps its default place. All sections now scroll together. A chat dragged onto Pinned is pinned, onto Recent unpinned. A lifted copy of the row follows the pointer while the row slides out of its section. The section under the pointer takes the same tint and border; a section ignores its own chats. Let go, the row slides in where its section sorts it, the rows below making room, and the copy glides into it; anywhere else, it slides back into its own section. While dragging, the rows and headings passed over take no hover. Dragging needs a mouse or a pen, so a finger still scrolls the sidebar; the sidebar scrolls near its edges, and Escape cancels. Assisted-by: Claude (Opus 5.5 Medium) * ui : set the sidebar's sections apart from their rows A section heading now reads above its chats: larger, semibold and in the full foreground colour. Chat titles drop to a regular weight in a slightly softened colour, full again when the chat is open or hovered, and "Show more" drops to a regular weight in the muted colour. Chats inside a section sit closer together, sections further apart, and the sidebar's actions get more room above and below. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
e30ad80fd7 |
ui: prevent a hidden sidebar from intercepting clicks (#31712)
* ui: prevent a hidden sidebar from intercepting clicks * ui: also fix desktop sidebar |
||
|
|
c6a0ff11a0 |
ui: open actions on right-click for chats, tabs, messages and models (#31545)
* ui : share directory resolution and the cwd row Move the lookup of a browser-picked folder to ToolsService.resolveDirectoryPath, let the working directory picker run without its chip, and split the 'Set working directory to' row into its own component, so other views can pick and show a folder the same way. Assisted by: Claude (Opus 5.5 Medium) * ui : open an item's actions on right-click Sidebar conversations and models manager rows open the same actions as their "more actions" menu on right-click. Both menus render one shared list of actions, so they cannot drift apart. Phones keep the browser's long-press; the dropdown's drawer already holds the actions there. An action can render a flyout submenu in place of its row, through the kit of the menu it is in, and close the menu after a pick. Adds the shadcn-svelte context-menu component, mirroring the dropdown-menu one. Assisted by: Claude (Opus 5.5 Medium) * ui : close conversation tabs from a right-click menu A tab's right-click menu closes it, the other tabs or the tabs to its right, and stops a response the tab is generating. Closing tabs that include the active one keeps the tab the menu was opened on. Assisted by: Claude (Opus 5.5 Medium) * ui : open a message's actions on right-click User and assistant messages open the same actions as their action icons on right-click. Selected text, links, media, code and fields keep the browser's own menu, so copying them works as before. The fork dialog opens from the actions context, like the delete one, so both the icon and the menu can open it. Assisted by: Claude (Opus 5.5 Medium) * ui : scope right-click menu shortcuts and selection to their item Show the conversation shortcuts only on the active row, as they act on the active conversation, and keep the browser menu only for a selection inside the message. Name the close-tab shortcut, and drop the unused chip toggle, menu submenus and shared cwd row. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
efbf6e80a5 |
ui: show text and page thumbnails for PDF attachments, stop endless conversion retries (#31468)
* fix(ui): show extracted text in PDF attachment preview Assisted-by: Claude (Opus 5.5 Medium) * feat(ui): show page thumbnails for PDF attachments sent as images Assisted-by: Claude (Opus 5.5 Medium) * ui: stop retrying PDF preview conversion after it fails A failed PDF-to-image conversion or text extraction reset its loading flag, which re-ran the effect and retried forever. Remember the failed item for each view and only retry when the item changes, so the error state stays on screen. Add a PdfConversionError story that feeds a broken PDF. Assisted-by: Claude (Opus 5.5 Medium) * ui: keep the text of PDFs sent as images and tidy the PDF preview Store the extracted text of a PDF sent as images in its content, so the Text view reads it instead of parsing the PDF again; only messages stored with the old placeholder extract it. The model still receives the images only. Guard retries on the error state, as the item remounts per id, skip an empty base64 payload, and share the status markup between views. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
d1c4e5bec1 |
ui: run local browser tests in installed Chrome with its sandbox on (#31596)
Playwright's bundled Chromium lags behind Chrome security releases (1.56.1 ships 141, and even 1.64.1 ships 156.0.8078.4, before the 156.0.8078.73 fixes), and Playwright launches it with --no-sandbox by default. Outside CI, use the installed, auto-updated Chrome with the sandbox enabled. CI keeps the bundled Chromium, so the self-hosted runner's preinstalled 1.56.1 browsers still work. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
0943ca5472 |
ui: add Playwright harness for recording demo videos (#31318)
* ui: add Playwright harness for recording demo videos
Scripted walkthroughs under tools/ui/demo are recorded with Playwright and
exported as H.264 mp4 for pull requests (demo/pr) and docs (demo/docs).
Fixture MCP servers and seeded settings keep recordings deterministic, a
drawn cursor and captions make the flow readable, and DEMO_UI_DIR points
the recording at another checkout such as a PR worktree.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: record demo scripts from PR descriptions and a configurable storage
Demo scripts no longer live in the repo. `npm run demo:pr -- <number>`
records the `ts demo` block from a PR description against the PR head,
uploads the mp4, a GIF preview and the script to DEMO_STORAGE, and links
the preview in a `## Demo` section of the PR description.
`npm run demo:docs` records the docs scripts kept in DEMO_STORAGE.
DEMO_STORAGE (hf:// buckets or file://) and the public URL are read
from tools/ui/.env.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: import generated conversations into demo recordings
Demos can now start with existing chats: `test.use({ traces })` imports
llama.app JSONL traces through Settings > Import/Export before the video
starts. Built-in traces are generated deterministically, other names are
downloaded from DEMO_TRACES_DATASET, and `demo:traces` pushes the built-in
ones there. Adds `demo.scroll` for wheel scrolling.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: keep demo captions clear of the chat form and isolate concurrent runs
Captions move to the top of the frame, since at the bottom they covered
the chat form a demo is often about. Each recording run gets its own
Playwright output folder, so a run starting elsewhere no longer clears
another run's video before it is saved.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: record demos at 2x and 60 fps with human-like timing
Recording goes through Chromium's screencast instead of Playwright's
video, which encoded VP8 at about 1 Mbit/s at 1x. Frames are captured at
the device pixel ratio (DEMO_SCALE, default 2) and encoded into a 60 fps
H.264 mp4, starting once the page has settled.
The cursor now glides faster along a slight arc with Fitts-like
durations, settles briefly before each click, and typing and pauses vary
a little. The randomness is seeded per demo, so re-recording gives the
same motion.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: document the demo harness prerequisites
The demo README now lists the tools the harness needs and what each is
for, and walks through creating the Hugging Face bucket and the optional
traces dataset, with the matching .env settings.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: version linked demo URLs so re-recorded previews refresh
GitHub's image proxy caches a preview by URL, so a demo re-recorded at
the same PR head kept showing the old GIF. The Demo section now links
the files with a content hash in the query string.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: label PRs that feature a video demo
Adds a `video demo` label and a workflow that applies it when a PR
description has a demo written by the UI demo pipeline (the managed
demo:start/demo:end markers, or a preview linking to a demo video),
and removes it when that section is gone.
Assisted-by: Claude (Opus 5.5 Medium)
* ci: label video demos with gh instead of github-script
The label workflow now runs the gh CLI in a shell step, like
pr-draft-label.yml, so it needs no action outside the repository's
allowed list. The video link check only counts videos uploaded for the
PR itself, so a description linking other PRs' demos isn't labeled.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: zoom demos in on details with a two-finger pinch
demo.zoom pinches in on a control or a point, holds, and pinches back out
to 1x, so a detail too small to read in the frame can be shown up close.
It drives Chromium's own pinch gesture, so the page's fixed bars stay put,
and works at desktop and phone sizes alike.
The pinch is evened out where Chromium misses: one anchored near the top
does not zoom at all, so it starts lower, and one near the bottom
overshoots its ratio, so a small pinch from the middle corrects it. The
way out reads the real scale until the page is back at 1x, which the next
gesture needs.
The overlay also draws a fingertip per touch, so a pinch on a touch
device shows as two fingers.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: wait out a cold dev server before a demo starts
A fresh checkout's dev server optimizes its dependencies on the first
load and reloads the page, which can take well past an action's timeout,
so a demo failed before it started. The demo now waits up to 90 seconds
for the app; the recording only starts once it is ready.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: record a video per test in a PR demo, shown in a table
A large PR can split its demo into several shorter videos: each test()
in the ts demo block is recorded as its own video (<sha>-1.mp4, ...),
and the Demo section lays their previews out in a table, each column
headed by its test's title.
GIF previews now keep their longer side at DEMO_PREVIEW_WIDTH and shrink
until they are under 5 MB, since GitHub's image proxy refuses anything
larger and shows a broken image instead.
Importing traces works on a phone viewport too, where Settings sits in
the sidebar under the page until the menu key slides it aside.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: fix demo trace imports on desktop and lay landscape demos out two to a row
Importing traces failed on a desktop whose collapsed sidebar sits under
the page: it now expands the sidebar from the page's menu key on a phone
or from the sidebar's logo on a desktop, whichever makes Settings
reachable. Afterwards it forgets the expanded sidebar, so a demo starts
with it collapsed, as on a first visit.
A PR demo with several videos shows up to four portrait (phone) videos
to a row, or two landscape ones, so each preview stays readable.
Assisted-by: Claude (Opus 5.5 Medium)
* ui: only record other people's PR demos at a reviewed head commit
demo:pr runs the PR's code and demo script on this machine, with the
gh and hf logins, so a PR by someone else now needs --trust <sha>
naming the head commit that was read, and is refused again after new
pushes. Recordings also launch Chromium with its sandbox on, which
Playwright turns off by default.
Assisted-by: Claude (Opus 5.5 Medium)
|
||
|
|
5c2ea1ab11 |
ui: disable model deletion the server would refuse (#31305)
The router only removes models it took from the Hugging Face cache, but the models manager offered "Delete from disk" for every model, so a model from --models-preset or --models-dir failed with a "not removable" toast. Read the source and can_remove fields of /models and show the delete action disabled for those models, with a tooltip (a hint line in the mobile drawer) saying how to remove them instead. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
23426d797e |
ui: align alert dialog styling with other overlay surfaces (#31312)
Use the popover background, softer border, rounded-xl corners and shadow-md like dropdowns, hover cards and the settings dialog, and match the dialog title line height. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
90080ce094 |
ui: keep queued steering messages in their own conversation (#31304)
A message queued while a conversation was busy was re-sent through sendMessage, which targets the active conversation, so switching chats before the turn ended delivered it into the wrong one. Re-send only when the owning conversation is active; otherwise keep it queued there and flush it when that conversation is opened again. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
64be95b163 |
ui: show interrupted state for tool calls that never returned (#31314)
* ui: show interrupted state for tool calls that never returned The chat-level streaming flag was applied to every assistant message, so a tool call left without a result in an earlier message kept spinning while a newer reply streamed. Scope streaming to the last assistant message and mark finished calls without a result as interrupted. Assisted-by: Claude (Opus 5.5 Medium) * ui: mark a shell command stopped before any output as interrupted exec_shell_command creates its result message before running, so stopping it mid-run leaves an empty result instead of none. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
b12b405c17 |
ui: don't reload a loading model on select, prefer it in pre-selection (#31326)
* ui: don't reload a loading model on select, prefer it in pre-selection Assisted-by: Claude (Opus 5.5 Medium) * ui: skip hidden models in automatic model selection Assisted-by: Claude (Opus 5.5 Medium) * ui: don't count a model being unloaded as loading Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
8ab29faec4 |
ui: keep chats at the bottom until the reader scrolls up (#31311)
* ui: land at the bottom of a conversation every time it opens Opening a long conversation often stopped short of its end: - the press grace counted from page load (pressedAt = 0), so a chat that landed within 400 ms of a refresh did not follow the rows realizing after the jump - the click that opened a chat (sidebar row, tab) started the same grace, so navigating by click had the same problem - any scroll event away from the bottom stopped following, including the ones the browser fires itself while the chat settles - the chat screen outlives its routes, so going back to the last landed conversation through the new-chat screen skipped the landing entirely scrollToBottom() now clears the grace, only an upward scroll away from the bottom stops following, and every navigation lands anew. Navigations into a chat also disable SvelteKit's scroll reset, which moved the previous conversation to its top for a few frames. Where overflow-anchor is supported, a 1px pin after the messages is the only scroll anchor while following, so the browser keeps the bottom in place itself; WebKit keeps the resize observer. Assisted-by: Claude (Opus 5.5 Medium) * ui: let nested agentic content scrollers chain to the chat Reasoning, shell output and code blocks used overscroll-behavior: contain, so the wheel stopped dead at their edges instead of scrolling the conversation. Assisted-by: Claude (Opus 5.5 Medium) * ui: stop following the stream as soon as the reader scrolls up A trackpad or smooth wheel scrolls in steps smaller than the at-bottom threshold, so each step up was re-stuck and snapped back on the next growth while a response streamed. Any upward move that is not content shrinking now releases at once. The attach effect also read the hook's own state, so every flip re-attached and re-measured, which undid such a release. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
f5d4d75419 |
ui: show submit button when the chat input has content (#31324)
ChatFormActions gated the mic and stop buttons on a `canSubmit` prop that ChatForm never passed, so it was always false and typing text did not swap them for the submit button. Use `canSend` instead and also hide the skip-reasoning button while there is content to send. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
3ed915e309 |
ui: reveal the collapsed sidebar from its logo and toggle it there (#31307)
* ui: reveal the collapsed sidebar from its logo and toggle it there The collapsed sidebar now shows only the logo; hovering it reveals the icon strip until the pointer leaves. The expanded sidebar drops its top-right collapse button and the logo collapses it on hover instead. Assisted-by: Claude (Opus 5.5 Medium) * ui: fade the peeked sidebar in at full width and keep the toggle slide Hovering the logo of the collapsed sidebar now fades in the fully open sidebar, floating over the page at its full width, instead of resizing it. Opening or closing with the toggle still resizes and slides: the sidebar docks to strip width while it slides, then floats out of sight, and it stays hidden under the pointer after a toggle close. The unused icon-only strip is removed from the sidebar actions. Assisted-by: Claude (Opus 5.5 Medium) * ui: stack the sidebar above the chat tabs on desktop The peeked sidebar floats over the page, but the chat tab bar shared its z-index and came later in the page, so the tabs were drawn on top of it. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
f8fcef2546 |
ui: add MCP group checkboxes in tools settings and fix indeterminate checkbox colors (#31303)
MCP server groups in the settings Tools tab now get a group checkbox like the built-in, server and browser groups, toggling the server-scoped tools key. Indeterminate checkboxes now use the checked state colors. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
b7cde589e4 |
ui: request persistent storage on startup (#31299)
Ask the browser to keep IndexedDB and localStorage data under storage pressure, so conversations and settings are less likely to be evicted. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
e486a4b559 |
ui: build the reasoning menu from the template effort levels (#31273)
* ui: build the reasoning menu from the template effort levels When the chat template reports effort levels, the menu offers Default, Off and those levels, and a pick is sent as reasoning_effort. A template that reports none keeps the token budget menu. Picking a model other than the one that produced the last answer resets the conversation effort to Default, and an effort the current menu lacks resolves to Default. * ui: wait for a cold router model before building the request A router serves the props of a loaded model only, so a request sent to a cold model was built without its template effort levels and fell back to a token budget. The request now waits for the model to load, joining a load already in flight, and a stop during the wait sends nothing. Status waiters hold a list per model so a load and the requests that wait on it each get theirs, and a props request in flight is shared with a second caller instead of answering null. |
||
|
|
f4d8af608a |
ui : show save and reset settings buttons only when relevant (#31248)
* ui : show save and reset settings buttons only when relevant Assisted-by: Claude (Opus 5.5 Medium) * ui : move reset settings button next to reload app, pad settings caption Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
02d502f314 |
ui: Support OGG audio attachments by converting them to WAV (#31237)
* ui: support OGG audio attachments by converting them to WAV Fixes #24164 Assisted-by: Claude (Opus 5.5 Medium) * ui: convert all non WAV/MP3 audio uploads to WAV Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
b1756b23f3 |
ui: Fix draft for new message disappearing after using "Add System Message" action (#31214)
* ui: keep new chat draft when adding a system prompt Fixes #24338 Assisted-by: Claude (Opus 5.5 Medium) * ui: remove unused initialMessage from chat form Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
6886628cb1 |
ui : Search dialog (#31173)
* ui : replace the sidebar search mode with a search dialog Search opens a spotlight dialog (Cmd+K or the Search entry under New chat in the sidebar) with keyboard navigation over recent chats and sidebar actions. Phones keep the search page. Sidebar actions show their shortcuts, with new ones for Settings (Cmd+,) and Models (Shift+Cmd+M). Assisted-by: Claude (Opus 5.5 Medium) * ui : ignore search dialog keys while an IME is composing Enter confirms an IME candidate and the arrow keys move through the candidates, so the search field leaves them to the IME instead of opening the highlighted result or moving the highlight. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
3ab37aedfe |
ui: fix system message row stretching to full prompt height in WebKit (#31246)
The expand button wrapping the system message card defaulted to inline-block. WebKit takes an inline-block's baseline from its last line even when that line is clipped by the card's max-height, so the row grew to the height of the whole prompt and left a large empty gap below the card. Make the button a block so the row matches the card. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
0d5ca60098 |
ui: list org-less models first in the model selector (#31215)
The org-less group renders without a header, so when it followed a named org its models looked like they belonged to that org. Put it ahead of the named org groups. Fixes #25227 Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
823df7d0fb |
ui: Highlight reasoning toggle on hover and align it with model selector (#31212)
On desktop, the reasoning effort toggle now gets a muted background on hover and while its menu is open, matches the model selector's 24px height, uses a 13px icon and sits 5px from the selector. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
1a97e387d3 |
ui: add conversation compaction (#27401)
* ui: add conversation compaction Add a compaction action that asks the model to summarize the conversation so far and stores the summary in a new compaction node appended to the branch. Later requests slice the branch at the last compaction node, keeping the system prefix and continuing from the summary instead of the full history, which frees up context while the complete history stays visible and navigable in the UI. The slice is applied once at the request funnel, covering the plain send, the agentic flow and the KV cache pre-encode, plus the continue path that bypasses it. The summary request is a one-shot outside the SSE replay machinery, streamed live into the node with a full rollback on abort, error or empty result. The action is exposed as a /compact slash command and a Compact button in the context gauge popup, with an overridable summarization prompt in the settings. * ui: pre-fill KV cache and refresh context gauge after compaction Once the summary is stored, pre-encode the compacted branch and stamp the returned prompt timings on the compaction node: re-encoding the reduced prefix is part of the compaction itself, so the server KV cache and the context gauge reflect the summary right away. The summary stream is registered under a prefixed identity (compact::convId), so the visibility kick and byte-offset resume protect it through tab switches while the reload probe never reattaches it as a chat turn. The stamped node becomes the shared context truth for the gauge and the processing state restore, and the stale live state that kept the gauge full is cleared. * chore: format * ui: allow a dedicated model for conversation compaction An opt-in setting reveals a model selector whose options come from the live router model list. The chosen model writes the summary and is loaded on demand when it is not resident, while the default path keeps resolving to the conversation's own model. * ui: align the compaction model field with project conventions * ui: fix the model option helpers import path The compaction model selector pulls filterModelOptions and groupModelOptions from the models component folder, where they no longer live, so the build fails to resolve the module. Point the import at the navigation folder, which now owns them. Missed during the rebase: the helpers moved in a commit that does not touch any compaction file, so nothing conflicted. * ui: import the model option helpers from models/utils * ui: follow the moved models selector in the compaction model field The models manager moved ModelsSelectorList under ModelsSelector and the model option helpers to /utils, where groupModelOptions takes the options alone. Drop the stale copy the rebase kept and read the helpers from their new home. * ui: drop the dedicated compaction model A summary written by another model loses the prefix the conversation model cached, so the whole history is prefilled again, and the model then resumes from text it did not write. The conversation model always writes its own summary. * ui: keep the last steps of a compacted conversation A compaction now folds the steps the model reads but the last ones, a step being a user message or an assistant message with its tool results, and stores how many it kept on the compaction node. The model then reads the system prefix, the summary, the kept steps and what follows. The summary request is the request the chat sends, with its options, tools and message shaping, cut before the preserved steps: the server reuses the prefix it cached and only the instruction is new. The number of preserved steps is a setting, 10 by default. * ui: run every compaction summary through one path Three callers needed the same thing - the automatic pre-encode pass, the action in the context gauge, and re-running a summary from the block - and each of them had grown its own copy of the request, the streaming and the storing. There is one path now: a summarization owns a node, streams into it, and reports itself through a ledger the rest of the app reads (`isCompacting`, which node belongs to which conversation). Re-running a summary is the same call on an existing node, so the two entry points cannot drift apart again. * ui: give the compaction row its own summary UI The summary was a line of text in a tool-call-shaped collapsible, which is how a compaction reads as a side note rather than as the thing the rest of the conversation now stands on. The row is its own block: a divider that names the boundary, and the summary inside it with the model that wrote it, its statistics, and the same actions an assistant turn has - copy, edit, fork, regenerate and delete all apply to the summary, and it collapses to the divider once a summary is in, because the shrunk context is the headline and the prose is the detail. The divider is a variant of the shared collapsible block, which also needed the toggle and the title split into snippets so a caller can lay them out without copying the markup. The action icons no longer take a role: they render what a message offers, and a compaction offers the same as any other stored message. * ui: report compaction progress on the row The row owns the run, so the row says how it is going: the prompt progress in the header while the context is being read, the phase once the summary starts streaming, and the token count once it is in. Before the first summary token there is nothing to collapse, so the header stands on its own instead of offering an empty block. * ui: keep the summarized turns quiet while a compaction runs The turns being summarized used to keep their own "Processing..." indicator and live reading stats while the summary streamed, so the conversation said the same thing twice in two places. The row reports the run, so the turns it replaces stay silent until it is done. * ui: hand the compact action to the context gauge Compacting is a decision about the context, so the action belongs with the numbers that show the context filling up rather than inside the form: it sits at the bottom of both the hover card and the drawer, under the breakdown it acts on, quiet enough to stay a footnote and disabled - with the row's own spinner - while a summary is already running. * ui: follow the bottom, otherwise leave the view alone The screen scrolled itself with a controller of observers, intervals, direction heuristics and landing timers, and still managed to move the view while the reader was reading: any mutation that grew the branch was treated as a reason to keep following. The page is the scroller, so it follows when the reader sits at the bottom, and stays where it is otherwise. A resize observer plus native scroll anchoring does the rest, and `pointerdown` buys the reader a moment of grace to be caught mid-drag. * ui: expand collapsible bodies with a height transition Expanding a block snapped it open: the body was mounted the moment `open` flipped, so a tall block moved the conversation around it in one frame. The body now goes through the same region the models table uses. The height interpolates and the visibility follows it, so a body is unmounted once the collapse has finished rather than the moment it starts - a closed block still costs nothing while tokens stream past it. * ui: open a compaction summary at the top of the screen Toggling a summary left the reader wherever they were, so a conversation that had just compacted showed the divider at the bottom of the screen and read down from there. A toggle now scrolls the page once and lands the divider a breath under the tabs, both ways: the summary is read from its beginning, and closing it returns to the same boundary instead of wherever the page happens to come to rest. The scroll waits for the body to reach its height, because before that the page is too short to scroll the divider up there and the call would clamp. That wait is the shared collapse duration rather than a transition event: an engine without `interpolate-size` animates the region's grid row instead of its height, so a listener on `height` would never fire there and the page would not move at all. * ui: spin the compaction icon while the summary runs The divider reported the phase in its title while the icon still showed a finished block, so a run in progress and a summary that had landed looked the same in the one place the eye reads first. The icon spins while the summary is running and folds back once it is in. * ui: let the compaction summary speak without the reasoning trimmings The summary is the thing the conversation now stands on, not a note beside it, and the conversation model always writes it, so the body drops the reasoning block's rule and indent (`flushBody` keeps them for the blocks that borrow them) and the model selector under the summary is gone - there is nothing left to swap. * ui: drop the model override from the compaction path The summary row no longer offers a model selector, so nothing hands regenerateCompaction a model anymore. Remove the parameter from the whole path, with the on-demand load of another model it carried: the summary always comes from the model the request funnel resolves. * ui: let the compaction summary think as the chat does The summary request forced thinking off, overriding the reasoning effort the user chose. The summary is the text the conversation resumes from, the task where reasoning helps the most, so the request now carries the very options of the chat. * ui: pre-encode the compacted branch as the next turn reads it The post-compaction pre-encode sent the branch without tools, while the tools render ahead of the messages, so it warmed a prefix the next turn never reads and that turn prefilled the whole compacted context again. The pre-encode now sends the tools, message shaping and reasoning handling of the chat, so the next turn only prefills its new message. * ui: pre-encode the branch the next turn actually reads The per-turn pre-encode sent the messages of the request plus one assistant message holding the streamed text, without tools. With tools on, it replaced the slot the next turn extends with a prefix nobody reads again, and after an agentic turn its history did not match the stored calls and results. Without agentic, it never ran. Both pre-encodes now read the stored branch up to its leaf, cut at the last compaction, and send it with the tools, message shaping and reasoning handling of the chat. The plain completion path triggers it too. * ui: refuse a compaction summary the output limit cut The stream handler read every chunk but dropped the finish reason, so a summary cut by max_tokens folded the conversation into half a text. The handlers now hand the finish reason to onComplete, and a summary that ends on length rolls the compaction back with an error. The summary was framed through a replacement string, so $& or 32560 in it changed the text the model read; it is framed as written now. * ui: wait for the collapse transition in the tool call tests The collapsible body now unmounts once its collapse animation ends rather than as soon as the block closes, so the "folds back" assertions ran before the body was gone. Wait out COLLAPSIBLE_TRANSITION_MS first. Assisted-by: Claude (Opus 5.5 Medium) --------- Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com> |
||
|
|
bc262f33cc |
ui: Open model details in a drawer without leaving the page (#31176)
* ui: open model details in a global drawer without leaving the page The model info actions in the selector used to navigate to the models page to open its details pane, and a phone opened a separate dialog instead. The drawer now lives outside the models table, driven by uiStore, so the info icon opens it over whatever page is showing. The models dropdown and the phone picker stay open under the drawer's backdrop, and keep focus while the drawer opens and closes, so the trigger's tooltip no longer pops over the drawer. Assisted-by: Claude (Opus 5.5 Medium) * ui: let the model details drawer reopen after a drag to dismiss Dragging the drawer down wrote vaul's own open state, which the one-way open prop then kept closed, so the info action could not open it again until a refresh. Bind open both ways through the store instead. Assisted-by: Claude (Opus 5.5 Medium) * ui: close the models selector from the details drawer chat actions Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
f5892ca5ad |
ui: use shared confirmation dialog for conversation deletion (#31187)
Extract the keyboard-shortcut delete confirmation into DialogConversationDelete and reuse it in the sidebar and mobile search page instead of the native window.confirm prompt. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
dc9e3bed42 |
ui: UX improvements (#31030)
* ui : land opened conversations at their bottom before the first paint Pin the page to its bottom with a ResizeObserver until it stops resizing or the reader interacts, and mount the last rows eagerly so the landing frame shows real content. Assisted by: Claude (Opus 5.5 Medium) * ui : make conversation tabs browser-style A plain navigation shows the chat in the current tab instead of adding one, and the new-chat tab turns into the conversation it starts. New tabs come only from explicit actions: the + button, Cmd/Ctrl-click or middle-click on a sidebar chat, and its Open in new tab menu item, which open in the background. Closing a tab moves to its neighbour among the tabs the view shows. Assisted by: Claude (Opus 5.5 Medium) * ui : share the tab surface and tab bar fade styles Move the tab item surface (shape, resting and active looks) to TAB_SURFACE_* class constants and the fade under the tab bar to a global chat-top-fade class, so other elements can match the tabs. Assisted by: Claude (Opus 5.5 Medium) * ui : fit the chat column below the tab bar The tab bar reported 1.25rem of its height while it takes 3.3125rem (pt-3.25 + h-10), so a short conversation still left a few pixels to scroll. Use the bar's full height and drop the extra 1rem from the column's minimum height, so it fills the viewport exactly; the centered new-chat form moves up by the same 1rem to keep its place. Assisted by: Claude (Opus 5.5 Medium) * ui : stop the page from bouncing past its ends Elastic overscroll on the root scroller dragged the sticky and fixed bars (tab bar, chat form) along at the top and bottom of a chat, and they jumped back on release. Set overscroll-behavior: none on html and body. Assisted by: Claude (Opus 5.5 Medium) * ui : stop scrolled dialogs from bouncing past their ends Dialogs scroll on their own (the settings panel, the search results), so the page rule did not reach them and their sticky navigation still jumped on overscroll. Turn off overscroll on dialog panels and on the scroll containers inside them. Only scroll containers: Firefox counts an overflow-hidden box such as truncated text as one, and `none` there kept the wheel from scrolling the list around it. Assisted by: Claude (Opus 5.5 Medium) * ui : fit a first exchange opened by the working directory row The last answer's minimum height leaves room for the last question only, so the synthetic row that a new chat starts with (Set working directory to ...) made a short first exchange overflow by that row. When everything above the last question is synthetic, count those rows as part of it. Assisted by: Claude (Opus 5.5 Medium) * ui : keep following a streaming response until the reader scrolls up Auto-scroll stopped whenever the page moved up, including moves the reader did not make: scroll anchoring and blocks re-rendering shorter while a response streams. Only the reader's wheel, touch, scroll keys or scrollbar drag now count as scrolling up. The send scroll also looked up the new user bubble by position, which picked an older message when the answer row had not rendered yet. Assisted by: Claude (Opus 5.5 Medium) * ui : fade the chat form between its centered and bottom positions The form no longer slides across the column between the new-chat center and the bottom. It fades out drifting toward where it goes and fades back in where it lands, quicker when opening a chat than when going back to a new one. Its wrapper keeps the same height in both positions, so the messages never shift while it moves. The new-chat greeting fades in as the form settles, also on a refresh or a first visit. Reduced motion keeps only the fades. Assisted by: Claude (Opus 5.5 Medium) |
||
|
|
69b3cc406e |
ui: Sidebar resizing improvements (#31119)
* ui : let the expanded sidebar be resized by dragging its edge Bring back the desktop sidebar resize handle that was dropped with the shadcn sidebar primitive. The width is clamped between 18rem and 32rem, persists across reloads, and resets on a double-click of the handle. The tab bar follows the same width so a wider sidebar never covers it. Assisted by: Claude (Opus 5.5 Medium) * ui : rubber-band the sidebar edge past its bounds and drag it shut Past the max width the edge resists harder the further it is pulled, and the same happens below the min width until the pull passes 9rem, where it snaps to the pointer and letting go hides the sidebar. A release outside the bounds springs the width back to the nearest one. Assisted by: Claude (Opus 5.5 Medium) * ui : show the sidebar edge strip faintly on hover and solid while dragging The strip is clipped to the sidebar's rounded corners through its own overlay, so the sidebar itself is never clipped. Assisted by: Claude (Opus 5.5 Medium) * ui : remember whether the desktop sidebar is open across reloads A phone opens the sidebar as an overlay, so it always starts closed there and its toggling never overwrites the desktop preference. Assisted by: Claude (Opus 5.5 Medium) * ui : fade the sidebar labels and conversation list with its width The fade follows the live width, so it tracks both the toggle's width transition and a drag below the minimum width. Assisted by: Claude (Opus 5.5 Medium) * ui : persist the sidebar width on release and clamp a restored one A drag now updates only the live width and writes it to localStorage once when released. A width restored from localStorage is clamped to the current bounds, so a value saved under older bounds does not stick. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
e168e041ec |
ui: Models Manager as Route + UI improvements (#30988)
* ui : move models manager to its own route, keep Discover as a dialog Models now lives at #/models instead of a dialog. Discover opens as a standalone dialog over it, and leaving the page returns to the chat it was opened from. Assisted by: Claude (Opus 5.5 Medium) * ui : polish the models page layout and filters Give the models page a page header with the Discover action, calmer column labels, tinted section and family headers, and an empty state. Load the model list on a direct visit, slide the detail pane over the table below xl, and draw the filter toggles as one box matching the context select, with room for their shadow. Assisted by: Claude (Opus 5.5 Medium) * ui : round the models table family headers Assisted by: Claude (Opus 5.5 Medium) * ui : fix models page navigation and Discover gating Record the models page's way back after every navigation, so Back, a typed URL or a reload no longer return to a stale chat. Escape closes the detail pane, then leaves the page. Gate every Discover entry point on one shared check, recheck the API key on /models, skip the duplicate router fetch on a direct load, and share the route load between pages. Assisted by: Claude (Opus 5.5 Medium) * ui : show model details in a drawer Open the models manager's detail pane in a drawer, from the right on desktop and from the bottom on a phone, instead of an inline side panel and a full-screen cover. Pad the pane on both sides, drop its close button on a phone, and assert that filtered rows are gone from the page rather than merely hidden. Assisted by: Claude (Opus 5.5 Medium) * ui : make whole models table rows clickable A click anywhere on a model or quant row opens it, unless it lands on one of the row's own controls (load toggle, actions menu). The name button stays the keyboard path to the same action. Assisted by: Claude (Opus 5.5 Medium) |
||
|
|
ea1d7d66f3 |
fix(ui): align hover card and context popup styling with dropdown menu (#30978)
Use the dropdown menu surface (border, radius, background, shadow, padding) for the hover card and the context gauge popup, and fix the hover card open/close animation to use bits-ui data-state attributes. Assisted-by: Claude (Opus 5.5 Medium) |
||
|
|
e1e3b2c409 |
ui : bump packages to clear npm audit (#31038)
Run npm audit fix, then bump the remaining vulnerable packages within their current majors: storybook 10.6.2, vitest 4.1.12, vite 7.3.7, @modelcontextprotocol/sdk 1.32.1, dompurify 3.4.17, mermaid 11.17.2, @vite-pwa/assets-generator 1.0.4 and @tailwindcss/typography 0.5.20. Override katex to 0.18.11 and postcss-selector-parser to 7.1.6 since their dependents still pin vulnerable ranges, bump the sharp override to 0.35.5, and pin @storybook/svelte so npm does not resolve the 11.0 alpha through the addon-svelte-csf peer range. Storybook stays on 10.6.2 as 10.6.3 is newer than min-release-age. Assisted by: Claude (Opus 5.5 Medium) |
||
|
|
84746c5c94 |
ui: Add "Show tool call in progress" setting (#30681)
* feat(ui): add Show tool call in progress display setting
Add the showToolCallInProgress key and its checkbox to Settings > Display,
right next to its "always show" counterpart. Upstream dropped a setting of
this exact name in
|
||
|
|
a6b83d426f |
ui : key draft sidecar badges by model instead of repo (#30919)
Two quants of one repo pulled each other's draft: the badge read every --model-draft arg of the repo, so each row showed both drafts. Assisted-by: DeepSeek-V4.1-Flash-1017 |