-
Fix CLI tool execution file uploads and in-band warnings (#3078)
发布于
2026-03-31 10:25:21 +00:00 Summary
- Hydrate
file_uploadabletool inputs before CLI tool execution,
including nested object and array payloads. - Add temporary-file handling for
executepayloads so File/Blob data
can be passed safely through the CLI. - Surface in-band tool errors as warnings without overriding a
successful execution result. - Improve execute temp-file uniqueness and guard in-band error detection
against null or undefined data. - Add coverage for upload hydration and execute command behavior.
Testing
pnpm test ts/packages/cli/test/src/commands/tools/tools.execute.cmd.test.tspnpm test ts/packages/cli/test/src/commands/run.cmd.test.ts- Not run: full repository test suite
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件
- Hydrate