Merge branch 'dev' into fix/http-recorder-release

This commit is contained in:
Kit Langton 2026-06-06 20:10:04 -04:00 committed by GitHub
commit ac07fe16a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View file

@ -303,7 +303,7 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
"type": "remote",
"url": "https://...",
"enabled": true,
"headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
"headers": { "Authorization": "Bearer {env:GITHUB_TOKEN}" }
},
"old-server": { "enabled": false }
}
@ -311,7 +311,9 @@ Special object-shaped (not callbacks): `tool: { my_tool: { ... } }`,
```
`command` is an array of strings. `type` is required. Use `enabled: false` to
disable a server inherited from a parent config.
disable a server inherited from a parent config. String values such as header
tokens support `{env:VAR}` interpolation (and `{file:path}`); the shell-style
`${VAR}` is not substituted.
## Permissions

View file

@ -30,13 +30,13 @@ const BACKGROUND_DESCRIPTION = [
].join(" ")
const BACKGROUND_STARTED = [
"The task is working in the background. You will be notified automatically when it finishes.",
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"DO NOT sleep, poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response.",
].join("\n")
const BACKGROUND_UPDATED = [
"Additional context sent to the running background task.",
"The task is still working in the background. You will be notified automatically when it finishes.",
"Do not poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"DO NOT sleep, poll for progress, ask the task for status, or duplicate this task's work — avoid working with the same files or topics it is using.",
"Work on non-overlapping tasks, or briefly tell the user what you sent and end your response.",
].join("\n")
@ -56,7 +56,8 @@ const BaseParameters = Schema.Struct(BaseParameterFields)
export const Parameters = Schema.Struct({
...BaseParameterFields,
background: Schema.optional(Schema.Boolean).annotate({
description: "Run the agent in the background. You will be notified when it completes.",
description:
"Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress",
}),
})

View file

@ -320,7 +320,7 @@ exports[`tool parameters JSON Schema (wire shape) task 1`] = `
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"background": {
"description": "Run the agent in the background. You will be notified when it completes.",
"description": "Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress",
"type": "boolean",
},
"command": {