Merge remote-tracking branch 'origin/master' into codex/enforce-tool-cancellation

This commit is contained in:
Tianyi Cui
2026-07-19 21:14:27 +08:00
93 changed files with 1489 additions and 335 deletions

View File

@@ -37,9 +37,17 @@ Multiple `tools/execute` listeners compose by cordis registration order. Combine
### Conditional tool result
**What the model sees**: This plugin adds no prompt or schema. If a declared deadline wins, it replaces the provider's outcome with `Error: tool call timed out after <ms>ms` plus structured `TOOL_TIMEOUT`; otherwise the original result passes through unchanged.
#### What the model sees
**Token effect**: Zero tokens on non-timeout calls. A timeout adds one small retained error result and can prevent a larger late provider result from entering context.
This plugin adds no prompt or schema. If a declared deadline wins, it replaces the provider's outcome with `Error: tool call timed out after <ms>ms` plus structured `TOOL_TIMEOUT`; otherwise the original result passes through unchanged.
#### Token effect
Zero tokens on non-timeout calls. A timeout adds one small retained error result and can prevent a larger late provider result from entering context.
#### KV Cache effect
Append-only; newly visible content follows the reusable request prefix and does not invalidate existing KV-cache entries.
## Known Limitations and Deferred Work