llama.cpp/ui/apps/chat/tests/client
Aleksander Grygier e8d7128fea
ui: type /cwd and other slash commands anywhere in the chat input (#33070)
* ui: type the working directory on a /cwd line in the chat input

On a desktop, choosing the working directory from the + menu or the chip
puts `/cwd <path>` above the message being written, with the caret after
the path, instead of opening a separate search field. The suggestions
follow what is typed there, Enter picks only from them, and closing the
picker gives the message back as it was.

The chat form's pickers float above the line being written, also in the
collapsed form, and fit their suggestions between a min and a max width.
A directory under home always shows from `~/`.

Assisted-by: Claude (Opus 5.5 Medium)

* ui: find working directories by a partial name, allowing for a typo

A plain name on the /cwd line is now looked up anywhere under home, not
only among its direct children, with the nearest folders listed first.
A search that finds nothing is retried allowing for one wrong, missing,
extra or swapped character.

Assisted-by: Claude (Fable 5.2)

* ui: keep the path pickers at one width and list hidden folders last

The @ mention and /cwd pickers no longer resize with their results, and
folders that are hidden or sit inside a hidden folder rank below regular
ones unless the query itself starts with a dot.

Assisted-by: Claude (Fable 5.2)

* ui: list a relative path's own folder before its deeper namesakes

A query with a path in it (ui/lib/voi) was matched only below some other
folder, never at the top of the scope, so hidden copies were the only
results. The path is now also followed from the scope itself and listed
first.

Assisted-by: Claude (Fable 5.2)

* ui: fix the folder pickers' review findings

- Read a backslash as a path separator under a Windows home or working
  directory, in the /cwd and @ pickers.
- Leave Enter to an IME composition, and to the message when the caret is
  below the /cwd line.
- Close the /cwd line before sending, so it is not sent as text.
- Keep the highlighted folder when the deeper results arrive, and do not
  leave the deep search's failure unhandled.
- Walk the typo search nearest depth first and stop once it finds something.
- Surface the deep search's error when a relative path finds nothing.

Assisted-by: Claude (Fable 5.2)

* ui: highlight the first suggestion of every new round in the pickers

A list that renders under a resting pointer no longer counts as a hover, and the
folder picker starts each round of results on its first folder.

Assisted-by: Claude (Fable 5.2)

* ui: keep the new chat's form in place as chips appear under it

Assisted-by: Claude (Fable 5.2)

* ui: drop the command picker's icons and shorten /compact's description

Assisted-by: Claude (Fable 5.2)

* ui: always edit the system message in the chat form, without a model selector

The + menu turns the form into the system message editor whether or not the
conversation shows its system message, and the editor offers no model selector.

Assisted-by: Claude (Fable 5.2)

* ui: add /system-message and keep the form's size in system message mode

The command turns the chat form into the system message editor. The editor's
dashed edge is an inset outline in place of the card's own edge, so the card
keeps its size.

Assisted-by: Claude (Fable 5.2)

* ui: find a rooted path's name further down, and retry a failed home lookup

`@~/llama.cpp` and `/cwd ~/llama.cpp` list `~/git/llama.cpp` when home itself
holds no such name. A failed lookup of the server's home directory is no longer
kept for the session, so the working directory can show from `~/` once it works.

Assisted-by: Claude (Fable 5.2)

* ui: type slash commands anywhere in the message

A command is found at the caret, after other words or on another line, not only
at the start of the input. Picking one takes just the command out and leaves the
words around it, and /cwd stays where it was typed (the + menu writes it at the
caret), so the path no longer jumps to a line of its own above the message.

Assisted-by: Claude (Opus 5.5)

* ui: keep the words after an argless command, and track /cwd by its edits

- only /prompt and /cwd read the words after them: Enter after
  `use /m the small one` no longer picks /model and deletes the sentence
- the open /cwd picker follows its own command after an edit, never
  another /cwd the message names, and closes when its command is deleted
- a blocked send leaves the /cwd command and its picker alone
- callers of the server home share one request
- a typo-tolerant folder search whose every glob fails shows the error
- hidden folders sort last behind backslash separators too

Assisted-by: Claude (Opus 5.5 Medium)
2026-11-26 21:25:36 +01:00
..
components ui: type /cwd and other slash commands anywhere in the chat input (#33070) 2026-11-26 21:25:36 +01:00
agentic-stream.perf.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
apikey-splash.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
assistant-response.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
cap-img-size.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-form-enter.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-form-escape.svelte.test.ts ui: stop the streaming reply with Escape (#33051) 2026-11-25 20:02:31 +01:00
chat-form-expansion.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-form-input.svelte.test.ts ui: turn the live markdown preview off by default (#32469) 2026-11-17 16:17:46 +01:00
chat-form-mention-picker-gate.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-form-model-availability.svelte.test.ts ui: let the chat form's model selection decide the submit state (#32920) 2026-11-24 09:25:04 +01:00
chat-form-pickers-touch.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-form-single-row.svelte.test.ts ui: fix for a chat form update loop with large fonts and long model names (otherwise web interface gets Error 500) (#33037) 2026-11-25 15:43:01 +01:00
chat-form-slash-commands.svelte.test.ts ui: type /cwd and other slash commands anywhere in the chat input (#33070) 2026-11-26 21:25:36 +01:00
chat-form-voice.svelte.test.ts ui: stop the streaming reply with Escape (#33051) 2026-11-25 20:02:31 +01:00
chat-screen-form-single-row-setting.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
chat-tabs-store.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
collapsible-lazy-body.svelte.test.ts ui: smooth height transition for every collapsible (#32873) 2026-11-23 14:12:41 +01:00
context-panel.svelte.test.ts ui: open the context gauge panel on click as a popover (#32685) 2026-11-21 13:21:47 +01:00
conversation-import-db.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
conversation-row-hold-mobile.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
conversation-search.service.svelte.test.ts ui: search message content and Discover models from the search dialog (#32670) 2026-11-20 16:20:00 +01:00
dialog-focus-mobile.svelte.test.ts ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
exec-shell-command-streaming.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
groups-db.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
haptics.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
highlight-theme.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
keyboard-inset.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
loop-timer.svelte.test.ts ui: time each tool group by its own loop and show the task time in the reply stats (#33030) 2026-11-25 13:16:19 +01:00
markdown-content-sanitize.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
markdown-editor-margins.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
markdown-editor.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
mcp-display-name.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
mcp-enable-setting.svelte.test.ts ui: open settings, the + menu and the model picker as sheets on phones, and manage MCP from settings (#33036) 2026-11-25 22:39:55 +01:00
mcp-icon-proxy-url.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
mcp-server-form.svelte.test.ts ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
media-gallery.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
microphone-unavailable.svelte.test.ts ui: voice messages and dictation with live waveforms and transcripts (#32531) 2026-11-20 16:34:52 +01:00
model-avatar-orgs.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-download-flows.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-manager-rows.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-manager-sort-filter.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-manager-utils.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-selector-hidden.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-selector-mobile.svelte.test.ts ui: open settings, the + menu and the model picker as sheets on phones, and manage MCP from settings (#33036) 2026-11-25 22:39:55 +01:00
models-selector-sections.svelte.test.ts ui: open settings, the + menu and the model picker as sheets on phones, and manage MCP from settings (#33036) 2026-11-25 22:39:55 +01:00
models-sheet-dictation.svelte.test.ts ui: fix the phone model sheet's search field and reasoning row (#33144) 2026-11-26 19:58:57 +01:00
models-sidecar-badges.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
models-voice-role.svelte.test.ts ui: voice messages and dictation with live waveforms and transcripts (#32531) 2026-11-20 16:34:52 +01:00
nested-surfaces.svelte.test.ts ui: open settings, the + menu and the model picker as sheets on phones, and manage MCP from settings (#33036) 2026-11-25 22:39:55 +01:00
page.svelte.test.ts ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
pdf-processing.svelte.test.ts DPI setting for PDF as Images - Inkling-2-Mini-BF16's work (#33061) 2026-11-26 14:57:50 +01:00
permission-request-command.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
picker-list-scroll.svelte.test.ts ui: move the web UI to ui/apps/chat and call it Llama Chat (#32032) 2026-11-16 17:23:36 +01:00
README-perf.md ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
reasoning-block-viewport.svelte.test.ts ui : keep streaming reasoning box inside the viewport when zoomed (#31966) 2026-11-18 22:56:47 +01:00
reasoning-control-mobile.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
sandbox.service.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
search-chats-default-disabled-migration.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
search-chats.service.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
settings-model-org-name-key-migration.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
settings-registry-invariants.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
settings-render-keys-migration.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
settings-tools-policy.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
sidebar-hidden-clicks.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
stick-to-bottom-affordance.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
stick-to-bottom.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
task-time-statistics.svelte.test.ts ui: time each tool group by its own loop and show the task time in the reply stats (#33030) 2026-11-25 13:16:19 +01:00
tool-call-block-streamed-body.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
tool-call-in-progress.svelte.test.ts ui: show an agentic reply as a grouped Agent Trace (#32879) 2026-11-23 17:24:05 +01:00
type-to-focus.svelte.test.ts ui : focus the chat form when typing with nothing focused (#32570) 2026-11-20 14:01:50 +01:00
ui-settings-sync.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
update-message-in-place.svelte.test.ts ui: move Llama Chat to SvelteKit 3 and its built-in service worker (#32463) 2026-11-17 11:43:36 +01:00
voice-capture.svelte.test.ts ui: voice messages and dictation with live waveforms and transcripts (#32531) 2026-11-20 16:34:52 +01:00
voice-service.svelte.test.ts ui: voice messages and dictation with live waveforms and transcripts (#32531) 2026-11-20 16:34:52 +01:00
voice-waveform.svelte.test.ts ui: voice messages and dictation with live waveforms and transcripts (#32531) 2026-11-20 16:34:52 +01:00