@openai/agents-core@0.20.0
OpenAI Agents SDK Core 0.20.0 introduces security updates for UnixLocal file operations, fixes turn counting on approval resumes, caps MCP tool discovery pagination, and refines computer and session handling.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The @openai/agents-core 0.20.0 release includes minor and patch updates targeting tool discovery, execution safety, and session state. Key updates include: - UnixLocal file tools now enforce trusted Python 3, reject disabled protection, honor runAs, require writable parent directories, preserve permissions/ownership/sticky bits, and avoid altering other hardlinks. - Model calls executed after approval resumes are now counted toward maxTurns, requiring callers needing further responses at the limit to increase the threshold. - Automatic MCP tool discovery now defaults to a 64-page limit, configurable via maxListPages. - Checkpoints for cancelled sessions redact unchecked terminal tool outputs while preserving completion history. - Hosted MCP discovery provenance is maintained across tool identity collisions and session reuse, though older namespace-only history requires rediscovery. - Computer tool execution serializes resolved computers across overlapping runs and warns when safety checks are pending without an onSafetyCheck handler. - Streamable HTTP session termination is bounded by the client session timeout, automatically canceling stalled cleanup tasks.
可执行摘要
@openai/agents-core@0.20.0 applies security constraints to UnixLocal file operations, enforces maxTurns counting on post-approval resumes, bounds MCP discovery pagination to 64 pages by default, redacts unchecked terminal output in cancelled checkpoints, and serializes overlapping computer tool runs.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Increase maxTurns if workflows require additional model calls following an approval resume at the limit.
- Explicitly set maxListPages in MCP configuration if tool listings exceed 64 pages.
- Verify that environments running UnixLocal file tools have trusted Python 3 available and that target files have writable parent directories.
- Implement an onSafetyCheck handler when using computer calls with pending safety checks to handle warnings.