koboldcpp/tools/server/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
..
test_basic.py server: remove all internal mentions about "webui" (#24817) 2026-06-19 22:12:46 +02:00
test_chat_completion.py server: add "verbose" field to schema (#24864) 2026-06-21 13:03:14 +02:00
test_compat_anthropic.py server : fix image blocks in tool_result being dropped during Anthropic OpenAI conversion (#22536) 2026-07-12 17:43:51 +02:00
test_compat_gcp.py server: support Vertex AI compatible API (#22545) 2026-05-08 15:23:04 +02:00
test_compat_oai_responses.py server : add timings and progress to /responses API stream (#25348) 2026-07-07 16:13:03 +02:00
test_completion.py server : add missing task parameters(adaptive_target, adaptive_decay) in generation_settings (#25830) 2026-07-25 20:53:08 +02:00
test_ctx_shift.py memory : remove KV cache size padding (#16812) 2025-10-28 20:19:44 +02:00
test_embedding.py llama : fix pooling assertion crash in chunked GDN detection path (#20468) 2026-03-13 20:53:42 +02:00
test_ignore_eos.py server: respect the ignore eos flag (#21203) 2026-04-08 17:12:15 +02:00
test_infill.py server : support unified cache across slots (#16736) 2025-11-02 18:14:04 +02:00
test_kv_keep_only_active.py server: rename debug tags to match --cache-idle-slots naming (#22292) 2026-04-24 09:28:44 +03:00
test_lora.py server : disable context shift by default (#15416) 2025-08-19 16:46:37 +03:00
test_mcp_servers.py server: support MCP stdio (#26062) 2026-07-26 01:08:49 +02:00
test_proxy.py server: use status code 403 for disabled features (#24970) 2026-06-25 16:36:40 +02:00
test_rerank.py server / ranking : add sorting and management of top_n (#16403) 2025-10-11 16:39:04 +03:00
test_router.py server: fix deadlock in load_models() when erasing a finished download (#25358) 2026-07-06 19:26:06 +02:00
test_security.py server: add --cors-* options (#25655) 2026-07-14 17:23:44 +02:00
test_sleep.py server: add auto-sleep after N seconds of idle (#18228) 2025-12-21 02:24:42 +01:00
test_slot_save.py server : allow text-only slot save/restore with mtmd (#25076) 2026-07-16 15:26:44 +03:00
test_speculative.py Fix crash with draft-simple (#25720) 2026-07-15 19:51:34 +05:30
test_stream.py server + ui: fix stream routes for model names containing a slash (#26137) 2026-07-27 07:34:47 +02:00
test_template.py tests : use reasoning instead of reasoning_budget in server tests (#20432) 2026-03-12 13:41:01 +01:00
test_tokenize.py server : disable context shift by default (#15416) 2025-08-19 16:46:37 +03:00
test_tool_call.py common/autoparser: fixes for newline handling / forced tool calls (#22654) 2026-05-04 13:18:11 +02:00
test_tools_builtin.py ui: CWD for agent (#26518) 2026-08-04 19:05:48 +02:00
test_vision_api.py mtmd, server: add "placeholder bitmap" for counting tokens , add */input_tokens API (#23913) 2026-06-06 11:06:51 +02:00