llama.cpp/ui
Aleksander Grygier 5d7bb89f47
ui: fix the phone model sheet's search field and reasoning row (#33144)
* ui: fix the phone model sheet's search width and reasoning row

Give the sheet's foot the lists' gutter, so the search field lines up
with the inset groups above it. Draw the reasoning effort as an inset
group like the All models row, with its levels sliding open inside it.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: give the sheet search and header values the plain text field look

The phone model sheet's search borrowed the chat form's glass surface,
gradient edge and all; it is now a plain SearchInput in the chat form's
pill shape. The header value fields drew their own transparent textarea
next to Input keys; they use the shared Textarea, so every text field has
the same background and border.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: hide the reasoning row while the phone model sheet searches

A typed search gives the sheet to its results; the reasoning row comes
back once the search is cleared.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: use a model for dictation from the phone model sheet

Holding a model that hears offers Use for dictation, as the desktop row's
microphone does, and the model chosen for it can hand the choice back to
Automatic.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: tidy the phone model sheet after review

- Keep for dictation on the model Automatic picked, instead of Use for
  dictation on a model that already transcribes it.
- Keep the reasoning row mounted while a search hides it, so its levels
  are as they were left.
- Name the Reasoning row label once for both pickers.
- Restore the stores the dictation test changes, and cover the keep case.
- Mention the dictation options on the Mobile Flows page.

Assisted-by: Claude (Opus 5.5 Medium)
2026-11-26 19:58:57 +01:00
..
apps/chat ui: fix the phone model sheet's search field and reasoning row (#33144) 2026-11-26 19:58:57 +01:00
lib ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125) 2026-11-26 17:15:39 +01:00
README.md ui: move the demo harness to ui/lib/demo and render videos on the Llama brand (#33125) 2026-11-26 17:15:39 +01:00

ui

The UI of llama.cpp: the packages in lib and the apps built on them.

ui/
├── lib/
│   ├── ui/       @ggml-org/llama-ui: design tokens, fonts, surfaces and components
│   ├── voice/    @ggml-org/llama-voice: microphone capture, transcription and dictation
│   ├── harness/  @ggml-org/llama-harness: the agentic loop, headless
│   └── demo/     @ggml-org/llama-demo: scripted demo videos for PRs and docs
└── apps/
    └── chat/       Llama Chat, the chat app that llama-server serves
  • lib/ui draws the parts and handles interaction, with no business logic. It is built with @sveltejs/package and published to npm as @ggml-org/llama-ui. Apps in this repo skip the package: they compile its sources as part of their own build, so they hold no copy of a component, a token or a font.
  • lib/voice records the microphone and turns speech into text through llama-server, with no UI: Llama UI draws the voice parts. It is plain TypeScript built with tsc, plus a Svelte entry (@ggml-org/llama-voice/svelte). Apps in this repo compile its sources too. It is not published to npm yet.
  • lib/harness is the agentic loop: plain TypeScript with no UI and no dependencies. An app gives it an inference client and tools, and reads its events.
  • lib/demo records scripted demo videos of the apps for PRs and docs, and renders them on the Llama brand. It is Node TypeScript that an app adds as a local file: dependency and imports by name, with the app's own Playwright; it is private, not published to npm.
  • apps/chat talks to llama-server, stores conversations and runs the agentic loop through the harness. CMake builds it into llama-server (see scripts/ui-assets.cmake), and it is published to npm as @ggml-org/llama-chat (with llama-chat as its short name), so npx llama-chat runs it against any llama-server.

Each folder is its own npm package with its own package-lock.json: run npm ci in the one you work on. Building, checking and testing apps/chat needs no install in lib/ui, lib/voice, lib/harness or lib/demo.

The split between library and app is not finished. Llama Chat takes its tokens, fonts, surfaces and base components from lib/ui, but still has its own versions of what the library holds above those (ActionIcon, SearchInput, Logo, SyntaxHighlightedCode and the Model UI), and DESIGN.md, BRAND.md and the full Storybook still sit beside the app.

Releases

The npm packages are versioned by hand, with semver, and published by CI:

Package Version in Published by
@ggml-org/llama-ui lib/ui/package.json ui-lib-publish.yml
@ggml-org/llama-chat and llama-chat apps/chat/package.json and apps/chat/alias/package.json, always the same ui-chat-publish.yml

To release, bump the version in the PR that should ship the change: a patch for fixes, a minor for new or changed features or API while the version is 0.x. When that PR reaches master with a version npm does not have yet, the workflow builds the package and publishes it; any other commit publishes nothing. A version lower than the one on npm fails the run.

Llama Chat as bundled in llama-server is not versioned this way: it ships in every llama.cpp release, as b<build>.