qwen-code/docs/design/prompt-cache
Heyang Wang 5d0733f79c
feat(core): stabilize tool schema declaration order (#6339)
Make tool declaration ordering deterministic so prompt-cache prefixes do not depend on asynchronous registration history.

- Sort function declarations by canonical tool name after existing visibility filtering
- Preserve deferred, revealed, and alwaysLoad filtering semantics
- Add tests covering deferred tools, revealed tools, and MCP registration order
- Document the prompt-cache motivation and next-step cache break detection plan

Co-authored-by: heyang.why <heyang.why@alibaba-inc.com>
2026-07-05 12:24:59 +00:00
..
global-tool-schema-stable-sort.md feat(core): stabilize tool schema declaration order (#6339) 2026-07-05 12:24:59 +00:00