Skip to content

ui: name the PWA from the build env and default it to Llama Chat - #32890

Merged
allozaur merged 1 commit into
ggml-org:masterfrom
allozaur:allozaur/fix/ui-pwa-manifest-name
Nov 23, 2026
Merged

allozaur merged 1 commit into
ggml-org:masterfrom
allozaur:allozaur/fix/ui-pwa-manifest-name

Conversation

@allozaur

Copy link
Copy Markdown
Contributor

Overview

An installed Llama Chat now carries the name its build sets, and it is called Llama Chat by default.

Additional information

Cause

The web manifest is built in Node by its Vite plugin. APP_NAME reads import.meta.env.VITE_PUBLIC_APP_NAME, which Node does not have, so the manifest was always named llama-ui, whatever the build set.

What changed
  • vite-plugin-pwa-manifest.ts builds the manifest in configResolved, from the env Vite loaded (.env files included), with pwaManifest(env) in pwa.constants.ts.
  • The default APP_NAME (and the one in .env.example) is Llama Chat instead of llama-ui.
Testing
  • npx vite build: the manifest's name and short_name are Llama Chat.
  • VITE_PUBLIC_APP_NAME=Foo npx vite build: both are Foo.
  • npm run check, eslint and prettier pass.

Requirements

The manifest is built in Node by its Vite plugin, where import.meta.env is not set, so it was
always named llama-ui whatever VITE_PUBLIC_APP_NAME said. The plugin now names it from the env
Vite loaded (.env files included), and the default name is Llama Chat.

Assisted-by: Claude (Opus 5.5 Medium)
@allozaur
allozaur marked this pull request as ready for review November 23, 2026 14:44
@allozaur
allozaur requested a review from a team as a code owner November 23, 2026 14:44
@allozaur
allozaur merged commit 2359d27 into ggml-org:master Nov 23, 2026
8 checks passed
allozaur added a commit to allozaur/llama.cpp that referenced this pull request Nov 24, 2026
ggml-org#32890 named the PWA Llama Chat by default, but the E2E test still
expected llama-ui, so the UI workflow failed on master and on every UI PR.

Assisted-by: Claude (Opus 5.5 Medium)
allozaur added a commit that referenced this pull request Nov 24, 2026
#32890 named the PWA Llama Chat by default, but the E2E test still
expected llama-ui, so the UI workflow failed on master and on every UI PR.

Assisted-by: Claude (Opus 5.5 Medium)
allozaur added a commit to allozaur/llama.cpp that referenced this pull request Nov 24, 2026
ggml-org#32890 named the PWA Llama Chat by default, but the E2E test still
expected llama-ui, so the UI workflow failed on master and on every UI PR.

Assisted-by: Claude (Opus 5.5 Medium)
allozaur added a commit that referenced this pull request Nov 24, 2026
…px --server (#32945)

* ui: run Llama Chat apart from llama-server, named in config.json

The app reads config.json, a file next to index.html, once before it
starts. A "server" URL in it sends every API request there instead of
to the app's own origin: /props, /v1, /models, /tools, the CORS proxy
and the realtime socket. Without one nothing changes.

npx llama-chat --server <url> answers that file itself, and
npx llama-chat build --server <url> writes it. The service worker
leaves it out of its cache, so a host can change it without a new
build.

Assisted-by: Claude (Fable 5.2)

* ui: release Llama Chat 0.2.0 with --server

Bumps @ggml-org/llama-chat and llama-chat to 0.2.0 so the publish
workflow ships the --server flag to npx once this reaches master.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: expect the Llama Chat name in the PWA manifest e2e test

#32890 named the PWA Llama Chat by default, but the E2E test still
expected llama-ui, so the UI workflow failed on master and on every UI PR.

Assisted-by: Claude (Opus 5.5 Medium)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants