Commit Graph

20 Commits

Author SHA1 Message Date
zszz3
aa72ec6bb9 fix: say why call_tool refused, and keep an opened setup mode's tools native
CallToolTool answered every unforwarded call with "load it first". That
was wrong for a tool already in tools[] (an MCP tool, a built-in) and for
malformed arguments, and for the former it sent the model round in a
loop. DeferredToolLoader.proxy_refusal now names the reason (missing
name, call_tool itself, already in the tool list, proxy off, unknown,
not loaded) and proxy_arguments checks the arguments: an object, or a
string holding valid JSON for one; anything else is refused. The
pipeline's _resolve_proxied_tool_calls and CallToolTool both go through
proxy_call_refusal, so the message matches the decision.

Setup tools loaded through load_tools are proxied. Opening setup mode
later left them proxied: not in tools[], no rules (already loaded), and
a note that never mentioned call_tool. An opened mode's tools are now
made native, like mastery's outline tools; a setup turn whose tools are
still proxied gets a hint to reach them through call_tool.

Also: call_tool is mounted only when the loader has built-in/capability
tools to proxy; its manifest order no longer duplicates load_tools'; a
forwarded call without an id is not marked for renaming.

Refs #2972
2026-11-30 23:35:59 +08:00
zszz3
12e9809a6e fix: reach loaded tools through call_tool instead of growing tools[] mid-turn
load_tools appended the loaded schema to the end of tools[]. tools[] is the
first thing in the provider's prompt-cache key, so the next request of the
same turn re-processed the system prompt and the whole history.

When the turn mounts the new call_tool builtin, load_tools now returns the
loaded tools' definitions in its result and leaves tools[] alone; the loop
forwards each call_tool call to the named tool before dispatch, so the tool
runs with its own argument checks, injected kwargs and trace, while the
history keeps the model's own call. Tools loaded this way stay proxied for
the session (loaded_tools.json gains proxied_tools). Runtime loads that must
land in tools[] pass native=True; the TypeScript engine keeps the old
behaviour.
2026-11-30 23:35:59 +08:00
Frant1cc
912e8fba2d fix(pptx): resolve font fallback in PDF previews and exports (#3043)
* fix(pptx): resolve font fallback in PDF previews and exports

* test: match host path semantics in the PPTX preview fixture

---------

Co-authored-by: Qiuner <wdst3635@163.com>
2026-11-30 05:17:20 -03:00
Bingxi Zhao (Frank)
8ab4ecfee9 feat(books): review and undo scoped chapter and section edits
Fixes #2571
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
e96cba219c feat(docling): expose optional enrichments and version remote cache
Fixes #2518
2026-11-15 01:20:52 +08:00
iSanae233
0bbbe24779 fix(mcp): refresh persisted OAuth grants after restart
Persist and restore token expiry across runtime restarts. Discover the
protected resource and bound authorization server before refreshing saved
grants, preserve issuer bindings, and retain SDK discovery fallbacks.

Require MCP 1.30 in module and packaging metadata, and update the existing
dependency-floor assertion.

Co-Authored-By: GPT-6.1 Sol High
2026-11-06 17:34:54 +08:00
Bingxi Zhao (Frank)
8132135db8 Merge #2350 from yertYang 2026-11-06 02:06:45 +08:00
Bingxi Zhao (Frank)
b837217cb5 Merge #2357 from Antonio-Faure 2026-11-06 01:56:24 +08:00
Antonio-Faure
f39b5d1c1f fix(update): keep installed modules on the target version 2026-11-02 08:44:04 +01:00
yert
a13bcb26c1 fix(video-lesson): include narration runtime dependencies 2026-11-02 06:33:32 +00:00
Antonio-Faure
e3380f3756 fix(deps): make the Docling parser installable in the official image 2026-11-01 21:36:04 +01:00
Bingxi Zhao
7db39b4b03 Merge pull request #2142 from 1akashkalita/fix/animation-visual-review-option
Expose opt-in visual review for generated animations
2026-10-31 18:31:15 +08:00
Bingxi Zhao
834bcf3f93 Merge pull request #2149 from KKandLL-Forever/fix/utf8-state-reads
fix: read state files with the writers' UTF-8 encoding
2026-10-31 16:46:05 +08:00
Bingxi Zhao (Frank)
e495fd6002 Merge origin/dev and reconcile creation contracts and replay tests 2026-10-29 18:13:47 +08:00
Bingxi Zhao (Frank)
01d7c0ed55 feat: add conversational creation drafts and refresh local dev UI 2026-10-29 18:11:52 +08:00
wangkai
cbd925db0f fix(api,modules): read generated indexes as UTF-8
The lazy router index and pip --report plan.json are written as UTF-8,
but were read with the locale default; build_router_index.py now writes
UTF-8 explicitly so the read and write sides share one contract.
2026-10-29 13:33:14 +08:00
Akash Kalita
6e611fe5df fix: expose opt-in visual review for animations 2026-10-28 21:11:03 -07:00
Bingxi Zhao (Frank)
4531e26993 fix(calendar): export UTC-derived transitions through the recurrence horizon 2026-10-29 01:02:35 +08:00
Bingxi Zhao (Frank)
e99d632de5 fix: prepare modular installs and align dev documentation 2026-10-28 19:02:44 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00