Skip to content

ui: regroup settings into six topic sections with Advanced blocks - #115

Draft
allozaur wants to merge 47 commits into
allozaur/feat/ui-phone-sheetsfrom
allozaur/refactor/ui-settings-simplification
Draft

allozaur wants to merge 47 commits into
allozaur/feat/ui-phone-sheetsfrom
allozaur/refactor/ui-settings-simplification

Conversation

@allozaur

@allozaur allozaur commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Overview

Settings are easier to scan: they are regrouped into six topic sections (General, Chat, Model, Agent, Voice, Data), each in titled groups, with the rarely needed settings collapsed into an Advanced block, or an Advanced page on a phone.

Demo

Demo What it shows
Settings in six sections Settings in six sections (desktop)

General, Chat, Model, Agent, Voice and Data, each in titled groups. What few people need waits in a collapsed Advanced block at the end of a section.
Six sections, with Advanced pages, on a phone Six sections, with Advanced pages, on a phone (phone)

The same six sections as rows of the phone settings sheet. A section is titled groups of rows, its Advanced settings a further page; Agent holds the tools and MCP, Data import, export, reload and reset.

Recorded at df00732; click a preview for its full video.

Additional information

Builds on #131 (upstream ggml-org#33036; phone sheets, MCP in settings, model selectors), which should merge first. Upstream: ggml-org#32929. Storage keys do not change, so saved settings carry over. Changed defaults reach only new profiles and a settings reset.

What changed
  • Sections go from General, Display, Voice, Tools, Agentic, Import/Export, Sampling & Penalties and Developer to General, Chat, Model, Agent, Voice and Data. Tools, Agentic and MCP fold into Agent; import, export, reload and reset into Data.
  • Every field has a group (its subgroup title) and optionally advanced in the settings registry; groupSettingsFields() turns a section into its groups.
  • Each section ends with a collapsed "Advanced settings" block holding its advanced fields, not persisted. In the phone settings sheet the block is an Advanced page, and Tools is a row of the Agent page.
  • New defaults: conversation titles are generated with the LLM, and the system message is hidden in conversations.
  • The API key field shows only when a key is stored or typed, or the server answered 401 or 403 (isApiKeyFieldShown()). The server is not probed.
  • "Settings > Tools" hints now say "Settings > Agent". A plain chat (ui: make Llama Chat a plain chat unless llama-server offers agent features ggml-org/llama.cpp#32949) has no Agent section.
Testing
  • npm run check, ESLint, Prettier, vitest --project=unit and --project=client pass.
  • New unit tests cover section order, grouping, advanced-after-basic ordering and the API key rule. Storybook has a story per settings section.
  • The demos below run against a router llama-server with tools on, on a desktop and in a 390x844 touch viewport.
Demo script
// Demos for the settings regroup: the desktop dialog, then the phone sheet.

test.describe('desktop', () => {
	test('Settings in six sections', async ({ demo, page }) => {
		const expand = page
			.getByRole('button', { name: 'Expand navigation' })
			.filter({ visible: true });
		const dialog = page.getByRole('dialog');
		const settings = page
			.getByRole('button', { name: /^Settings(\s|$)/ })
			.filter({ visible: true })
			.first();

		if (await expand.count()) await demo.click(expand.first(), 700);

		await demo.click(settings, 900);
		await demo.caption('Six sections, each with titled groups of settings');

		for (const name of ['Chat', 'Model', 'Agent', 'Voice', 'Data', 'General']) {
			await demo.click(dialog.getByRole('button', { exact: true, name }), 1000);
		}

		await demo.click(dialog.getByRole('button', { exact: true, name: 'Model' }), 700);
		await demo.caption('What few people need waits in a collapsed Advanced block');
		await demo.scroll(dialog.getByRole('heading', { name: 'System message' }), 900, 600);
		await demo.click(dialog.getByRole('button', { name: 'Advanced settings' }), 900);
		await demo.scroll(dialog.getByRole('button', { name: 'Advanced settings' }), 700, 900);

		await page.keyboard.press('Escape');
		await demo.pause(800);
	});
});

test.describe('phone', () => {
	test.use({
		colorScheme: 'dark',
		hasTouch: true,
		isMobile: true,
		viewport: { height: 844, width: 390 }
	});

	test('Six sections, with Advanced pages, on a phone', async ({ demo, page }) => {
		const drawer = page.locator('[data-slot=drawer-content]');
		const menu = page
			.locator('xpath=//button[@aria-label="Expand navigation"][not(ancestor::aside)]')
			.filter({ visible: true });

		if (await menu.count()) await demo.tap(menu.first(), 900);

		await demo.tap(page.getByRole('button', { exact: true, name: 'Settings' }).first(), 1200);
		await demo.caption('The same six sections, as rows of the settings sheet');
		await demo.pause(1000);
		await demo.tap(drawer.getByRole('button', { name: 'Model' }), 900);
		await demo.caption('Titled groups of rows');
		await demo.scroll(drawer.getByText('Sampling', { exact: true }).first(), 500, 600);
		await demo.tap(drawer.getByRole('button', { name: 'Advanced' }), 1000);
		await demo.caption('What few people need is an Advanced page');
		await demo.scroll(drawer.getByRole('heading', { name: 'Penalties' }), 300, 600);
		await demo.tap(drawer.getByRole('button', { name: 'Back' }), 700);
		await demo.tap(drawer.getByRole('button', { name: 'Back' }), 700);
		await demo.tap(drawer.getByRole('button', { name: 'Agent' }), 900);
		await demo.caption('Agent holds the tools and MCP');
		await demo.pause(1400);
		await demo.tap(drawer.getByRole('button', { name: 'Back' }), 700);
		await demo.tap(drawer.getByRole('button', { name: 'Data' }), 1000);
		await demo.caption('Data: import, export, reload and reset');
		await demo.pause(1400);
	});
});

Requirements

@allozaur
allozaur added this pull request to stack #120 November 24, 2026 09:54
@allozaur
allozaur removed this pull request from stack #120 November 24, 2026 09:59
@allozaur
allozaur added this pull request to stack #121 November 24, 2026 10:00
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch 2 times, most recently from 06683f2 to 7ce9b95 Compare November 24, 2026 10:11
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch from 7ce9b95 to cd38f93 Compare November 24, 2026 10:42
@allozaur
allozaur removed this pull request from stack #121 November 24, 2026 12:08
@allozaur
allozaur added this pull request to stack #123 November 24, 2026 12:09
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch from cd38f93 to 1395f30 Compare November 24, 2026 12:17
@allozaur
allozaur removed this pull request from stack #123 November 24, 2026 12:34
@allozaur
allozaur added this pull request to stack #124 November 24, 2026 12:34
@allozaur allozaur changed the title ui: regroup settings into six sections with subgroups and advanced blocks ui: regroup settings into six sections, with MCP enabled and managed there Nov 24, 2026
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch from e1bdc28 to 50ecd4a Compare November 24, 2026 14:28
@allozaur
allozaur removed this pull request from stack #124 November 24, 2026 14:35
@allozaur
allozaur added this pull request to stack #128 November 24, 2026 14:35
@allozaur allozaur changed the title ui: regroup settings into six sections, with MCP enabled and managed there ui: regroup settings, manage MCP there, and use native sheets on phones Nov 24, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation testing Vulkan ggml CUDA labels Nov 24, 2026
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch 2 times, most recently from 17f73a9 to bc58c76 Compare November 25, 2026 12:08
@allozaur
allozaur removed this pull request from stack #128 November 25, 2026 12:10
@allozaur
allozaur changed the base branch from master to allozaur/feat/ui-phone-sheets November 25, 2026 12:10
@allozaur
allozaur added this pull request to stack #132 November 25, 2026 12:10
@allozaur allozaur changed the title ui: regroup settings, manage MCP there, and use native sheets on phones ui: regroup settings into six topic sections with Advanced blocks Nov 25, 2026
@allozaur
allozaur force-pushed the allozaur/refactor/ui-settings-simplification branch from bc58c76 to d8eaaa2 Compare November 25, 2026 12:31
am17an and others added 23 commits November 26, 2026 11:44
…#33080)

Prism Bonsai models (prism.hadamard) aborted in the meta backend with
GGML_ASSERT(split_state.ne[j] % div == 0) when loaded with -sm tensor:
the ssm_out input permutation from tiled to grouped GDN head order
reshapes the head-split activation to [hd, n_k, n_rep] and the split
lands on n_rep (3 for 2 devices). Past that, the explicit sign vectors
are mirrored while their inputs are split, and the 1024-wide rotation
blocks would straddle the device slices of ffn_down (17408 = 17 blocks).

Fail at load with a clear message instead.

Assisted-by: Claude Opus 5.5
…l-org#32533)

* ggml : support a BF16 src1 in MUL_MAT and MUL_MAT_ID (CPU, CUDA)

* ggml : fix MMVF expert offset overflow and tighten BF16 src1 gates

* ggml : strided BF16 src1 tests, explicit MUSA Q2_K rule, MMVF offset fix moved to its own PR

* cuda : move the MUL_MAT_ID MMVF rule into ggml_cuda_should_use_mmvf

* cuda : read a BF16 src1 in MMVF through a template parameter, for BF16 and FP8 weights only

* cuda : MMVF src1 pairs via ggml_cuda_cast, rename type to type_src0
uiStore.isMcpEnabled and mcpStore.isFeatureEnabled read the same setting. The MCP store's getter stays, and the two callers of the UI store's use it.

Assisted-by: Claude (Opus 5.5 Medium)
Move the fusion matchers, ggml_cuda_can_fuse, ggml_cuda_try_fuse and the
fusion alloc deps of graph_optimize into fusion.cu, unchanged.
fusion.cuh exports ggml_cuda_try_fuse and ggml_cuda_fusion_add_alloc_deps.
The GGML_CUDA_DISABLE_FUSION check is done by the two callers, and
ggml_cuda_is_view_or_noop moves to common.cuh since the compute loop
also uses it.
* move vulkan-nvidia runners to dgx spark

* --sudo
…#33104)

* tests : take the test-fusion moe flag from the fixture name

The moe flag came from the arch name, so the dense and MoE fixtures
of an arch shared a baseline key, and MoE-only archs were keyed as
dense. Read it from the -dense/-moe suffix written by
test-llama-archs and regenerate the Metal baseline. Only the moe
column changes, no count moves.

* Apply suggestion from ggerganov

Co-authored-by: Georgi Gerganov <[email protected]>

---------

Co-authored-by: Georgi Gerganov <[email protected]>
* support inkling2 DFlash2

* address review comments

Assisted-by: Claude Opus 5.5
Co-authored-by: Nikita Belokopytov <[email protected]>

---------

Co-authored-by: Nikita Belokopytov <[email protected]>
…g#32365)

* ci: check for occupancy regressions vs master in HIP quality check

Add scripts/hip/gcn-cdna-occupancy-check.py, which compares per-kernel
occupancy between two GGML_HIP_EXPORT_METRICS build logs and fails when
a kernel drops occupancy. Wire it into the HIP quality check workflow:
the baseline (master) is built with the same target and flags, then
compared against the PR build.

Assisted-by: Hermes Agent

* ci: reuse spill-check build and cache master baseline for occupancy check

The PR-side metrics.log is shared with the VGPR spill check, so the
occupancy comparison adds no extra PR build. The master baseline metrics
log is cached by master-push runs and restored on PRs; it is only
rebuilt as a fallback when the master tip has no cached baseline.

* ci: report occupancy and spill changes as a markdown artifact

Extend gcn-cdna-occupancy-check.py to also compare per-kernel VGPR and
SGPR spills, and add a --report option that writes a markdown report
with all regressions and improvements. The workflow uploads the report
as an artifact on PRs, even when the check fails.

* ci: split metrics check and markdown report into separate scripts

gcn-cdna-metrics-check.py compares per-kernel occupancy and spills and
can dump all deltas as TSV; gcn-cdna-metrics-report.py generates the
markdown report from that dump. The workflow runs both on PRs and
uploads the report as an artifact.

* ci: consolidate HIP kernel metrics checks using Clang YAML remarks

Merge VGPR threshold, occupancy/spill comparison, and Markdown reporting
into one script with unchanged checking rules and output formats. Parse
per-kernel optimization records instead of interleaved text diagnostics.
Add unit tests and update the CI baseline cache to contain YAML records.

* ci: preserve comparison kernel selection and fix Python indentation

Count only kernels with occupancy or spill remarks, as before the YAML
migration. Add a regression test for VGPR-only records and fix flake8.

* ci: fix Python type checking for HIP metrics scripts

Cast metric entries to lists before appending and check the dynamic
module spec and loader are available before executing the tests.
Preserve existing checks and reports.

* ci: add blocking and warning HIP kernel regression rules

Preserve the VGPR limit and its exemptions, block spill increases and
occupancy drops with increasing VGPRs, and warn on occupancy-only drops.
Collect all findings and generate the report before failing CI.

Request device optimization records explicitly and bypass ccache during
metrics builds; print YAML diagnostics to investigate missing kernel
resource remarks in ROCm 7.2.1.

* ci: preserve device-only HIP optimization records

Do not enable host remarks: Clang writes host and device optimization
records to the same output path. Filter the device records to kernel
resource usage and validate the compiler output before expensive builds.
Invalidate old baseline caches and avoid reporting a missing TSV.

* ci: include HIP runtime in metrics probe

Assisted-by: ChatGPT

* ci: build only ggml-hip for kernel metrics and propagate build errors

Assisted-by: ChatGPT

* ci: match HIP baseline to merge commit and publish job summary

Assisted-by: ChatGPT

* ci: trust the HIP CI checkout directory before resolving baseline

Assisted-by: ChatGPT

* ci: cache HIP baseline metrics in HF buckets

Assisted-by: ChatGPT

* ci: publish HIP metrics report to logs and job summary

Assisted-by: ChatGPT

* Ci: hip auto clean every 30 days

Assisted-by: ChatGPT

* Update .github/workflows/hip-quality-check.yml

Co-authored-by: Sigbjørn Skjæret <[email protected]>

* ci: fix conflits and rebase

Assisted-by: ChatGPT

---------

Co-authored-by: Sigbjørn Skjæret <[email protected]>
Running test-llama-archs with an RPC device is quite useful as an
integration test for the RPC backend. Here is a sample run with the
Vulkan backend:

ggml-rpc-server -d Vulkan1
test-llama-archs --rpc 127.0.0.1:50052 -b RPC0
26.05 is the last release to support x86_64-darwin and support for this
platform was dropped in 26.11.
…lip and situ chains (ggml-org#33060)

* model : inkling2 order the conv ops so backends can fuse them

* CUDA: fuse the Inkling 2 short conv, depth mix, loop controller, L2 clip and situ chains
…ma brand (ggml-org#33125)

* ui: render demo videos in a window on a brand ground

A demo video is now rendered from the recorded frames: the app in a rounded window on a Llama brand ground, camera zooms with motion blur, captions under the window, and an optional logo card. DEMO_POLISH=0 gives the plain screencast as before.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: let demos mock llama-server and record Storybook stories

Assisted-by: Claude (Opus 5.5 Medium)

* ui: check chat search end to end against a mocked llama-server

Assisted-by: Claude (Opus 5.5 Medium)

* ui: add a skill to demo, test and document Llama Chat and Llama UI changes

Assisted-by: Claude (Opus 5.5 Medium)

* ui: describe the demo render in the README and the ui-demo skill

Assisted-by: Claude (Opus 5.5 Medium)

* ui: zoom the whole stage in demo videos, show taps on touch demos

The camera now moves over the stage, so the window comes closer with its corners and the ground round it. The render runs in a Chromium of its own at 1x. A touch device shows a fingertip tap in place of the cursor.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: make the demo camera moves shorter and snappier

Assisted-by: Claude (Opus 5.5 Medium)

* ui: fix tiled shadows when the demo camera zooms in

Each copy of the window is now laid out where the camera puts it instead of scaled with a transform: Chromium cut the scaled shadow into tiles, which left light rectangles round a zoomed window. The motion blur now spans half a frame, like a 180 degree shutter.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: draw the zoomed demo window on one canvas

The motion blur copies are drawn on one stage canvas, with the squircle corners and the shadow in 2D, instead of as one layer each: twelve large layers overran Chromium's tile memory while the camera moved, and the dropped tiles showed as light blocks round the window.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: leave phone demos unzoomed in the ui-demo skill and README

Assisted-by: Claude (Opus 5.5 Medium)

* ui: show each demo video beside its description in the PR

A test's description annotation is written to the video manifest; when the tests have one, the Demo section puts one video to a row with its title and description.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: move the demo harness to ui/lib/demo

The recorder, the render, the Demo driver, storage and the pr and docs commands are now @ggml-org/llama-demo in ui/lib/demo, for any app in the suite. It imports only Playwright's types: the app passes in its page, so it runs from source with nothing installed. Llama Chat keeps its fixtures, servers and traces command in its demo folder.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: harden the demo render and the pr command

The render cleans up after a failure and removes the part-written mp4. A page the render cannot frame records plainly instead of losing its captions, demos fail early outside Chromium, and the render's extra time is added after the demo, so a test.setTimeout() in it cannot take it away. demo:pr finds the app in the worktree from git's own prefix, a description's line breaks stay inside its table cell, zoomIn scrolls its target into view, and a quick second tap keeps its fingertip.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: teach the ui-demo skill to shape, check and publish a demo

Assisted-by: Claude (Opus 5.5 Medium)

* ui: import the demo harness as @ggml-org/llama-demo

Llama Chat adds ui/lib/demo as a local file: dependency, which npm links, and imports it by name instead of by relative path. Nothing is published; npm ci leaves a link that only the demo commands follow.

Assisted-by: Claude (Opus 5.5 Medium)
…#33120)

* ui: show NVFP4 quants in the 4-bit row of Discover Models details

The quant regexes only knew MXFP, so NVFP4 files had no quant token,
landed in "Other" and showed their whole filename on the chip.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: show a model's details inside the search dialog

Picking a Hugging Face model in Search now keeps the dialog open and
shows the Discover details pane under the search input, below the picked
row, instead of opening the full Discover dialog. Esc, typing or picking
the row again goes back to the results.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: keep the search dialog one size, match the model details skeleton

The search dialog no longer grows when a model's details open in it. The
details skeleton follows the loaded layout: row heights, chip widths that
wrap where the real ones do, a readme title, and no leftover block under
the quant rows.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: leaner model details in the search dialog

The details shown in Search drop the "View on Hugging Face" button and
the description, through a `compact` prop on the details pane, and the
search dialog is a step wider so the metadata chips fit on one line.

Assisted-by: Claude (Opus 5.5 Medium)
…org#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)
…org#33145)

The app's demo helpers import @ggml-org/llama-demo, a link to ui/lib/demo,
and svelte-check resolves the harness sources' imports (@playwright/test
among them) from ui/lib/demo/node_modules. The Checks job installed only
the app, so its type check failed on the harness since it moved there.

Assisted-by: Claude (Opus 5.5 Medium)
* tests: relax Qwen3 DSpark acceptance length floor

* relax threshold for all spec decs

---------

Co-authored-by: ruixiang63 <[email protected]>
…collapsed Advanced blocks

Settings sections are now General, Chat, Model, Agent, Voice and Data. Each field has a titled group within its section, and settings few people need are in a collapsed Advanced block at the end of their section: on a phone, an Advanced page. Tools and MCP live under Agent, import, export, reload and reset under Data. Storage keys do not change.

Conversation titles are now generated with the LLM by default, and the system message is hidden in conversations by default. The API key field shows only when a key is stored or the server asks for one.

Assisted-by: Claude (Opus 5.5 Medium)

This branch has not been deployed

No deployments
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.