Support both 'declined' and 'denied' variants for permission denied messages in tool control tests.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Use includePartialMessages and isSDKPartialAssistantMessage for more reliable abort triggering
- Remove flaky tool name assertions that could fail when tools aren't registered (issue #2653)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Remove excludeTools and allowedTools configurations from the test
as coreTools is sufficient for limiting available tools. Update
canUseTool expectation to verify write_file is properly called.
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>