Skip to content

ui: move get_datetime tool to frontend - #27255

Merged
allozaur merged 4 commits into
masterfrom
xsn/ui_get_datetime
Aug 17, 2026
Merged

allozaur merged 4 commits into
masterfrom
xsn/ui_get_datetime

Conversation

@ngxson

@ngxson ngxson commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Overview

Keep the array of server tool minimal and i/o only

image

Requirements

@github-actions github-actions Bot added documentation Improvements or additions to documentation server server/ui labels Aug 17, 2026
@ngxson
ngxson marked this pull request as ready for review August 17, 2026 10:57
@ngxson
ngxson requested review from a team as code owners August 17, 2026 10:57
@ServeurpersoCom

Copy link
Copy Markdown
Contributor

frontendTools pushes get_datetime unconditionally, unlike sandbox, memory and read_media which are all gated. getConfig() derives hasTools from frontendTools.length, so the agentic flow now starts on a plain server with no --tools, no MCP and the sandbox off, and every request carries a tools section it did not carry before. Worth gating it, or leaving it out of the hasTools check.

Two smaller things: the persisted key moves from builtin:get_datetime to frontend:get_datetime, so users who disabled the tool get it back enabled, and --tools read_file,get_datetime in an existing config now fails to start since setup() rejects unknown names.

@ServeurpersoCom

Copy link
Copy Markdown
Contributor

I'm testing this PR on top of the one that was merged, since I didn't have time to review the other one

strftime() and gmtime_r() were the only users, both went away with the
get_datetime tool. Also make the renderer's catch inert: the browser
executor always emits JSON, so a non-JSON result is no longer a date to
display.
@ServeurpersoCom

Copy link
Copy Markdown
Contributor

LGTM, there was just one tiny unused code nit

@allozaur
allozaur merged commit 666f889 into master Aug 17, 2026
23 of 30 checks passed
gabe-l-hart added a commit to gabe-l-hart/llama.cpp that referenced this pull request Aug 17, 2026
* origin/master: (86 commits)
ui: enforce alphabetical enum member ordering (ggml-org#27272)
ui: Refactor Built-In Tools naming (Server/Browser) (ggml-org#27271)
ci: more optimizations (ggml-org#26983)
doc: document MCP stdio servers and CORS defaults in the server README [no release] [no ci] (ggml-org#26847)
server: save processed mtmd chunks as placeholder (ggml-org#27278)
mtmd: use sha256 for input hashing (ggml-org#27274)
vocab : support integer tokenizer scores (ggml-org#27260)
mtmd : skip thumbnail for non-tiled LFM2 images (ggml-org#27246)
cuda : skip UMA override for HIP builds (ggml-org#27083)
vendor: move hash to vendor (ggml-org#27262)
ci : push release tag explicitly in release.yml (ggml-org#27261)
ui: move get_datetime tool to frontend (ggml-org#27255)
ci : reduce builds in build-xcframework.sh (ggml-org#27252)
model: support speculators-format checkpoints for DSpark (ggml-org#26275)
ui: add browser get_info tool (ggml-org#27251)
ci : restore release.yml check during make-release.yml (ggml-org#27247)
mtmd: harden preprocessor_granite (ggml-org#27235)
ci : allow make-release to target a specific commit (ggml-org#27234)
ci : make release workflows use a deploy key (ggml-org#27229)
convert: add @ModelBase.example (ggml-org#27208)
...
brittlewis12 pushed a commit to brittlewis12/llama.cpp that referenced this pull request Aug 17, 2026
* ui: move get_datetime tool to frontend

* clarify docs

* server: drop the now unused ctime include

strftime() and gmtime_r() were the only users, both went away with the
get_datetime tool. Also make the renderer's catch inert: the browser
executor always emits JSON, so a non-JSON result is no longer a date to
display.

---------

Co-authored-by: Pascal <[email protected]>
helix-white added a commit to Start9Labs/llama-cpp-startos that referenced this pull request Aug 22, 2026
Pins ghcr.io/ggml-org/llama.cpp server images to b10573 for all four
variants. Upstream publishes server images for only a small, irregular
subset of its per-commit releases, so the pin is the newest build GHCR
actually has, confirmed for generic, cuda, rocm and vulkan.

Every flag the package passes (-hf, -hff, -c, -ngl, --host, --port) is
still defined in common/arg.cpp at b10573, so the presets need no change.
start-sdk is already at 2.0.9, the current npm latest.

The release notes warn that upstream removed the server-side get_datetime
tool (ggml-org/llama.cpp#27255). llama-server exits non-zero when --tools
names an unknown tool, so a user who listed it in Set Model's extra
arguments would otherwise hit a service that will not start.
thecodacus pushed a commit to thecodacus/llama.cpp that referenced this pull request Sep 7, 2026
* ui: move get_datetime tool to frontend

* clarify docs

* server: drop the now unused ctime include

strftime() and gmtime_r() were the only users, both went away with the
get_datetime tool. Also make the renderer's catch inert: the browser
executor always emits JSON, so a non-JSON result is no longer a date to
display.

---------

Co-authored-by: Pascal <[email protected]>
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
* ui: move get_datetime tool to frontend

* clarify docs

* server: drop the now unused ctime include

strftime() and gmtime_r() were the only users, both went away with the
get_datetime tool. Also make the renderer's catch inert: the browser
executor always emits JSON, so a non-JSON result is no longer a date to
display.

---------

Co-authored-by: Pascal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation server/ui server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants