koboldcpp/tools/ui/tests/unit
Aleksander Grygier 2f56fc3431
ui: CWD for agent (#26518)
* server : extend file_glob_search for UI pickers

* ui : add per-conversation working directory with picker

* ui : add path navigation and search scope to cwd picker

Treat path-like queries (starting with / or ~) as directory navigation
instead of glob-matching the whole query: search the parent for the last
segment, and descend into an exactly-typed directory by listing its
children. Show the effective search scope in the footer and auto-search
on open so the current directory and its siblings appear immediately.

Assisted-by: Claude

* db : persist per-call tool cwd on tool result messages

* ui : abbreviate tool paths under home with a tilde

* ui : show the per-call cwd on exec shell rows

* ui : clarify the synthetic cwd message for the model

* ui : reuse the trailing cwd row on a repeated pick

* ui : don't jump when a cwd row is injected mid-chat

* chore: Formatting

* refactor: Cleanup comments

* ui : unify working directory naming and add a synthetic-message flag

* ui : render synthetic cwd rows without a scroll jump

* ui : decouple the working directory picker into utils and sub-components

* ui : add get_info tool call block

* chore: Formatting

* refactor: Cleanup

* refactor: Cleanup

* refactor: Cleanup

* fix: UI

* server : harden file_glob_search listing (kind enum, timeout, symlink guard, absolute base)

* ui : use persisted isSynthetic flag for cwd rows, drop legacy formats

* ui : cache picker search, fail visibly on native resolve

* ui : escape glob metacharacters in picker search glob

* ui : simplify auto-scroll pin

* chore: Format

* fix: Use `SvelteMap`

* refactor: Post-review fixes

* ui: accept Windows roots in the working directory picker

recognize a drive root (C:) and a UNC share (//host/share) as path
navigation, alongside the POSIX root and ~, so a query like D:\repos
lists that directory instead of glob-matching it under the home dir

split below the root, so a bare drive resolves to its root rather than
to a drive-relative prefix

rewrite backslashes into forward slashes only when the query carries a
Windows root, since a backslash is a legal POSIX filename character

paths keep travelling with forward slashes, which is what the server
returns and what Windows accepts

---------

Co-authored-by: Pascal <admin@serveurperso.com>
2026-08-04 19:05:48 +02:00
..
abort.test.ts server + ui: SSE Replay Buffer (#23226) 2026-06-26 09:31:29 +02:00
agentic-hotpath.bench.ts ui: reduce per-token render cost when streaming (#26053) 2026-07-24 22:09:46 +02:00
agentic-sections.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
agentic-strip.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
assistant-raw-output.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
classify-tool-result.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
clipboard.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
code.test.ts ui: reduce per-token render cost when streaming (#26053) 2026-07-24 22:09:46 +02:00
compute-line-diff.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
continue-intent.test.ts ui: fix stop/continue during an agentic loop (#23356) 2026-05-25 14:18:59 +02:00
conversation-import.test.ts ui: detect the conversation import format from file contents (#26121) 2026-07-26 23:32:58 +02:00
favicon-colorize.test.ts ui: New Logo + Navigation cleanup & Mobile UI/UX improvements (#24897) 2026-06-24 10:21:33 +02:00
headers.test.ts ui: Add MCP Servers Opt-In for first time visitors (#25239) 2026-07-03 12:16:29 +02:00
jpeg-orientation.test.ts UI/jpeg exif orientation (#24196) 2026-06-12 10:20:27 +02:00
latex-protection.test.ts ui: reduce per-token render cost when streaming (#26053) 2026-07-24 22:09:46 +02:00
mcp-default-overrides-merge.test.ts ui: Remove recommended MCP Servers + improve MCP Servers Settings UI/UX (#25535) 2026-07-13 08:45:04 +02:00
mcp-override-fallback.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
mcp-servers-default.test.ts ui: Remove recommended MCP Servers + improve MCP Servers Settings UI/UX (#25535) 2026-07-13 08:45:04 +02:00
mcp-service.test.ts ui: fake 200 for proxy DELETE req (#25298) 2026-07-06 08:41:39 +02:00
model-id-parser.test.ts webui: parse effective-parameter sizes (E2B, E4B) as params (#25529) 2026-07-14 17:12:22 +02:00
model-names.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
parse-exec-shell-status.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
parse-mcp-server-settings.test.ts ui: fix mcp panel for toggle + timeout + proxy + ON/OFF state (#25631) 2026-07-14 16:50:44 +02:00
parse-toolcalls-memo.test.ts ui: rendering performance follow-up (#26097) 2026-07-28 17:13:25 +02:00
partial-tool-call-cleanup.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
pwa.spec.ts server: remove loading.html (#25500) 2026-07-10 14:42:17 +02:00
reasoning-context.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
redact.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
request-helpers.test.ts ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
sanitize-headers.test.ts server: avoid forwarding auth headers in CORS proxy (#24373) 2026-06-20 15:34:47 +02:00
search-results-fixture.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
search-results.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
sse.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
stream-discovery.test.ts server + ui: SSE Replay Buffer (#23226) 2026-06-26 09:31:29 +02:00
stream-resume.test.ts server + ui: SSE Replay Buffer (#23226) 2026-06-26 09:31:29 +02:00
tool-call-meta.test.ts ui: Agentic Content UX improvements (#25450) 2026-07-15 20:31:45 +02:00
tool-calls.test.ts ui: CWD for agent (#26518) 2026-08-04 19:05:48 +02:00
uri-template.test.ts ui: Fix handling of MCP resource template parameters (#23117) 2026-05-16 13:25:41 +02:00
working-directory.test.ts ui: CWD for agent (#26518) 2026-08-04 19:05:48 +02:00