Without a sandboxing backend, a lone sandbox_permissions or justification failed the pairing check and asked the model to add the other field, and bash/pwsh checked a disabled run_in_background only after an escalation approval. Reject unadvertised escalation fields and a disabled background request during argument validation in bash, pwsh, write/edit/apply_patch, and run_code, and name both escalation fields in the message. Update the upgrade guide to identify rc.2 shell records by message. Refs #7869
3.0 KiB
kind, description
| kind | description |
|---|---|
| upgrade-guide | bash and pwsh report unadvertised sandbox_permissions and run_in_background as ToolArgsError, JOB_BACKGROUND_DISABLED is removed, and read_image reports MODEL_DOES_NOT_SUPPORT_IMAGES instead of IMAGE_UNSUPPORTED_MODEL. |
Shell and read_image failures use consolidated error codes
English | 中文
Change
Three tool/result error identities recorded by v0.2.2-rc.2 change:
| Failure | v0.2.2-rc.2 | Now |
|---|---|---|
bash or pwsh receives sandbox_permissions and justification in a composition without a sandboxing executor |
SandboxEscalationError / SANDBOX_ESCALATION_UNAVAILABLE |
ToolArgsError / INVALID_ARGS |
bash or pwsh receives run_in_background: true with enableRunInBackground: false |
JobError / JOB_BACKGROUND_DISABLED |
ToolArgsError / INVALID_ARGS |
read_image runs on a model route without image input |
ImageInputError / IMAGE_UNSUPPORTED_MODEL |
ImageInputError / MODEL_DOES_NOT_SUPPORT_IMAGES |
In both shell cases the schema does not advertise the rejected argument, so the model's fix is to drop it. When only one of sandbox_permissions and justification reaches bash, pwsh, write, edit, or apply_patch without a sandboxing backend, the call previously failed the pairing check with SandboxEscalationError / SANDBOX_ESCALATION_INVALID_ARGUMENT; it now reports INVALID_ARGS as well. These calls are rejected before any approval request.
The shell messages now start with invalid arguments: , and the escalation message names both fields: invalid arguments: sandbox_permissions and justification are not available in this composition (no sandboxing executor to escalate). SANDBOX_ESCALATION_UNAVAILABLE keeps its meaning for compositions that have a sandboxing executor but no approval service, calling Agent, or approval channel.
JOB_BACKGROUND_DISABLED is removed from JOB_ERROR_CODES and the JobErrorCode type in @deepseek-ai/dsh-jobs. ImageInputErrorCode in @deepseek-ai/dsh-tool-fs replaces IMAGE_UNSUPPORTED_MODEL with MODEL_DOES_NOT_SUPPORT_IMAGES, the value subagent attachments and Session attachment rejections already use.
Migration
- In analytics or retry rules that read
tool/resulterror, treat v0.2.2-rc.2JOB_BACKGROUND_DISABLEDresults asINVALID_ARGSandIMAGE_UNSUPPORTED_MODELasMODEL_DOES_NOT_SUPPORT_IMAGES. ForSANDBOX_ESCALATION_UNAVAILABLE,erroralone does not identify the shell case: treat a v0.2.2-rc.2bashorpwshresult asINVALID_ARGSonly when its message containsno sandboxing executor to escalate, and keep every otherSANDBOX_ESCALATION_UNAVAILABLEresult unchanged. Session logs keep the values they were written with. - Replace TypeScript references to
'JOB_BACKGROUND_DISABLED'or'IMAGE_UNSUPPORTED_MODEL';pnpm run typecheckreports any that remain. - Update text matchers that expect the earlier shell messages, which had no
invalid arguments:prefix and named onlysandbox_permissions.