Files
codex/codex-rs/app-server-protocol/schema/json/v2/ExternalAgentConfigDetectParams.json
charlesgong-openai 3bc49e1721 Make external session detection limits configurable (#34449)
## What changed

- Add `maxSessionAgeDays` and `maxSessions` to the external-agent config detection request.
- Apply the requested limits when discovering sessions from supported migration sources.
- Preserve the existing defaults of a 30-day maximum age and 50 sessions when either option is omitted.

GitOrigin-RevId: 46376e94b64f1f61d8776e34d82cdd2cdeb36ca0
2026-07-21 02:55:11 +00:00

53 lines
1.4 KiB
JSON
Generated

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"cwds": {
"description": "Zero or more working directories to include for repo-scoped detection.",
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"includeHome": {
"description": "If true, include detection under the user's home directory.",
"type": "boolean"
},
"maxSessionAgeDays": {
"description": "Maximum age in days for detected sessions. Missing values use the default limit.",
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"maxSessions": {
"description": "Maximum number of sessions to detect. Missing values use the default limit.",
"format": "uint32",
"minimum": 0.0,
"type": [
"integer",
"null"
]
},
"migrationSource": {
"description": "Optional migration-source selector. Missing or unrecognized values use the default source.",
"type": [
"string",
"null"
]
},
"source": {
"description": "Deprecated field retained for compatibility. This field is ignored; use `migrationSource` to select the migration source.",
"type": [
"string",
"null"
]
}
},
"title": "ExternalAgentConfigDetectParams",
"type": "object"
}